Nix packaging #15

Open
quentin wants to merge 6 commits from nix into main
Showing only changes of commit b41630e941 - Show all commits

View file

@ -11,9 +11,8 @@ let
})
];
};
in
pkgs.gomod.buildGoApplication {
pname = "bottin";
bin = pkgs.gomod.buildGoApplication {
pname = "bottin-bin";
version = "0.1.0";
src = ./.;
modules = ./gomod2nix.toml;
@ -26,5 +25,24 @@ in
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}
};
in
pkgs.stdenv.mkDerivation {
pname = "bottin";
version = "0.1.0";
src = ./.;
installPhase = ''
mkdir -p $out/
cat > guichet <<EOF
#!${pkgs.bash}/bin/bash
cd $out
${bin}/bin/guichet \$@
EOF
chmod +x guichet
cp guichet $out/guichet
cp -r templates static $out/
'';
}