summary refs log tree commit diff
path: root/pkgs/development/libraries/hyena/default.nix
blob: daa4f7fb9f2132d837863ffa0900ee5b3fffc7fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ stdenv, fetchurl, pkgconfig, mono, gtk-sharp, monoDLLFixer }:

stdenv.mkDerivation rec {
  name = "hyena-${version}";
  version = "0.5";

  src = fetchurl {
    url = "mirror://gnome/sources/hyena/${version}/hyena-${version}.tar.bz2" ;
    sha256 = "eb7154a42b6529bb9746c39272719f3168d6363ed4bad305a916ed7d90bc8de9";
  };

  buildInputs = [
    pkgconfig mono gtk-sharp
  ];

  postPatch = ''
    patchShebangs build/dll-map-makefile-verifier
    patchShebangs build/private-icon-theme-installer
    find -name Makefile.in | xargs -n 1 -d '\n' sed -e 's/^dnl/#/' -i
  '';

  preConfigure = ''
    substituteInPlace configure --replace gmcs mcs
  '';

  dontStrip = true;

  inherit monoDLLFixer;

  meta = with stdenv.lib; {
    homepage = https://wiki.gnome.org/Hyena;
    description = "A C# library which contains a hodge-podge of random stuff";
    longDescription = ''
      Hyena is a C# library used to make awesome applications. It contains a lot of random things,
      including useful data structures, a Sqlite-based db layer, cool widgets, a JSON library,
      a smart job/task scheduler, a user-query/search parser, and much more. It's particularly
      useful for Gtk# applications, though only the Hyena.Gui assembly requires Gtk#.
    '';
    platforms = platforms.all;
    maintainers = with maintainers; [ obadz ];
  };
}