summary refs log tree commit diff
path: root/pkgs/servers/rt/default.nix
blob: 253f90e68efa922d073ffb9861166a5f04be2c24 (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
24
25
{ stdenv, fetchurl, perl }:

stdenv.mkDerivation rec {
  name = "rt-${version}";

  version = "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 '{}' \;
  '';
}