Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nrg2iso: compile on Darwin

nrg2iso's build scripts are hard-coded to use GCC. This prevents nrg2iso
from working on Darwin/macOS.

Teach nrg2iso's build scripts to use whatever compiler is installed, not
GCC specifically. This allows nrg2iso to build using Clang on macOS.

+14 -1
+11
pkgs/tools/cd-dvd/nrg2iso/c-compiler.patch
··· 1 + Support building with compilers such as Clang. 2 + 3 + --- a/Makefile 4 + +++ b/Makefile 5 + @@ -1,5 +1,5 @@ 6 + all: nrg2iso.c 7 + - gcc nrg2iso.c -o nrg2iso 8 + + cc nrg2iso.c -o nrg2iso 9 + 10 + clean: 11 + rm -f nrg2iso
+3 -1
pkgs/tools/cd-dvd/nrg2iso/default.nix
··· 9 9 sha256 = "sha256-O+NqQWdY/BkQRztJqNrfKiqj1R8ZdhlzNrwXS8HjBuU="; 10 10 }; 11 11 12 + patches = [ ./c-compiler.patch ]; 13 + 12 14 installPhase = '' 13 15 mkdir -pv $out/bin/ 14 16 cp -v nrg2iso $out/bin/nrg2iso ··· 18 20 description = "A linux utils for converting CD (or DVD) image generated by Nero Burning Rom to ISO format"; 19 21 homepage = "http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html"; 20 22 license = licenses.gpl2; 21 - platforms = platforms.linux; 23 + platforms = platforms.all; 22 24 }; 23 25 }