2019-11-07 10:28:54 +00:00
|
|
|
{ stdenv, lib, pkgs, fetchFromGitHub }:
|
2018-01-05 10:12:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bin2iso";
|
|
|
|
version = "1.9b";
|
|
|
|
|
2019-11-07 10:28:54 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "einsteinx2";
|
|
|
|
repo = "bin2iso";
|
|
|
|
rev = "a08f6f93b833878dc009fe59da072643f06a7830";
|
|
|
|
sha256 = "1bnhj8z7wbq2v070zkx0xal6hx37y20a068gpy95zh13vihvbgh3";
|
2018-01-05 10:12:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase =''
|
2019-11-07 10:28:54 +00:00
|
|
|
gcc -Wall -o $pname $src/src/linux_macos/${pname}_v${version}_linux.c
|
2018-01-05 10:12:47 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 $pname $out/bin/$pname
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2019-11-07 10:28:54 +00:00
|
|
|
homepage = https://github.com/einsteinx2/bin2iso;
|
2018-01-05 10:12:47 +00:00
|
|
|
description = "converts bin+cue to iso";
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|