3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #56397 from hhm0/cuetools_cuetag

cuetools: symlink cuetag to cuetag.sh
This commit is contained in:
worldofpeace 2019-02-26 20:30:53 -05:00 committed by GitHub
commit 1c4630b17a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,27 @@
{ stdenv, fetchurl, autoreconfHook
{ stdenv, fetchFromGitHub, autoreconfHook
, bison, flac, flex, id3v2, vorbis-tools
}:
stdenv.mkDerivation rec {
name = "cuetools-${version}";
pname = "cuetools";
version = "1.4.1";
src = fetchurl {
url = "https://github.com/svend/cuetools/archive/${version}.tar.gz";
sha256 = "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4";
src = fetchFromGitHub {
owner = "svend";
repo = pname;
rev = version;
sha256 = "02ksv1ahf1v4cr2xbclsfv5x17m9ivzbssb5r8xjm97yh8a7spa3";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ bison flac flex id3v2 vorbis-tools ];
postInstall = ''
# add link for compatibility with Debian-based distros, which package `cuetag.sh` as `cuetag`
ln -s $out/bin/cuetag.sh $out/bin/cuetag
'';
meta = with stdenv.lib; {
description = "A set of utilities for working with cue files and toc files";
homepage = https://github.com/svend/cuetools;