From 9bf7b293e606ef1a45cbc9fa14f7650e49164580 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Mon, 4 May 2015 11:58:12 +0200 Subject: [PATCH] make lilv and sord svn versions separate. --- pkgs/applications/audio/ingen/default.nix | 8 +++--- .../libraries/audio/lilv/default.nix | 13 ++++----- .../libraries/audio/lilv/lilv-svn.nix | 28 +++++++++++++++++++ pkgs/development/libraries/sord/default.nix | 13 ++++----- pkgs/development/libraries/sord/sord-svn.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 6 files changed, 74 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/libraries/audio/lilv/lilv-svn.nix create mode 100644 pkgs/development/libraries/sord/sord-svn.nix diff --git a/pkgs/applications/audio/ingen/default.nix b/pkgs/applications/audio/ingen/default.nix index af94e1e7e238..40ba278f7a00 100644 --- a/pkgs/applications/audio/ingen/default.nix +++ b/pkgs/applications/audio/ingen/default.nix @@ -1,5 +1,5 @@ -{ stdenv, fetchsvn, boost, ganv, glibmm, gtk, gtkmm, jack2, lilv -, lv2, makeWrapper, pkgconfig, python, raul, rdflib, serd, sord, sratom +{ stdenv, fetchsvn, boost, ganv, glibmm, gtk, gtkmm, jack2, lilv-svn +, lv2, makeWrapper, pkgconfig, python, raul, rdflib, serd, sord-svn, sratom , suil }: @@ -14,8 +14,8 @@ stdenv.mkDerivation rec { }; buildInputs = [ - boost ganv glibmm gtk gtkmm jack2 lilv lv2 makeWrapper pkgconfig - python raul serd sord sratom suil + boost ganv glibmm gtk gtkmm jack2 lilv-svn lv2 makeWrapper pkgconfig + python raul serd sord-svn sratom suil ]; configurePhase = '' diff --git a/pkgs/development/libraries/audio/lilv/default.nix b/pkgs/development/libraries/audio/lilv/default.nix index 39e32d193cdf..9f3307742ec4 100644 --- a/pkgs/development/libraries/audio/lilv/default.nix +++ b/pkgs/development/libraries/audio/lilv/default.nix @@ -1,13 +1,12 @@ -{ stdenv, fetchsvn, lv2, pkgconfig, python, serd, sord, sratom }: +{ stdenv, fetchurl, lv2, pkgconfig, python, serd, sord, sratom }: stdenv.mkDerivation rec { - name = "lilv-svn-${rev}"; - rev = "5675"; + name = "lilv-${version}"; + version = "0.20.0"; - src = fetchsvn { - url = "http://svn.drobilla.net/lad/trunk/lilv"; - rev = rev; - sha256 = "1wr61sivgbh0j271ix058sncsrgh9p2rh7af081s2z9ml8szgraq"; + src = fetchurl { + url = "http://download.drobilla.net/${name}.tar.bz2"; + sha256 = "0aj2plkx56iar8vzjbq2l7hi7sp0ml99m0h44rgwai2x4vqkk2j2"; }; buildInputs = [ lv2 pkgconfig python serd sord sratom ]; diff --git a/pkgs/development/libraries/audio/lilv/lilv-svn.nix b/pkgs/development/libraries/audio/lilv/lilv-svn.nix new file mode 100644 index 000000000000..0b02774bc172 --- /dev/null +++ b/pkgs/development/libraries/audio/lilv/lilv-svn.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchsvn, lv2, pkgconfig, python, serd, sord-svn, sratom }: + +stdenv.mkDerivation rec { + name = "lilv-svn-${rev}"; + rev = "5675"; + + src = fetchsvn { + url = "http://svn.drobilla.net/lad/trunk/lilv"; + rev = rev; + sha256 = "1wr61sivgbh0j271ix058sncsrgh9p2rh7af081s2z9ml8szgraq"; + }; + + buildInputs = [ lv2 pkgconfig python serd sord-svn sratom ]; + + configurePhase = "python waf configure --prefix=$out"; + + buildPhase = "python waf"; + + installPhase = "python waf install"; + + meta = with stdenv.lib; { + homepage = http://drobilla.net/software/lilv; + description = "A C library to make the use of LV2 plugins"; + license = licenses.mit; + maintainers = [ maintainers.goibhniu ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/development/libraries/sord/default.nix b/pkgs/development/libraries/sord/default.nix index 290e85d81c7e..96a19bf37cc9 100644 --- a/pkgs/development/libraries/sord/default.nix +++ b/pkgs/development/libraries/sord/default.nix @@ -1,13 +1,12 @@ -{ stdenv, fetchsvn, pkgconfig, python, serd }: +{ stdenv, fetchurl, pkgconfig, python, serd }: stdenv.mkDerivation rec { - name = "sord-svn-${rev}"; - rev = "327"; + name = "sord-${version}"; + version = "0.12.2"; - src = fetchsvn { - url = "http://svn.drobilla.net/sord/trunk"; - rev = rev; - sha256 = "09lf6xmwfg8kbmz1b7d3hrpz0qqr8prdjqrp91aw70cgclx2pwc4"; + src = fetchurl { + url = "http://download.drobilla.net/${name}.tar.bz2"; + sha256 = "0rq7vafdv4vsxi6xk9zf5shr59w3kppdhqbj78185rz5gp9kh1dx"; }; buildInputs = [ pkgconfig python serd ]; diff --git a/pkgs/development/libraries/sord/sord-svn.nix b/pkgs/development/libraries/sord/sord-svn.nix new file mode 100644 index 000000000000..290e85d81c7e --- /dev/null +++ b/pkgs/development/libraries/sord/sord-svn.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchsvn, pkgconfig, python, serd }: + +stdenv.mkDerivation rec { + name = "sord-svn-${rev}"; + rev = "327"; + + src = fetchsvn { + url = "http://svn.drobilla.net/sord/trunk"; + rev = rev; + sha256 = "09lf6xmwfg8kbmz1b7d3hrpz0qqr8prdjqrp91aw70cgclx2pwc4"; + }; + + buildInputs = [ pkgconfig python serd ]; + + configurePhase = "python waf configure --prefix=$out"; + + buildPhase = "python waf"; + + installPhase = "python waf install"; + + meta = with stdenv.lib; { + homepage = http://drobilla.net/software/sord; + description = "A lightweight C library for storing RDF data in memory"; + license = licenses.mit; + maintainers = [ maintainers.goibhniu ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 920bbc006211..7380dd7c222d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7550,6 +7550,7 @@ let libsmf = callPackage ../development/libraries/audio/libsmf { }; lilv = callPackage ../development/libraries/audio/lilv { }; + lilv-svn = callPackage ../development/libraries/audio/lilv/lilv-svn.nix { }; lv2 = callPackage ../development/libraries/audio/lv2 { }; @@ -7661,6 +7662,7 @@ let soqt = callPackage ../development/libraries/soqt { }; sord = callPackage ../development/libraries/sord {}; + sord-svn = callPackage ../development/libraries/sord/sord-svn.nix {}; soundtouch = callPackage ../development/libraries/soundtouch {};