2021-09-23 15:35:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, installShellFiles, nixosTests }:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "beanstalkd";
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kr";
|
|
|
|
repo = "beanstalkd";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-HChpVZ02l08CObrb4+ZEjBiXeQMMYi6zhSWUTDxuEao=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage doc/beanstalkd.1
|
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
passthru.tests = {
|
|
|
|
smoke-test = nixosTests.beanstalkd;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://kr.github.io/beanstalkd/";
|
|
|
|
description = "A simple, fast work queue";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.zimbatm ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|