diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/default.nix b/default.nix index 24b759c..cd17475 100644 --- a/default.nix +++ b/default.nix @@ -11,7 +11,8 @@ let }) ]; }; - bin = pkgs.gomod.buildGoApplication { +in rec { + bin = pkgs.gomod.buildGoApplication { pname = "guichet-bin"; version = "0.1.0"; src = ./.; @@ -26,23 +27,18 @@ let platforms = platforms.linux; }; }; -in - pkgs.stdenv.mkDerivation { + pkg = pkgs.stdenv.mkDerivation { pname = "guichet"; 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 ${bin}/bin/guichet $out/guichet cp -r templates static $out/ ''; - } + }; + /*docker = pkgs.xxx { + + };*/ +} |