mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
48f8dbfef3
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.
26 lines
669 B
Nix
26 lines
669 B
Nix
{lib, stdenv, fetchurl}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "nrg2iso";
|
|
version = "0.4.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://gregory.kokanosky.free.fr/v4/linux/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-O+NqQWdY/BkQRztJqNrfKiqj1R8ZdhlzNrwXS8HjBuU=";
|
|
};
|
|
|
|
patches = [ ./c-compiler.patch ];
|
|
|
|
installPhase = ''
|
|
mkdir -pv $out/bin/
|
|
cp -v nrg2iso $out/bin/nrg2iso
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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.all;
|
|
};
|
|
}
|