Merge branch 'staging-next' (PR #91090)
This commit is contained in:
@@ -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)" ];
|
||||
|
||||
|
||||
@@ -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)" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user