diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-06-15 22:25:38 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-06-15 22:25:38 +0000 |
commit | 57c012a16ce2d331a9aa2172fe28804b2d5332c4 (patch) | |
tree | ef1749cef2c7064e3385846bdfb71cb504fe1aad /pkgs/applications/graphics/pinta | |
parent | 1626db66f5f2bfff8292595f46271e6f7742ca49 (diff) |
Attempt at adding 'pinta'. It still does not build due to mono problems.
Nevertheless, I updated the gnome attribute names a bit so all that gtk-sharp-2 goes a bit beyond. svn path=/nixpkgs/trunk/; revision=22287
Diffstat (limited to 'pkgs/applications/graphics/pinta')
-rw-r--r-- | pkgs/applications/graphics/pinta/builder.sh | 20 | ||||
-rw-r--r-- | pkgs/applications/graphics/pinta/default.nix | 17 |
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/pinta/builder.sh b/pkgs/applications/graphics/pinta/builder.sh new file mode 100644 index 0000000000000..bcea7a7a89afd --- /dev/null +++ b/pkgs/applications/graphics/pinta/builder.sh @@ -0,0 +1,20 @@ +source $stdenv/setup +source $makeWrapper + +postInstall() { + mv $out/bin $out/bin-orig + mkdir $out/bin + + for i in $out/bin-orig/*; do + echo "wrapping $(basename $i)" + # !!! TODO: figure out the MONO_GAC_PREFIX automatically + makeWrapper "$i" "$out/bin/$(basename $i)" \ + --suffix PATH ':' "$(dirname $(type -p mono))" \ + --suffix MONO_GAC_PREFIX ':' "$gtksharp" \ + --suffix MONO_GAC_PREFIX ':' "$out" + done +} + +genericBuild + + diff --git a/pkgs/applications/graphics/pinta/default.nix b/pkgs/applications/graphics/pinta/default.nix new file mode 100644 index 0000000000000..c9dbf24c9b559 --- /dev/null +++ b/pkgs/applications/graphics/pinta/default.nix @@ -0,0 +1,17 @@ +{stdenv, fetchurl, mono, gtksharp, pkgconfig}: + +stdenv.mkDerivation { + name = "pinta-0.3"; + + builder = ./builder.sh; + src = fetchurl { + url = http://download.github.com/jpobst-Pinta-0.3-0-g94f6e82.tar.gz; + sha256 = "0qvpz9602igjmv8ba6vc4kg9jj3yyw0frl7wgz62hdxiizdfhm2f"; + }; + + makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh; + + buildInputs = [mono gtksharp pkgconfig]; + + inherit gtksharp; +} |