diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-04-08 12:13:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-08 12:13:12 +0100 |
commit | 467886b761462f7b194a006c5b712852c80340e3 (patch) | |
tree | 36326c9f3585f939f08d8cd5eb3947855d94ee73 /pkgs/applications | |
parent | 692e0b5f3aa1c8977375d2ccbf5d0257a76fa744 (diff) | |
parent | e1f6778e115e255ad1ffb5661a3b6348c8293dc9 (diff) | |
download | nixlib-467886b761462f7b194a006c5b712852c80340e3.tar nixlib-467886b761462f7b194a006c5b712852c80340e3.tar.gz nixlib-467886b761462f7b194a006c5b712852c80340e3.tar.bz2 nixlib-467886b761462f7b194a006c5b712852c80340e3.tar.lz nixlib-467886b761462f7b194a006c5b712852c80340e3.tar.xz nixlib-467886b761462f7b194a006c5b712852c80340e3.tar.zst nixlib-467886b761462f7b194a006c5b712852c80340e3.zip |
Merge pull request #38594 from endgame/crip
crip: init at 3.9; perlPackages.CDDB_get: init at 2.28
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/audio/crip/default.nix | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/pkgs/applications/audio/crip/default.nix b/pkgs/applications/audio/crip/default.nix new file mode 100644 index 000000000000..0383af06795e --- /dev/null +++ b/pkgs/applications/audio/crip/default.nix @@ -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 ]; + }; +} |