1 { lib, stdenv, autoreconfHook, buildEnv, fetchFromGitHub, perl, perlPackages, makeWrapper, gnupg, openssl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
9 rev = "${pname}-${version}";
10 owner = "bestpractical";
11 hash = "sha256-4E6xEk1sIiNBKJT4jD+SNK8Fs+hX8EuTv+jD1U1g6qY=";
15 ./dont-check-users_groups.patch # needed for "make testdeps" to work in the build
16 ./override-generated.patch
27 name = "rt-perl-deps";
28 paths = with perlPackages; (requiredPerlModules [
48 DevelGlobalDestruction
62 HTMLFormatTextWithLinks
63 HTMLFormatTextWithLinksAndTables
87 MooseXRoleParameterized
106 TextPasswordPronounceable
123 echo rt-${version} > .tag
126 configureFlags="$configureFlags --with-web-user=$UID"
127 configureFlags="$configureFlags --with-web-group=$(id -g)"
128 configureFlags="$configureFlags --with-rt-group=$(id -g)"
129 configureFlags="$configureFlags --with-bin-owner=$UID"
130 configureFlags="$configureFlags --with-libs-owner=$UID"
131 configureFlags="$configureFlags --with-libs-group=$(id -g)"
146 for i in $(find $out/bin -type f); do
147 wrapProgram $i --prefix PERL5LIB ':' $PERL5LIB \
148 --prefix PATH ":" "${lib.makeBinPath [ openssl gnupg ]}"
152 mkdir -p $out/var/data
153 ln -s /var/log/rt $out/var/log
154 ln -s /run/rt/mason_data $out/var/mason_data
155 ln -s /var/lib/rt/shredder $out/var/data/RT-Shredder
156 ln -s /var/lib/rt/smime $out/var/data/smime
157 ln -s /var/lib/rt/gpg $out/var/data/gpg
161 platforms = lib.platforms.unix;