mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
2258b21e4b
Build-tested on x86_64 Linux and on Darwin.
29 lines
561 B
Nix
29 lines
561 B
Nix
{ stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rt-${version}";
|
|
|
|
version = "4.4.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.bestpractical.com/pub/rt/release/${name}.tar.gz";
|
|
sha256 = "1hgz50fxv9zdcngww083aqh8vzyk148lm7mcivxflpnsqfw3696x";
|
|
};
|
|
|
|
patches = [ ./override-generated.patch ];
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -a {bin,docs,etc,lib,sbin,share} $out
|
|
find $out -name '*.in' -exec rm '{}' \;
|
|
'';
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|