summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/bin2iso/default.nix
blob: 676fa5b838fb0a958436a56d1d3759458b5b1a2b (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
{ stdenv, lib, pkgs, fetchFromGitHub }:
stdenv.mkDerivation rec {
  pname = "bin2iso";
  version = "1.9b";

  src = fetchFromGitHub {
    owner = "einsteinx2";
    repo = "bin2iso";
    rev = "a08f6f93b833878dc009fe59da072643f06a7830";
    sha256 = "1bnhj8z7wbq2v070zkx0xal6hx37y20a068gpy95zh13vihvbgh3";
  };

  buildPhase =''
    gcc -Wall -o $pname $src/src/linux_macos/${pname}_v${version}_linux.c
  '';

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

  meta = {
    homepage = https://github.com/einsteinx2/bin2iso;
    description = "converts bin+cue to iso";
    license = lib.licenses.gpl3;
  };
}