mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
remctl: init at 3.18 (#350206)
This commit is contained in:
commit
0500adff80
62
pkgs/by-name/re/remctl/package.nix
Normal file
62
pkgs/by-name/re/remctl/package.nix
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
autoreconfHook,
|
||||
libevent,
|
||||
krb5,
|
||||
openssl,
|
||||
perl,
|
||||
pkg-config,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "remctl";
|
||||
version = "3.18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rra";
|
||||
repo = "remctl";
|
||||
rev = "release/${finalAttrs.version}";
|
||||
hash = "sha256-4KzNhFswNTwcXrDBAfRyr502zwRQ3FACV8gDfBm7M0A=";
|
||||
};
|
||||
|
||||
# Fix references to /usr/bin/perl in tests and
|
||||
# disable acl/localgroup test that does not work in sandbox.
|
||||
postPatch = ''
|
||||
patchShebangs tests
|
||||
sed -i '\,server/acl/localgroup,d' tests/TESTS
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
perl
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
krb5
|
||||
libevent
|
||||
openssl
|
||||
];
|
||||
|
||||
# Invokes pod2man to create man pages required by Makefile.
|
||||
preConfigure = ''
|
||||
./bootstrap
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"LD=$(CC)"
|
||||
"REMCTL_PERL_FLAGS='--prefix=$(out)'"
|
||||
"REMCTL_PYTHON_INSTALL='--prefix=$(out)'"
|
||||
];
|
||||
|
||||
checkTarget = "check-local";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Remote execution tool";
|
||||
homepage = "https://www.eyrie.org/~eagle/software/remctl";
|
||||
mainProgram = "remctl";
|
||||
license = licenses.mit;
|
||||
maintainers = teams.deshaw.members;
|
||||
};
|
||||
})
|
20
pkgs/development/perl-modules/NetRemctl/default.nix
Normal file
20
pkgs/development/perl-modules/NetRemctl/default.nix
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
buildPerlModule,
|
||||
remctl,
|
||||
TestPod,
|
||||
}:
|
||||
|
||||
buildPerlModule {
|
||||
pname = "NetRemctl";
|
||||
|
||||
inherit (remctl) meta src version;
|
||||
|
||||
postPatch = ''
|
||||
cp -R tests/tap/perl/Test perl/t/lib
|
||||
cd perl
|
||||
'';
|
||||
|
||||
buildInputs = [ remctl ];
|
||||
|
||||
checkInputs = [ TestPod ];
|
||||
}
|
21
pkgs/development/python-modules/remctl/default.nix
Normal file
21
pkgs/development/python-modules/remctl/default.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
remctl-c, # remctl from pkgs, not from pythonPackages
|
||||
typing,
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
inherit (remctl-c)
|
||||
meta
|
||||
pname
|
||||
src
|
||||
version
|
||||
;
|
||||
setSourceRoot = "sourceRoot=$(echo */python)";
|
||||
|
||||
buildInputs = [ remctl-c ];
|
||||
|
||||
propagatedBuildInputs = lib.optionals (pythonOlder "3.5") [ typing ];
|
||||
}
|
@ -19100,6 +19100,8 @@ with self; {
|
||||
};
|
||||
};
|
||||
|
||||
NetRemctl = callPackage ../development/perl-modules/NetRemctl { };
|
||||
|
||||
NetServer = buildPerlPackage {
|
||||
pname = "Net-Server";
|
||||
version = "2.014";
|
||||
|
@ -13553,6 +13553,10 @@ self: super: with self; {
|
||||
|
||||
remarshal = callPackage ../development/python-modules/remarshal { };
|
||||
|
||||
remctl = callPackage ../development/python-modules/remctl {
|
||||
remctl-c = pkgs.remctl;
|
||||
};
|
||||
|
||||
remi = callPackage ../development/python-modules/remi { };
|
||||
|
||||
remote-pdb = callPackage ../development/python-modules/remote-pdb { };
|
||||
|
Loading…
Reference in New Issue
Block a user