2021-04-03 23:32:24 +01:00
|
|
|
{ lib, stdenv, fetchurl, installShellFiles, nixosTests }:
|
2020-12-10 21:35:29 +00:00
|
|
|
|
2013-11-24 22:26:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-06-09 08:52:57 +01:00
|
|
|
version = "1.12";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "beanstalkd";
|
2013-11-24 22:26:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/kr/beanstalkd/archive/v${version}.tar.gz";
|
2020-06-09 08:52:57 +01:00
|
|
|
sha256 = "0gw8aygysnjzzfjgfzivy5vajla9adg2zcr4h8rrdf0xyykpwfpl";
|
2013-11-24 22:26:56 +00:00
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "fortify" ];
|
2016-02-08 17:27:52 +00:00
|
|
|
|
2020-12-10 21:35:29 +00:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage doc/beanstalkd.1
|
|
|
|
'';
|
|
|
|
|
2021-04-03 23:32:24 +01:00
|
|
|
passthru.tests = {
|
|
|
|
smoke-test = nixosTests.beanstalkd;
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://kr.github.io/beanstalkd/";
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "A simple, fast work queue";
|
2013-11-24 22:26:56 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.zimbatm ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|