2023-09-11 22:16:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2018-02-18 17:21:11 +00:00
|
|
|
|
2023-09-11 22:16:01 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ecm-tools";
|
2018-02-18 17:21:11 +00:00
|
|
|
version = "1.0.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alucryd";
|
|
|
|
repo = "ecm-tools";
|
2023-09-11 22:16:01 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-DCxrSTUO+e350zI10D8vpIswxqdfAyQfnY4iz17pfuc=";
|
2018-02-18 17:21:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2023-09-11 22:16:01 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2018-02-18 17:21:11 +00:00
|
|
|
install --directory --mode=755 $out/bin
|
|
|
|
install --mode=755 bin2ecm $out/bin
|
2023-09-11 22:16:01 +00:00
|
|
|
pushd $out/bin
|
|
|
|
ln -s bin2ecm ecm2bin
|
|
|
|
popd
|
|
|
|
|
|
|
|
runHook postInstall
|
2018-02-18 17:21:11 +00:00
|
|
|
'';
|
|
|
|
|
2023-09-11 22:16:01 +00:00
|
|
|
meta = {
|
2018-02-18 17:21:11 +00:00
|
|
|
description = "A utility to uncompress ECM files to BIN CD format";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/alucryd/ecm-tools";
|
2023-09-11 22:16:01 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
mainProgram = "bin2ecm";
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.all;
|
2018-02-18 17:21:11 +00:00
|
|
|
};
|
2023-09-11 22:16:01 +00:00
|
|
|
})
|