504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
36 lines
824 B
Nix
36 lines
824 B
Nix
{ lib, stdenv, fetchFromGitHub, installShellFiles, nixosTests }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.13";
|
|
pname = "beanstalkd";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kr";
|
|
repo = "beanstalkd";
|
|
rev = "v${version}";
|
|
hash = "sha256-xoudhPad4diGGE8iZaY1/4LiENlKT2dYcIR6wlQdlTU=";
|
|
};
|
|
|
|
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;
|
|
mainProgram = "beanstalkd";
|
|
};
|
|
}
|