-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
44 lines (43 loc) · 1020 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
rosepine-build = {
url = "github:juliamertz/rosepine-buildrs";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
nixpkgs,
flake-parts,
...
}@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
perSystem =
{
config,
pkgs,
lib,
system,
...
}:
let
rosePineBuild = inputs.rosepine-build.packages.${system}.default;
in
{
packages.default = pkgs.runCommandNoCC "generated" ''
"${lib.getExe rosePineBuild} ${./templates} --tera -o $out"
'';
devShells.default = pkgs.mkShell {
packages = [
rosePineBuild
];
};
};
};
}