2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
|
|
|
|
|
|
|
, perlPackages
|
|
|
|
|
|
|
|
, cdparanoia
|
|
|
|
, coreutils
|
|
|
|
, eject
|
|
|
|
, flac
|
|
|
|
, gnugrep
|
|
|
|
, nano
|
|
|
|
, sox
|
|
|
|
, vorbis-tools
|
|
|
|
, vorbisgain
|
|
|
|
, which
|
|
|
|
}:
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "crip";
|
|
|
|
version = "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-07-21 07:28:18 +00:00
|
|
|
url = "http://bach.dynet.com/${pname}/src/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0pk9152wll6fmkj1pki3fz3ijlf06jyk32v31yarwvdkwrk7s9xz";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perlPackages.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 "${perlPackages.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";
|
2022-10-21 18:38:19 +00:00
|
|
|
license = lib.licenses.gpl1Only;
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.endgame ];
|
|
|
|
};
|
|
|
|
}
|