nix-serve: nix 2.0 fixes
This commit is contained in:
parent
91280690af
commit
30877b1ed8
|
@ -55,6 +55,8 @@ in
|
|||
environment.NIX_SECRET_KEY_FILE = cfg.secretKeyFile;
|
||||
|
||||
serviceConfig = {
|
||||
Restart = "always";
|
||||
RestartSec = "5s";
|
||||
ExecStart = "${pkgs.nix-serve}/bin/nix-serve " +
|
||||
"--listen ${cfg.bindAddress}:${toString cfg.port} ${cfg.extraParams}";
|
||||
User = "nix-serve";
|
||||
|
|
|
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||
inherit rev sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ bzip2 perl nix ]
|
||||
buildInputs = [ bzip2 perl nix nix.perl-bindings ]
|
||||
++ (with perlPackages; [ DBI DBDSQLite Plack Starman ]);
|
||||
|
||||
dontBuild = true;
|
||||
|
|
Loading…
Reference in a new issue