Q2TG/flake.nix

32 lines
1.1 KiB
Nix
Raw Normal View History

2022-09-11 13:14:47 +00:00
{
description = "Flake that configures Q2TG";
inputs = {
2022-12-24 13:21:29 +00:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
2022-09-13 09:32:53 +00:00
flake-utils.url = "github:numtide/flake-utils";
2023-01-14 09:19:58 +00:00
nix2container.url = "github:nlewo/nix2container";
2022-09-11 13:14:47 +00:00
};
2023-01-14 09:19:58 +00:00
outputs = { self, nixpkgs, flake-utils, nix2container }:
flake-utils.lib.eachDefaultSystem
2022-09-13 09:32:53 +00:00
(system:
2022-10-12 08:02:01 +00:00
let
pkgs = nixpkgs.legacyPackages.${system};
flakePkgs = self.packages.${system};
2023-01-14 09:19:58 +00:00
nix2containerPkgs = nix2container.packages.${system};
2022-10-12 08:02:01 +00:00
in
2022-09-13 09:32:53 +00:00
{
2023-01-14 09:19:58 +00:00
packages = {
default = import ./default.nix { inherit pkgs; };
tgs-to-gif = pkgs.callPackage "${import ./nixos/clansty-flake.nix}/packages/tgs-to-gif" { };
prisma-patched = pkgs.callPackage ./nixos/prismaPatched.nix { };
fontsSf = pkgs.callPackage ./nixos/fontsSf.nix { };
docker = import ./docker.nix {
inherit pkgs flakePkgs;
nix2container = nix2containerPkgs.nix2container;
};
};
2022-10-12 08:02:01 +00:00
devShells.default = import ./shell.nix { inherit pkgs flakePkgs; };
2022-09-13 09:32:53 +00:00
}
);
2022-09-11 13:14:47 +00:00
}