mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
34 lines
786 B
Nix
34 lines
786 B
Nix
{ lib, stdenv, fetchurl, installShellFiles, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.12";
|
|
pname = "beanstalkd";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/kr/beanstalkd/archive/v${version}.tar.gz";
|
|
sha256 = "0gw8aygysnjzzfjgfzivy5vajla9adg2zcr4h8rrdf0xyykpwfpl";
|
|
};
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installManPage doc/beanstalkd.1
|
|
'';
|
|
|
|
passthru.tests = {
|
|
smoke-test = nixosTests.beanstalkd;
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "http://kr.github.io/beanstalkd/";
|
|
description = "A simple, fast work queue";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.zimbatm ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|