btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / re / remctl / package.nix
blobb354440de81af7e9f9310dd25e0146f8118014b3
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   autoreconfHook,
6   libevent,
7   krb5,
8   openssl,
9   perl,
10   pkg-config,
12 stdenv.mkDerivation (finalAttrs: {
13   pname = "remctl";
14   version = "3.18";
16   src = fetchFromGitHub {
17     owner = "rra";
18     repo = "remctl";
19     rev = "release/${finalAttrs.version}";
20     hash = "sha256-4KzNhFswNTwcXrDBAfRyr502zwRQ3FACV8gDfBm7M0A=";
21   };
23   # Fix references to /usr/bin/perl in tests and
24   # disable acl/localgroup test that does not work in sandbox.
25   postPatch = ''
26     patchShebangs tests
27     sed -i '\,server/acl/localgroup,d' tests/TESTS
28   '';
30   nativeBuildInputs = [
31     autoreconfHook
32     perl
33     pkg-config
34   ];
36   buildInputs = [
37     krb5
38     libevent
39     openssl
40   ];
42   # Invokes pod2man to create man pages required by Makefile.
43   preConfigure = ''
44     ./bootstrap
45   '';
47   makeFlags = [
48     "LD=$(CC)"
49     "REMCTL_PERL_FLAGS='--prefix=$(out)'"
50     "REMCTL_PYTHON_INSTALL='--prefix=$(out)'"
51   ];
53   checkTarget = "check-local";
55   meta = with lib; {
56     description = "Remote execution tool";
57     homepage = "https://www.eyrie.org/~eagle/software/remctl";
58     mainProgram = "remctl";
59     license = licenses.mit;
60     maintainers = teams.deshaw.members;
61   };