Add rt and perl packages it needs

This commit is contained in:
Shea Levy
2016-01-15 12:05:43 -05:00
parent 7e36514c90
commit d9fa9b1a45
4 changed files with 634 additions and 8 deletions
+23
View File
@@ -0,0 +1,23 @@
{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
name = "rt-4.2.12";
src = fetchurl {
url = "https://download.bestpractical.com/pub/rt/release/${name}.tar.gz";
sha256 = "0r3jhgfwwhhk654zag42mrai85yrliw9sc0kgabwjvbh173204p2";
};
patches = [ ./override-generated.patch ];
buildInputs = [ perl ];
buildPhase = "true";
installPhase = ''
mkdir $out
cp -a {bin,docs,etc,lib,sbin,share} $out
find $out -name '*.in' -exec rm '{}' \;
'';
}