Merge pull request #225359 from strager/nrg2iso-macos
nrg2iso: compile on Darwin
This commit is contained in:
commit
1c5f066f12
11
pkgs/tools/cd-dvd/nrg2iso/c-compiler.patch
Normal file
11
pkgs/tools/cd-dvd/nrg2iso/c-compiler.patch
Normal file
@ -0,0 +1,11 @@
|
||||
Support building with compilers such as Clang.
|
||||
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
all: nrg2iso.c
|
||||
- gcc nrg2iso.c -o nrg2iso
|
||||
+ cc nrg2iso.c -o nrg2iso
|
||||
|
||||
clean:
|
||||
rm -f nrg2iso
|
@ -9,6 +9,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "sha256-O+NqQWdY/BkQRztJqNrfKiqj1R8ZdhlzNrwXS8HjBuU=";
|
||||
};
|
||||
|
||||
patches = [ ./c-compiler.patch ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv $out/bin/
|
||||
cp -v nrg2iso $out/bin/nrg2iso
|
||||
@ -18,6 +20,6 @@ stdenv.mkDerivation rec {
|
||||
description = "A linux utils for converting CD (or DVD) image generated by Nero Burning Rom to ISO format";
|
||||
homepage = "http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user