diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libgsf/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libgsf/default.nix | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libgsf/default.nix b/nixpkgs/pkgs/development/libraries/libgsf/default.nix index 30324b04d850..172e3a2a2c78 100644 --- a/nixpkgs/pkgs/development/libraries/libgsf/default.nix +++ b/nixpkgs/pkgs/development/libraries/libgsf/default.nix @@ -1,6 +1,8 @@ -{ fetchurl +{ fetchFromGitLab , lib , stdenv +, autoreconfHook +, gtk-doc , pkg-config , intltool , gettext @@ -21,12 +23,26 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; - src = fetchurl { - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "bmwg0HeDOQadWDwNY3WdKX6BfqENDYl+u+ll8W4ujlI="; + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "GNOME"; + repo = "libgsf"; + rev = "LIBGSF_${lib.replaceStrings ["."] ["_"] version}"; + hash = "sha256-6RP2DJWcDQ8dkKtcPxAkRsS7jSvvLoDNZHXiDJwR8Eg="; }; + postPatch = '' + # Fix cross-compilation + substituteInPlace configure.ac \ + --replace "AC_PATH_PROG(PKG_CONFIG, pkg-config, no)" \ + "PKG_PROG_PKG_CONFIG" + ''; + + strictDeps = true; + nativeBuildInputs = [ + autoreconfHook + gtk-doc pkg-config intltool libintl @@ -38,7 +54,7 @@ stdenv.mkDerivation rec { zlib ]; - checkInputs = [ + nativeCheckInputs = [ perl ]; @@ -55,6 +71,14 @@ stdenv.mkDerivation rec { patchShebangs ./tests/ ''; + # checking pkg-config is at least version 0.9.0... ./configure: line 15213: no: command not found + # configure: error: in `/build/libgsf-1.14.50': + # configure: error: The pkg-config script could not be found or is too old. Make sure it + # is in your PATH or set the PKG_CONFIG environment variable to the full + preConfigure = '' + export PKG_CONFIG="$(command -v "$PKG_CONFIG")" + ''; + passthru = { updateScript = gnome.updateScript { packageName = pname; |