3
0
Fork 0
forked from mirrors/nixpkgs

crip: init at 3.9

This commit is contained in:
Jack Kelly 2018-04-08 11:42:13 +10:00
parent babbf2ac5c
commit e1f6778e11
2 changed files with 70 additions and 0 deletions

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 {};
crip = callPackage ../applications/audio/crip { };
crunch = callPackage ../tools/security/crunch { };
crudini = callPackage ../tools/misc/crudini { };