755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
40 lines
842 B
Nix
40 lines
842 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ecm-tools";
|
|
version = "1.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alucryd";
|
|
repo = "ecm-tools";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-DCxrSTUO+e350zI10D8vpIswxqdfAyQfnY4iz17pfuc=";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install --directory --mode=755 $out/bin
|
|
install --mode=755 bin2ecm $out/bin
|
|
pushd $out/bin
|
|
ln -s bin2ecm ecm2bin
|
|
popd
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Utility to uncompress ECM files to BIN CD format";
|
|
homepage = "https://github.com/alucryd/ecm-tools";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "bin2ecm";
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|