summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/bin2iso/default.nix
blob: 31d05fab37bf3b8893a4bfdfb0368d40cb822239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, lib, pkgs, fetchurl }:
stdenv.mkDerivation rec {
  pname = "bin2iso";
  version = "1.9b";
  _dlver = builtins.replaceStrings ["."] [""] version;
  name = "${pname}-${version}";

  src = fetchurl {
    url = "http://users.eastlink.ca/~doiron/${pname}/linux/${pname}${_dlver}_linux.c";
    sha256 = "0gg4hbzlm83nnbccy79dnxbwpn7lxl3fb87ka36mlclikvknm2hy";
  };

  unpackPhase = "true";

  buildPhase =''
    gcc -Wall -o $pname $src
  '';

  installPhase = ''
    install -Dm755 $pname $out/bin/$pname
  '';

  meta = {
    homepage = http://users.eastlink.ca/~doiron/bin2iso/ ;
    description = "converts bin+cue to iso";
    license = lib.licenses.gpl3;
  };
}