nixpkgs/pkgs/by-name/ec/ecmtools/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
844 B
Nix
Raw Normal View History

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: {
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";
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
})