diff --git a/pkgs/applications/audio/mp3splt/default.nix b/pkgs/applications/audio/mp3splt/default.nix index 08d91498cc0a..0fa9022f67bc 100644 --- a/pkgs/applications/audio/mp3splt/default.nix +++ b/pkgs/applications/audio/mp3splt/default.nix @@ -1,20 +1,27 @@ -{ fetchurl, stdenv, libmp3splt, pkgconfig }: +{ stdenv, fetchurl, pkgconfig, libmp3splt }: stdenv.mkDerivation rec { - name = "mp3splt-2.6.1"; + pname = "mp3splt"; + version = "2.6.2"; + name = "${pname}-${version}"; + src = fetchurl { - url = "http://prdownloads.sourceforge.net/mp3splt/${name}.tar.gz"; - sha256 = "783a903fafbcf47f06673136a78b78d32a8e616a6ae06b79b459a32090dd14f7"; + url = "mirror://sourceforge/${pname}/${name}.tar.gz"; + sha256 = "1aiv20gypb6r84qabz8gblk8vi42cg3x333vk2pi3fyqvl82phry"; }; - buildInputs = [ libmp3splt pkgconfig ]; + configureFlags = [ "--enable-oggsplt-symlink" "--enable-flacsplt-symlink" ]; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ libmp3splt ]; - meta = { - description = "utility to split mp3, ogg vorbis and FLAC files without decoding"; + outputs = [ "out" "man" ]; + + meta = with stdenv.lib; { + description = "Utility to split mp3, ogg vorbis and FLAC files without decoding"; homepage = http://sourceforge.net/projects/mp3splt/; - license = stdenv.lib.licenses.gpl2; - maintainers = [ stdenv.lib.maintainers.bosu ]; - platforms = stdenv.lib.platforms.unix; + license = licenses.gpl2; + maintainers = [ maintainers.bosu ]; + platforms = platforms.unix; }; }