diff options
Diffstat (limited to 'pkgs/servers/beanstalkd/default.nix')
-rw-r--r-- | pkgs/servers/beanstalkd/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/servers/beanstalkd/default.nix b/pkgs/servers/beanstalkd/default.nix index aa5f79ff8f1b..d81feb3b72ef 100644 --- a/pkgs/servers/beanstalkd/default.nix +++ b/pkgs/servers/beanstalkd/default.nix @@ -1,10 +1,9 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, installShellFiles }: + stdenv.mkDerivation rec { version = "1.12"; pname = "beanstalkd"; - installPhase=''make install "PREFIX=$out"''; - src = fetchurl { url = "https://github.com/kr/beanstalkd/archive/v${version}.tar.gz"; sha256 = "0gw8aygysnjzzfjgfzivy5vajla9adg2zcr4h8rrdf0xyykpwfpl"; @@ -12,6 +11,14 @@ stdenv.mkDerivation rec { hardeningDisable = [ "fortify" ]; + makeFlags = [ "PREFIX=${placeholder "out"}" ]; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installManPage doc/beanstalkd.1 + ''; + meta = with stdenv.lib; { homepage = "http://kr.github.io/beanstalkd/"; description = "A simple, fast work queue"; @@ -20,4 +27,3 @@ stdenv.mkDerivation rec { platforms = platforms.all; }; } - |