liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

default.nix (667B)


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