nixpkgs/pkgs/tools/system/runit/default.nix

42 lines
848 B
Nix
Raw Normal View History

2014-10-15 13:08:05 +02:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "runit-${version}";
version = "2.1.2";
src = fetchurl {
url = "http://smarden.org/runit/${name}.tar.gz";
sha256 = "065s8w62r6chjjs6m9hapcagy33m75nlnxb69vg0f4ngn061dl3g";
};
2016-07-27 13:32:13 +02:00
outputs = [ "out" "man" ];
sourceRoot = "admin/${name}";
doCheck = true;
2014-10-15 13:08:05 +02:00
2016-04-30 04:32:06 +02:00
postPatch = ''
sed -i 's,-static,,g' src/Makefile
'';
2016-07-27 13:32:13 +02:00
preBuild = ''
cd src
2014-10-15 13:08:05 +02:00
'';
installPhase = ''
mkdir -p $out/bin
2016-07-27 13:32:13 +02:00
cp -t $out/bin $(< ../package/commands)
mkdir -p $man/share/man
cp -r ../man $man/share/man/man8
2014-10-15 13:08:05 +02:00
'';
meta = with stdenv.lib; {
description = "UNIX init scheme with service supervision";
license = licenses.bsd3;
2015-04-20 14:20:03 +02:00
homepage = "http://smarden.org/runit";
2016-07-27 13:32:13 +02:00
maintainers = with maintainers; [ rickynils joachifm ];
2014-10-15 13:08:05 +02:00
platforms = platforms.linux;
};
}