-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
27 lines (25 loc) · 897 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
{
outputs = { self, nixpkgs }: {
packages = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
screech = pkgs.rustPlatform.buildRustPackage {
pname = "screech";
version = "0.1.0";
src = self;
cargoLock.lockFile = ./Cargo.lock;
};
fzf_screech = pkgs.stdenvNoCC.mkDerivation {
pname = "fzf_screech";
version = "0.1.0";
src = self;
buildInputs = [ pkgs.python3 ];
nativeBuildInputs = [ pkgs.makeWrapper ];
installPhase = "mkdir -p $out/bin && cp fzf_screech $out/bin";
postFixup = "wrapProgram $out/bin/fzf_screech --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.fzf self.packages.${system}.screech ]}";
};
default = self.packages.${system}.screech;
});
};
}