uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead

https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948
this can do it nicely.

Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

163
pkgs/servers/rt/default.nix Normal file
View file

@ -0,0 +1,163 @@
{ lib, stdenv, autoreconfHook, buildEnv, fetchFromGitHub, perl, perlPackages, makeWrapper, gnupg, openssl }:
stdenv.mkDerivation rec {
pname = "rt";
version = "5.0.1";
src = fetchFromGitHub {
repo = pname;
rev = "${pname}-${version}";
owner = "bestpractical";
sha256 = "1qqh6w094x7dljz001va802v4s6mixs9lkhs2cs47lf5ph3vwq2q";
};
patches = [
./dont-check-users_groups.patch # needed for "make testdeps" to work in the build
./override-generated.patch
];
nativeBuildInputs = [
autoreconfHook
makeWrapper
];
buildInputs = [
perl
(buildEnv {
name = "rt-perl-deps";
paths = with perlPackages; (requiredPerlModules [
ApacheSession
BusinessHours
CGIEmulatePSGI
CGIPSGI
CSSMinifierXS
CSSSquish
ConvertColor
CryptEksblowfish
CryptSSLeay
CryptX509
DBDPg
DBIxSearchBuilder
DataGUID
DataICal
DataPage
DataPagePageset
DateExtract
DateManip
DateTimeFormatNatural
DevelGlobalDestruction
EmailAddress
EmailAddressList
EncodeDetect
EncodeHanExtra
FCGI
FCGIProcManager
FileShareDir
FileWhich
GD
GDGraph
GnuPGInterface
GraphViz
HTMLFormatExternal
HTMLFormatTextWithLinks
HTMLFormatTextWithLinksAndTables
HTMLGumbo
HTMLMason
HTMLMasonPSGIHandler
HTMLQuoted
HTMLRewriteAttributes
HTMLScrubber
IPCRun
IPCRun3
JSON
JavaScriptMinifierXS
LWP
LWPProtocolHttps
LocaleMaketextFuzzy
LocaleMaketextLexicon
LogDispatch
MIMETools
MIMETypes
MailTools
ModulePath
ModuleRefresh
ModuleVersionsReport
Moose
MooseXNonMoose
MooseXRoleParameterized
MozillaCA
NetCIDR
NetIP
PathDispatcher
PerlIOeol
Plack
PodParser
RegexpCommon
RegexpCommonnetCIDR
RegexpIPv6
RoleBasic
ScopeUpper
Starlet
Starman
StringShellQuote
SymbolGlobalName
TermReadKey
TextPasswordPronounceable
TextQuoted
TextTemplate
TextWikiFormat
TextWordDiff
TextWrapper
TimeParseDate
TreeSimple
UNIVERSALrequire
WebMachine
XMLRSS
perlldap
]);
})
];
preAutoreconf = ''
substituteInPlace configure.ac \
--replace "rt-3.9.EXPORTED" "rt-${version}"
'';
preConfigure = ''
configureFlags="$configureFlags --with-web-user=$UID"
configureFlags="$configureFlags --with-web-group=$(id -g)"
configureFlags="$configureFlags --with-rt-group=$(id -g)"
configureFlags="$configureFlags --with-bin-owner=$UID"
configureFlags="$configureFlags --with-libs-owner=$UID"
configureFlags="$configureFlags --with-libs-group=$(id -g)"
'';
configureFlags = [
"--enable-graphviz"
"--enable-gd"
"--enable-gpg"
"--enable-smime"
"--with-db-type=Pg"
];
buildPhase = ''
make testdeps
'';
postFixup = ''
for i in $(find $out/bin -type f); do
wrapProgram $i --prefix PERL5LIB ':' $PERL5LIB \
--prefix PATH ":" "${lib.makeBinPath [ openssl gnupg ]}"
done
rm -r $out/var
mkdir -p $out/var/data
ln -s /var/log/rt $out/var/log
ln -s /run/rt/mason_data $out/var/mason_data
ln -s /var/lib/rt/shredder $out/var/data/RT-Shredder
ln -s /var/lib/rt/smime $out/var/data/smime
ln -s /var/lib/rt/gpg $out/var/data/gpg
'';
meta = {
platforms = lib.platforms.unix;
};
}

View file

@ -0,0 +1,12 @@
diff --git a/sbin/rt-test-dependencies.in b/sbin/rt-test-dependencies.in
index e51feb197..d75b1bc4e 100644
--- a/sbin/rt-test-dependencies.in
+++ b/sbin/rt-test-dependencies.in
@@ -423,6 +423,7 @@ sub check_perl_version {
}
sub check_users_groups {
+ return 0;
section("users / groups");
my $fails = 0;

View file

@ -0,0 +1,21 @@
commit 7aec1e9478ef679227e759ab9537df7584c6a852
Author: Shea Levy <shea@shealevy.com>
Date: Fri Jan 15 09:09:18 2016 -0500
Make it possible to override hard-coded paths
diff --git a/lib/RT/Generated.pm.in b/lib/RT/Generated.pm.in
index 9dcb80b..99b034b 100644
--- a/lib/RT/Generated.pm.in
+++ b/lib/RT/Generated.pm.in
@@ -82,4 +82,10 @@ $MasonDataDir = '@MASON_DATA_PATH@';
$MasonSessionDir = '@MASON_SESSION_PATH@';
+if ( my $override_file = $ENV{RT_PATHS_OVERRIDE} )
+{
+ require "$override_file" || die "Couldn't load paths override file: $@";
+}
+
+
1;