nixpkgs/pkgs/tools/cd-dvd/cuetools/default.nix
hhm 99d338b130 cuetools: symlink cuetag to cuetag.sh
Debian-based distros call cuetag.sh "cuetag" (see https://packages.debian.org/buster/amd64/cuetools/filelist).
This adds a symlink for compatibility with those distros.
2019-02-26 20:26:52 -05:00

31 lines
881 B
Nix

{ stdenv, fetchurl, autoreconfHook
, bison, flac, flex, id3v2, vorbis-tools
}:
stdenv.mkDerivation rec {
name = "cuetools-${version}";
version = "1.4.1";
src = fetchurl {
url = "https://github.com/svend/cuetools/archive/${version}.tar.gz";
sha256 = "01xi3rvdmil9nawsha04iagjylqr1l9v9vlzk99scs8c207l58i4";
};
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;
license = licenses.gpl2;
maintainers = with maintainers; [ codyopel jcumming ];
platforms = platforms.all;
};
}