summary refs log tree commit diff
path: root/pkgs/servers/rt/default.nix
blob: 7f8c372c33552e403b8f97d367b38003d0557d70 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 '{}' \;
  '';
}