default.nix (646B)
1 { 2 stdenv 3 , fetchFromGitLab 4 , makeWrapper 5 , btrfs-progs 6 , util-linux-small 7 , lib 8 }: 9 let search_path = lib.makeBinPath [btrfs-progs util-linux-small]; 10 in stdenv.mkDerivation { 11 pname = "schnapps"; 12 version = "2.13.0"; 13 14 src =fetchFromGitLab { 15 domain = "gitlab.nic.cz"; 16 owner = "turris"; 17 repo = "schnapps"; 18 rev = "53ac92c765d670be4b98dba2c948859a9ac7607f"; 19 hash = "sha256-yVgXK+V2wrcOPLB6X6qm3hyBcWcyzNhfJjFF7YRk5Lc="; 20 }; 21 22 nativeBuildInputs = [ makeWrapper ]; 23 buildPhase = ":"; 24 installPhase = '' 25 install -D schnapps.sh $out/bin/schnapps 26 wrapProgram $out/bin/schnapps --prefix PATH : "${search_path}" 27 ''; 28 }