Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 25 lines 706 B view raw
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "bchunk"; 5 version = "1.2.2"; 6 7 src = fetchurl { 8 url = "http://he.fi/bchunk/${pname}-${version}.tar.gz"; 9 sha256 = "12dxx98kbpc5z4dgni25280088bhlsb677rp832r82zzc1drpng7"; 10 }; 11 12 makeFlags = lib.optionals stdenv.cc.isClang [ "CC=${stdenv.cc.targetPrefix}cc" "LD=${stdenv.cc.targetPrefix}cc" ]; 13 14 installPhase = '' 15 install -Dt $out/bin bchunk 16 install -Dt $out/share/man/man1 bchunk.1 17 ''; 18 19 meta = with lib; { 20 homepage = "http://he.fi/bchunk/"; 21 description = "A program that converts CD images in BIN/CUE format into a set of ISO and CDR tracks"; 22 platforms = platforms.unix; 23 license = licenses.gpl2; 24 }; 25}