diff options
author | worldofpeace <worldofpeace@users.noreply.github.com> | 2018-12-25 17:41:02 -0500 |
---|---|---|
committer | worldofpeace <worldofpeace@users.noreply.github.com> | 2018-12-25 20:14:28 -0500 |
commit | c1599d29d914faa6222915c6342ae73533523b1a (patch) | |
tree | 794db50a2c38b4cdaf193649cd1df90b8edb6aa9 /pkgs/development/libraries/gcr | |
parent | 1954e6a9493de153b4670e118e1b096304e72962 (diff) | |
download | nixpkgs-c1599d29d914faa6222915c6342ae73533523b1a.tar nixpkgs-c1599d29d914faa6222915c6342ae73533523b1a.tar.gz nixpkgs-c1599d29d914faa6222915c6342ae73533523b1a.tar.bz2 nixpkgs-c1599d29d914faa6222915c6342ae73533523b1a.tar.lz nixpkgs-c1599d29d914faa6222915c6342ae73533523b1a.tar.xz nixpkgs-c1599d29d914faa6222915c6342ae73533523b1a.tar.zst nixpkgs-c1599d29d914faa6222915c6342ae73533523b1a.zip |
gcr: rename from gnome3.gcr
Diffstat (limited to 'pkgs/development/libraries/gcr')
-rw-r--r-- | pkgs/development/libraries/gcr/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/libraries/gcr/default.nix b/pkgs/development/libraries/gcr/default.nix new file mode 100644 index 00000000000..56c52e1e368 --- /dev/null +++ b/pkgs/development/libraries/gcr/default.nix @@ -0,0 +1,49 @@ +{ stdenv, fetchurl, pkgconfig, intltool, gnupg, p11-kit, glib +, libgcrypt, libtasn1, dbus-glib, gtk3, pango, gdk_pixbuf, atk +, gobject-introspection, makeWrapper, libxslt, vala, gnome3 +, python2 }: + +stdenv.mkDerivation rec { + pname = "gcr"; + version = "3.28.0"; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "02xgky22xgvhgd525khqh64l5i21ca839fj9jzaqdi3yvb8pbq8m"; + }; + + passthru = { + updateScript = gnome3.updateScript { packageName = pname; }; + }; + + postPatch = '' + patchShebangs . + ''; + + outputs = [ "out" "dev" ]; + + nativeBuildInputs = [ pkgconfig intltool gobject-introspection libxslt makeWrapper vala ]; + + buildInputs = let + gpg = gnupg.override { guiSupport = false; }; # prevent build cycle with pinentry_gnome + in [ + gpg libgcrypt libtasn1 dbus-glib pango gdk_pixbuf atk + ]; + + propagatedBuildInputs = [ glib gtk3 p11-kit ]; + + checkInputs = [ python2 ]; + doCheck = false; # fails 21 out of 603 tests, needs dbus daemon + + #enableParallelBuilding = true; issues on hydra + + preFixup = '' + wrapProgram "$out/bin/gcr-viewer" \ + --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" + ''; + + meta = with stdenv.lib; { + platforms = platforms.linux; + maintainers = gnome3.maintainers; + }; +} |