Merge branch 'staging-next' (PR #91090)

This commit is contained in:
Vladimír Čunát
2020-07-13 07:13:56 +02:00
137 changed files with 2075 additions and 1390 deletions
+10 -5
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchgit }:
{ stdenv, fetchgit, fetchpatch }:
stdenv.mkDerivation {
pname = "datefudge";
@@ -10,15 +10,20 @@ stdenv.mkDerivation {
sha256 = "0r9g8v9xnv60hq3j20wqy34kyig3sc2pisjxl4irn7jjx85f1spv";
};
patchPhase = ''
patches = [
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/datefudge/raw/master/f/datefudge_1.23-tz.patch";
sha256 = "19c2fvhm06wnp3059b0rnd7dqdchkan8iycjh8jk8y25j870zkvn";
})
];
postPatch = ''
substituteInPlace Makefile \
--replace "/usr" "/" \
--replace "-o root -g root" ""
substituteInPlace datefudge.sh \
--replace "@LIBDIR@" "$out/lib/"
'';
preInstallPhase = "mkdir -P $out/lib/datefudge";
'';
installFlags = [ "DESTDIR=$(out)" ];
+1 -1
View File
@@ -25,7 +25,7 @@ stdenv.mkDerivation rec {
# We have no LTO here since commit 22284b07.
postPatch = if stdenv.isi686 then "sed '/^CFLAGS/s/-flto//' -i Make.defaults" else null;
makeFlags = [ "EFIDIR=nixos" ];
makeFlags = [ "EFIDIR=nixos" "PKG_CONFIG=${stdenv.cc.targetPrefix}pkg-config" ];
installFlags = [ "prefix=$(out)" ];