summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Ross <alyssa.ross@unikie.com>2022-12-02 10:21:44 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-12-02 23:11:31 +0000
commit737f59d03ef3c039ee60371346dda9c43d776f68 (patch)
treebd203ac93eb24c3dc2497e2b7bc6b29d29d17ae2
parentMerge pull request #204079 from NixOS/backport-203532-to-release-22.11 (diff)
downloadnixpkgs-origin/backport-204084-to-release-22.11.tar.gz
pkgsMusl.cdrkit: fix buildorigin/backport-204084-to-release-22.11
These are the same tricks that Alpine uses. (cherry picked from commit 697d46e631fcb0e72bd06255dd91eaa5b671d27e)
-rw-r--r--pkgs/tools/cd-dvd/cdrkit/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/cd-dvd/cdrkit/default.nix b/pkgs/tools/cd-dvd/cdrkit/default.nix
index e28d4f8b9c7e..6f9c7a656d1b 100644
--- a/pkgs/tools/cd-dvd/cdrkit/default.nix
+++ b/pkgs/tools/cd-dvd/cdrkit/default.nix
@@ -13,10 +13,16 @@ stdenv.mkDerivation rec {
buildInputs = [ libcap zlib bzip2 perl ];
hardeningDisable = [ "format" ];
+ NIX_CFLAGS_COMPILE = lib.optional stdenv.hostPlatform.isMusl "-D__THROW=";
# efi-boot-patch extracted from http://arm.koji.fedoraproject.org/koji/rpminfo?rpmID=174244
patches = [ ./include-path.patch ./cdrkit-1.1.9-efi-boot.patch ./cdrkit-1.1.11-fno-common.patch ];
+ preConfigure = lib.optionalString stdenv.hostPlatform.isMusl ''
+ substituteInPlace include/xconfig.h.in \
+ --replace "#define HAVE_RCMD 1" "#undef HAVE_RCMD"
+ '';
+
postInstall = ''
# file name compatibility with the old cdrecord (growisofs wants this name)
ln -s $out/bin/genisoimage $out/bin/mkisofs