Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 installShellFiles,
6 nixosTests,
7}:
8
9stdenv.mkDerivation rec {
10 version = "1.13";
11 pname = "beanstalkd";
12
13 src = fetchFromGitHub {
14 owner = "kr";
15 repo = "beanstalkd";
16 rev = "v${version}";
17 hash = "sha256-xoudhPad4diGGE8iZaY1/4LiENlKT2dYcIR6wlQdlTU=";
18 };
19
20 hardeningDisable = [ "fortify" ];
21
22 makeFlags = [ "PREFIX=${placeholder "out"}" ];
23
24 nativeBuildInputs = [ installShellFiles ];
25
26 postInstall = ''
27 installManPage doc/beanstalkd.1
28 '';
29
30 passthru.tests = {
31 smoke-test = nixosTests.beanstalkd;
32 };
33
34 meta = with lib; {
35 homepage = "http://kr.github.io/beanstalkd/";
36 description = "Simple, fast work queue";
37 license = licenses.mit;
38 maintainers = [ maintainers.zimbatm ];
39 platforms = platforms.all;
40 mainProgram = "beanstalkd";
41 };
42}