bless: 0.6.2 -> 0.6.3

+20 -35
+20 -35
pkgs/applications/editors/bless/default.nix
··· 1 { lib, stdenv 2 , fetchFromGitHub 3 - , autoreconfHook 4 , pkg-config 5 , mono 6 , gtk-sharp-2_0 7 , gettext 8 , makeWrapper 9 , glib 10 , gtk2-x11 11 - , gnome2 12 }: 13 14 stdenv.mkDerivation rec { 15 pname = "bless"; 16 - version = "0.6.2"; 17 18 src = fetchFromGitHub { 19 owner = "afrantzis"; 20 repo = pname; 21 rev = "v${version}"; 22 - sha256 = "04ra2mcx3pkhzbhcz0zwfmbpqj6cwisrypi6xbc2d6pxd4hdafn1"; 23 }; 24 25 buildInputs = [ 26 gtk-sharp-2_0 27 mono 28 # runtime only deps 29 glib 30 gtk2-x11 31 - gnome2.libglade 32 ]; 33 34 nativeBuildInputs = [ 35 pkg-config 36 - autoreconfHook 37 gettext 38 makeWrapper 39 ]; 40 41 - configureFlags = [ 42 - # scrollkeeper is a gnome2 package, so it must be old and we shouldn't really support it 43 - # NOTE: that sadly doesn't turn off the compilation of the manual with scrollkeeper, so we have to fake the binaries below 44 - "--without-scrollkeeper" 45 - ]; 46 - 47 - autoreconfPhase = '' 48 - mkdir _bin 49 - 50 - # this fakes the scrollkeeper commands, to keep the build happy 51 - for f in scrollkeeper-preinstall scrollkeeper-update; do 52 - echo "true" > ./_bin/$f 53 - chmod +x ./_bin/$f 54 - done 55 - 56 - export PATH="$PWD/_bin:$PATH" 57 - 58 - # and it also wants to install that file 59 - touch ./doc/user/bless-manual.omf 60 - 61 - # patch mono path 62 - sed "s|^mono|${mono}/bin/mono|g" -i src/bless-script.in 63 - 64 - ./autogen.sh 65 - ''; 66 - 67 preFixup = '' 68 - MPATH="${gtk-sharp-2_0}/lib/mono/gtk-sharp-2.0:${glib.out}/lib:${gtk2-x11}/lib:${gnome2.libglade}/lib:${gtk-sharp-2_0}/lib" 69 - wrapProgram $out/bin/bless --prefix MONO_PATH : "$MPATH" --prefix LD_LIBRARY_PATH : "$MPATH" 70 - ''; 71 72 meta = with lib; { 73 homepage = "https://github.com/afrantzis/bless";
··· 1 { lib, stdenv 2 , fetchFromGitHub 3 , pkg-config 4 , mono 5 + , meson 6 + , ninja 7 , gtk-sharp-2_0 8 , gettext 9 , makeWrapper 10 , glib 11 , gtk2-x11 12 + , libxslt 13 + , docbook_xsl 14 + , python3 15 }: 16 17 stdenv.mkDerivation rec { 18 pname = "bless"; 19 + version = "0.6.3"; 20 21 src = fetchFromGitHub { 22 owner = "afrantzis"; 23 repo = pname; 24 rev = "v${version}"; 25 + hash = "sha256-rS+vJX0y9v1TiPsRfABroHiTuENQKEOxNsyKwagRuHM="; 26 }; 27 28 + postPatch = '' 29 + sed "s|get_option('tests')|false|g" -i meson.build 30 + patchShebangs . 31 + ''; 32 + 33 buildInputs = [ 34 gtk-sharp-2_0 35 mono 36 # runtime only deps 37 glib 38 gtk2-x11 39 ]; 40 41 nativeBuildInputs = [ 42 pkg-config 43 + meson 44 + ninja 45 gettext 46 makeWrapper 47 + libxslt 48 + docbook_xsl 49 + python3 50 ]; 51 52 preFixup = '' 53 + MPATH="${gtk-sharp-2_0}/lib/mono/gtk-sharp-2.0:${glib.out}/lib:${gtk2-x11}/lib:${gtk-sharp-2_0}/lib" 54 + wrapProgram $out/bin/bless --prefix MONO_PATH : "$MPATH" --prefix LD_LIBRARY_PATH : "$MPATH" --prefix PATH : ${lib.makeBinPath [ mono ]} 55 + ''; 56 57 meta = with lib; { 58 homepage = "https://github.com/afrantzis/bless";