nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "cdi2iso";
9 version = "0.1";
10
11 src = fetchurl {
12 url = "mirror://sourceforge/cdi2iso.berlios/${pname}-${version}-src.tar.gz";
13 sha256 = "0fj2fxhpr26z649m0ph71378c41ljflpyk89g87x8r1mc4rbq3kh";
14 };
15
16 postPatch = ''
17 substituteInPlace Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc"
18 '';
19
20 installPhase = ''
21 mkdir -p $out/bin
22 cp cdi2iso $out/bin
23 '';
24
25 meta = {
26 description = "Very simple utility for converting DiscJuggler images to the standard ISO-9660 format";
27 homepage = "https://sourceforge.net/projects/cdi2iso.berlios";
28 license = lib.licenses.gpl2Plus;
29 platforms = lib.platforms.all;
30 mainProgram = "cdi2iso";
31 };
32}