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