3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/runit/default.nix

44 lines
916 B
Nix
Raw Normal View History

2014-10-15 12:08:05 +01: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";
};
phases = [ "unpackPhase" "patchPhase" "buildPhase" "checkPhase" "installPhase" ];
patches = [ ./Makefile.patch ];
2016-04-30 03:32:06 +01:00
postPatch = ''
2014-10-15 12:08:05 +01:00
cd ${name}
2016-04-30 03:32:06 +01:00
sed -i 's,-static,,g' src/Makefile
'';
buildPhase = ''
2014-10-15 12:08:05 +01:00
make -C 'src'
'';
checkPhase = ''
make -C 'src' check
'';
installPhase = ''
mkdir -p $out/bin
for f in $(cat package/commands); do
mv src/$f $out/bin/
done
'';
meta = with stdenv.lib; {
description = "UNIX init scheme with service supervision";
license = licenses.bsd3;
2015-04-20 13:20:03 +01:00
homepage = "http://smarden.org/runit";
2014-10-15 12:08:05 +01:00
maintainers = with maintainers; [ rickynils ];
platforms = platforms.linux;
};
}