Embed static/ and templates/
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c395880165
commit
b41630e941
1 changed files with 22 additions and 4 deletions
26
default.nix
26
default.nix
|
@ -11,9 +11,8 @@ let
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
bin = pkgs.gomod.buildGoApplication {
|
||||||
pkgs.gomod.buildGoApplication {
|
pname = "bottin-bin";
|
||||||
pname = "bottin";
|
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
modules = ./gomod2nix.toml;
|
modules = ./gomod2nix.toml;
|
||||||
|
@ -26,5 +25,24 @@ in
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.linux;
|
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/
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue