2021-01-15 13:21:58 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
2018-04-08 01:42:13 +00:00
|
|
|
fetchurl,
|
|
|
|
makeWrapper,
|
|
|
|
|
|
|
|
perlPackages,
|
|
|
|
|
|
|
|
cdparanoia,
|
|
|
|
coreutils,
|
|
|
|
eject,
|
|
|
|
flac,
|
|
|
|
gnugrep,
|
|
|
|
nano,
|
|
|
|
sox,
|
|
|
|
vorbis-tools,
|
|
|
|
vorbisgain,
|
|
|
|
which,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 10:34:30 +00:00
|
|
|
pname = "crip";
|
|
|
|
version = "3.9";
|
2018-04-08 01:42:13 +00:00
|
|
|
src = fetchurl {
|
2021-06-20 10:34:30 +00:00
|
|
|
url = "http://bach.dynet.com/${pname}/src/${pname}-${version}.tar.gz";
|
2018-04-08 01:42:13 +00:00
|
|
|
sha256 = "0pk9152wll6fmkj1pki3fz3ijlf06jyk32v31yarwvdkwrk7s9xz";
|
|
|
|
};
|
|
|
|
|
2018-12-15 03:50:31 +00:00
|
|
|
buildInputs = [
|
|
|
|
perlPackages.perl
|
|
|
|
perlPackages.CDDB_get
|
|
|
|
];
|
2018-04-08 01:42:13 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2023-01-21 22:06:40 +00:00
|
|
|
toolDeps = lib.makeBinPath [
|
2018-04-08 01:42:13 +00:00
|
|
|
cdparanoia
|
|
|
|
coreutils
|
|
|
|
eject
|
|
|
|
flac
|
|
|
|
gnugrep
|
|
|
|
sox
|
|
|
|
vorbis-tools
|
|
|
|
vorbisgain
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
|
|
|
scripts = [
|
|
|
|
"crip"
|
|
|
|
"editcomment"
|
|
|
|
"editfilenames"
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
|
2023-01-21 22:06:40 +00:00
|
|
|
for script in ${lib.escapeShellArgs scripts}; do
|
2018-04-08 01:42:13 +00:00
|
|
|
cp $script $out/bin/
|
|
|
|
|
|
|
|
substituteInPlace $out/bin/$script \
|
2024-06-24 00:07:29 +00:00
|
|
|
--replace-fail '$editor = "vim";' '$editor = "${nano}/bin/nano";'
|
2018-04-08 01:42:13 +00:00
|
|
|
|
|
|
|
wrapProgram $out/bin/$script \
|
2018-12-15 03:50:31 +00:00
|
|
|
--set PERL5LIB "${perlPackages.makePerlPath [ perlPackages.CDDB_get ]}" \
|
2018-04-08 01:42:13 +00:00
|
|
|
--set PATH "${toolDeps}"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://bach.dynet.com/crip/";
|
2018-04-08 01:42:13 +00:00
|
|
|
description = "Terminal-based ripper/encoder/tagger tool for creating Ogg Vorbis/FLAC files";
|
2022-09-29 08:54:21 +00:00
|
|
|
license = lib.licenses.gpl1Only;
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2023-01-21 22:06:40 +00:00
|
|
|
maintainers = [ lib.maintainers.endgame ];
|
2018-04-08 01:42:13 +00:00
|
|
|
};
|
|
|
|
}
|