diff --git a/pkgs/applications/audio/ir.lv2/default.nix b/pkgs/applications/audio/ir.lv2/default.nix index d6dbc4c55a98..cc613541a256 100644 --- a/pkgs/applications/audio/ir.lv2/default.nix +++ b/pkgs/applications/audio/ir.lv2/default.nix @@ -1,20 +1,21 @@ -{ stdenv, fetchurl, fftw, gtk, lv2, libsamplerate, libsndfile, pkgconfig, zita-convolver }: +{ stdenv, fetchFromGitHub, fftw, gtk2, lv2, libsamplerate, libsndfile, pkgconfig, zita-convolver }: stdenv.mkDerivation rec { name = "ir.lv2-${version}"; - version = "1.2.2"; + version = "1.2.3"; - src = fetchurl { - url = "http://factorial.hu/system/files/${name}.tar.gz"; - sha256 = "17a6h2mv9xv41jpbx6bdakkngin4kqzh2v67l4076ddq609k5a7v"; + src = fetchFromGitHub { + owner = "tomszilagyi"; + repo = "ir.lv2"; + rev = "${version}"; + sha256 = "16vy06qb0vgwg4yx15grzh5m2q3cbzm3jd0p37g2qb8rgvjhladg"; }; - buildInputs = [ fftw gtk lv2 libsamplerate libsndfile pkgconfig zita-convolver ]; + buildInputs = [ fftw gtk2 lv2 libsamplerate libsndfile zita-convolver ]; - buildPhase = '' - make - make convert4chan - ''; + nativeBuildInputs = [ pkgconfig ]; + + postBuild = "make convert4chan"; installPhase = '' mkdir -p "$out/bin" @@ -23,10 +24,6 @@ stdenv.mkDerivation rec { make PREFIX="$out" install install -Dm755 convert4chan "$out/bin/convert4chan" - # fixed location - sed -i 's/, but seem like its gone://' README - sed -i 's@rhythminmind.net/1313@rhythminmind.net/STN@' README - install -Dm644 README "$out/share/doc/README" ''; meta = with stdenv.lib; {