Merge pull request #38594 from endgame/crip

crip: init at 3.9; perlPackages.CDDB_get: init at 2.28
This commit is contained in:
Jörg Thalheim 2018-04-08 12:13:12 +01:00 committed by GitHub
commit 467886b761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 90 additions and 0 deletions

View File

@ -1196,6 +1196,11 @@
github = "ElvishJerricco"; github = "ElvishJerricco";
name = "Will Fancher"; name = "Will Fancher";
}; };
endgame = {
email = "jack@jackkelly.name";
github = "endgame";
name = "Jack Kelly";
};
enzime = { enzime = {
email = "enzime@users.noreply.github.com"; email = "enzime@users.noreply.github.com";
github = "enzime"; github = "enzime";

View File

@ -0,0 +1,68 @@
{ stdenv
, fetchurl
, makeWrapper
, perl
, perlPackages
, cdparanoia
, coreutils
, eject
, flac
, gnugrep
, nano
, sox
, vorbis-tools
, vorbisgain
, which
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "crip-3.9";
src = fetchurl {
url = "http://bach.dynet.com/crip/src/${name}.tar.gz";
sha256 = "0pk9152wll6fmkj1pki3fz3ijlf06jyk32v31yarwvdkwrk7s9xz";
};
buildInputs = [ perl perlPackages.CDDB_get ];
nativeBuildInputs = [ makeWrapper ];
toolDeps = makeBinPath [
cdparanoia
coreutils
eject
flac
gnugrep
sox
vorbis-tools
vorbisgain
which
];
scripts = [ "crip" "editcomment" "editfilenames" ];
installPhase = ''
mkdir -p $out/bin/
for script in ${escapeShellArgs scripts}; do
cp $script $out/bin/
substituteInPlace $out/bin/$script \
--replace '$editor = "vim";' '$editor = "${nano}/bin/nano";'
wrapProgram $out/bin/$script \
--set PERL5LIB "${makePerlPath [ perlPackages.CDDB_get ]}" \
--set PATH "${toolDeps}"
done
'';
meta = {
homepage = http://bach.dynet.com/crip/;
description = "Terminal-based ripper/encoder/tagger tool for creating Ogg Vorbis/FLAC files";
license = stdenv.lib.licenses.gpl1;
platforms = stdenv.lib.platforms.linux;
maintainers = [ maintainers.endgame ];
};
}

View File

@ -1053,6 +1053,8 @@ with pkgs;
cri-tools = callPackage ../tools/virtualization/cri-tools {}; cri-tools = callPackage ../tools/virtualization/cri-tools {};
crip = callPackage ../applications/audio/crip { };
crunch = callPackage ../tools/security/crunch { }; crunch = callPackage ../tools/security/crunch { };
crudini = callPackage ../tools/misc/crudini { }; crudini = callPackage ../tools/misc/crudini { };

View File

@ -1658,6 +1658,21 @@ let self = _self // overrides; _self = with self; {
}; };
}; };
CDDB_get = buildPerlPackage rec {
name = "CDDB_get-2.28";
src = fetchurl {
url = "mirror://cpan/authors/id/F/FO/FONKIE/${name}.tar.gz";
sha256 = "1jfrwvfasylcafbvb0jjm94ad4v6k99a7rf5i4qwzhg4m0gvmk5x";
};
meta = {
homepage = https://metacpan.org/module/CDDB_get;
description = "Get the CDDB info for an audio cd";
license = stdenv.lib.licenses.artistic1;
platforms = stdenv.lib.platforms.linux;
maintainers = [ maintainers.endgame ];
};
};
CGI = buildPerlPackage rec { CGI = buildPerlPackage rec {
name = "CGI-4.38"; name = "CGI-4.38";
src = fetchurl { src = fetchurl {