3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/rt/default.nix

26 lines
506 B
Nix
Raw Normal View History

2016-01-15 17:05:43 +00:00
{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
2016-01-25 15:21:09 +00:00
name = "rt-${version}";
version = "4.2.12";
2016-01-15 17:05:43 +00:00
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 '{}' \;
'';
}