diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-05-01 18:27:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-01 18:27:04 +0200 |
commit | 0c0519bd3bab3bc5bdb2440e9cea69b4e233d693 (patch) | |
tree | b352e7a7483d5c9b13deac1a8fa51587d98634f8 /pkgs/applications/audio | |
parent | 3539f23aee42c9fed43dead84244ea2021bbf0d6 (diff) | |
parent | d2bd8c4482679543743301271914155cea31e10d (diff) | |
download | nixlib-0c0519bd3bab3bc5bdb2440e9cea69b4e233d693.tar nixlib-0c0519bd3bab3bc5bdb2440e9cea69b4e233d693.tar.gz nixlib-0c0519bd3bab3bc5bdb2440e9cea69b4e233d693.tar.bz2 nixlib-0c0519bd3bab3bc5bdb2440e9cea69b4e233d693.tar.lz nixlib-0c0519bd3bab3bc5bdb2440e9cea69b4e233d693.tar.xz nixlib-0c0519bd3bab3bc5bdb2440e9cea69b4e233d693.tar.zst nixlib-0c0519bd3bab3bc5bdb2440e9cea69b4e233d693.zip |
Merge pull request #25362 from laMudri/abcde-musicbrainz
abcde: specify perl runtime dependencies for abcde-musicbrainz-tool
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/abcde/default.nix | 39 |
1 files changed, 12 insertions, 27 deletions
diff --git a/pkgs/applications/audio/abcde/default.nix b/pkgs/applications/audio/abcde/default.nix index a729d5cd4efc..6cb1ae6de719 100644 --- a/pkgs/applications/audio/abcde/default.nix +++ b/pkgs/applications/audio/abcde/default.nix @@ -19,46 +19,31 @@ in configurePhase = '' sed -i "s|^[[:blank:]]*prefix *=.*$|prefix = $out|g ; s|^[[:blank:]]*etcdir *=.*$|etcdir = $out/etc|g ; - s|^[[:blank:]]*INSTALL *=.*$|INSTALL = install -c|g" \ - "Makefile"; + s|^[[:blank:]]*INSTALL *=.*$|INSTALL = install -c|g" \ + "Makefile"; # We use `cd-paranoia' from GNU libcdio, which contains a hyphen # in its name, unlike Xiph's cdparanoia. sed -i "s|^[[:blank:]]*CDPARANOIA=.*$|CDPARANOIA=cd-paranoia|g ; s|^[[:blank:]]*DEFAULT_CDROMREADERS=.*$|DEFAULT_CDROMREADERS=\"cd-paranoia cdda2wav\"|g" \ - "abcde" + "abcde" - substituteInPlace "abcde" \ - --replace "/etc/abcde.conf" "$out/etc/abcde.conf" + substituteInPlace "abcde" \ + --replace "/etc/abcde.conf" "$out/etc/abcde.conf" ''; - # no ELFs in this package, only scripts - dontStrip = true; - dontPatchELF = true; - buildInputs = [ makeWrapper ]; - installFlags = [ "sysconfdir=$(out)/etc" ]; - - postInstall = '' - # substituteInPlace "$out/bin/cddb-tool" \ - # --replace '#!/bin/sh' '#!${bash}/bin/sh' - # substituteInPlace "$out/bin/abcde" \ - # --replace '#!/bin/bash' '#!${bash}/bin/bash' + propagatedBuildInputs = [ perl DigestSHA MusicBrainz MusicBrainzDiscID ]; - # generic fixup script should be doing this, but it ignores this file for some reason - substituteInPlace "$out/bin/abcde-musicbrainz-tool" \ - --replace '#!/usr/bin/perl' '#!${perl}/bin/perl' - - wrapProgram "$out/bin/abcde" --prefix PATH ":" \ - ${stdenv.lib.makeBinPath [ "$out" which libcdio cddiscid wget vorbis-tools id3v2 eyeD3 lame flac glyr ]} - - wrapProgram "$out/bin/cddb-tool" --prefix PATH ":" \ - "${wget}/bin" + installFlags = [ "sysconfdir=$(out)/etc" ]; - wrapProgram "$out/bin/abcde-musicbrainz-tool" --prefix PATH ":" \ - "${wget}/bin" + postFixup = '' + for cmd in abcde cddb-tool abcde-musicbrainz-tool; do + wrapProgram "$out/bin/$cmd" --prefix PATH ":" \ + ${stdenv.lib.makeBinPath [ "$out" which libcdio cddiscid wget vorbis-tools id3v2 eyeD3 lame flac glyr ]} + done ''; meta = { |