2022-07-19 09:56:35 +00:00
|
|
|
let
|
|
|
|
pkgsSrc = fetchTarball {
|
|
|
|
# As of 2022-07-19
|
|
|
|
url = "https://github.com/NixOS/nixpkgs/archive/d2db10786f27619d5519b12b03fb10dc8ca95e59.tar.gz";
|
|
|
|
sha256 = "0s9gigs3ylnq5b94rfcmxvrmmr3kzhs497gksajf638d5bv7zcl5";
|
|
|
|
};
|
|
|
|
pkgs = import pkgsSrc {
|
|
|
|
overlays = [
|
|
|
|
(self: super: {
|
|
|
|
gomod = super.callPackage ./nix/builder { };
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
2022-07-19 13:53:39 +00:00
|
|
|
in rec {
|
|
|
|
bin = pkgs.gomod.buildGoApplication {
|
2022-07-19 13:39:49 +00:00
|
|
|
pname = "guichet-bin";
|
2022-07-19 09:56:35 +00:00
|
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
modules = ./gomod2nix.toml;
|
|
|
|
|
|
|
|
CGO_ENABLED=0;
|
|
|
|
|
|
|
|
meta = with pkgs.lib; {
|
2022-07-19 13:39:49 +00:00
|
|
|
description = "Interface web pour gérer le LDAP: changer son mot de passe, ses infos de profil, inviter des gens, administration";
|
|
|
|
homepage = "https://git.deuxfleurs.fr/Deuxfleurs/guichet";
|
2022-07-19 09:56:35 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2022-07-19 13:08:51 +00:00
|
|
|
};
|
2022-07-19 13:53:39 +00:00
|
|
|
pkg = pkgs.stdenv.mkDerivation {
|
2022-07-19 13:39:49 +00:00
|
|
|
pname = "guichet";
|
2022-07-19 13:08:51 +00:00
|
|
|
version = "0.1.0";
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/
|
2022-07-19 13:53:39 +00:00
|
|
|
cp ${bin}/bin/guichet $out/guichet
|
2022-07-19 13:08:51 +00:00
|
|
|
cp -r templates static $out/
|
|
|
|
'';
|
2022-07-19 13:53:39 +00:00
|
|
|
};
|
|
|
|
/*docker = pkgs.xxx {
|
|
|
|
|
|
|
|
};*/
|
|
|
|
}
|