-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (33 loc) · 883 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
{
outputs = { nixpkgs, self }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
packages.${system} = {
default = self.packages.${system}.nixla;
nixla = pkgs.writeShellScriptBin "nixla" (builtins.readFile ./nixla.sh);
nixla-nix = pkgs.writeShellScriptBin "nixla-nix" (builtins.readFile ./nixla.sh);
nixla-json = pkgs.writeShellScriptBin "nixla-json" (builtins.readFile ./nixla.sh);
};
apps.${system} = {
default = {
type = "app";
program = pkgs.lib.getExe self.packages.${system}.default;
};
nixla = {
type = "app";
program = pkgs.lib.getExe self.packages.${system}.nixla;
};
nixla-nix = {
type = "app";
program = pkgs.lib.getExe self.packages.${system}.nixla-nix;
};
nixla-json = {
type = "app";
program = pkgs.lib.getExe self.packages.${system}.nixla-json;
};
};
};
}