Commit 6b06d958 authored by Francesco Gazzetta's avatar Francesco Gazzetta
Browse files

soundtracker: 1.0.3 -> 1.0.4, use fetchzip

parent a382cd09
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
{ lib, stdenv
, fetchurl
, fetchzip
, pkg-config
, autoreconfHook
, gtk2
@@ -8,19 +8,21 @@
, jack2
, audiofile
, goocanvas # graphical envelope editing
, libxml2
, libsndfile
}:

stdenv.mkDerivation rec {
  pname = "soundtracker";
  version = "1.0.3";
  version = "1.0.4";

  src = fetchurl {
  src = fetchzip {
    # Past releases get moved to the "old releases" directory.
    # Only the latest release is at the top level.
    # Nonetheless, only the name of the file seems to affect which file is
    # downloaded, so this path should be fine both for old and current releases.
    url = "mirror://sourceforge/soundtracker/soundtracker-${version}.tar.xz";
    sha256 = "sha256-k+TB1DIauOIeQSCVV5uYu69wwRx7vCRAlSCTAtDguKo=";
    hash = "sha256-kNt0BSRaEQY+oa1xbuZ1l6nCqXhcktVugxzcC3ZDaX0=";
  };

  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
@@ -55,6 +57,8 @@ stdenv.mkDerivation rec {
    jack2
    audiofile
    goocanvas
    libxml2
    libsndfile
  ] ++ lib.optional stdenv.isLinux alsa-lib;

  meta = with lib; {