nixpkgs/pkgs/development/libraries/libsigcxx/default.nix

30 lines
917 B
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, pkgconfig, gnum4 }:
let
2016-09-29 12:17:00 +00:00
ver_maj = "2.10"; # odd major numbers are unstable
2016-04-03 06:06:27 +00:00
ver_min = "0";
in
stdenv.mkDerivation rec {
name = "libsigc++-${ver_maj}.${ver_min}";
src = fetchurl {
url = "mirror://gnome/sources/libsigc++/${ver_maj}/${name}.tar.xz";
2016-09-29 12:17:00 +00:00
sha256 = "f843d6346260bfcb4426259e314512b99e296e8ca241d771d21ac64f28298d81";
};
patches = [(fetchpatch {
url = "https://anonscm.debian.org/cgit/collab-maint/libsigc++-2.0.git/plain"
+ "/debian/patches/0002-Enforce-c-11-via-pkg-config.patch?id=d451a4d195b1";
sha256 = "19g19473syp2z3kg8vdrli89lm9kcvaqajkqfmdig1vfpkbq0nci";
})];
nativeBuildInputs = [ pkgconfig gnum4 ];
doCheck = true;
meta = with stdenv.lib; {
homepage = http://libsigc.sourceforge.net/;
description = "A typesafe callback system for standard C++";
license = licenses.lgpl21;
platforms = platforms.all;
};
}