2019-09-02 02:07:45 -07:00
|
|
|
{ stdenv
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, glib
|
|
|
|
, intltool
|
|
|
|
, json_c
|
|
|
|
, libtool
|
|
|
|
, pkgconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "libmypaint";
|
2019-09-02 02:07:45 -07:00
|
|
|
version = "1.3.0";
|
2017-06-30 11:53:45 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mypaint";
|
|
|
|
repo = "libmypaint";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0b7aynr6ggigwhjkfzi8x3dwz15blj4grkg9hysbgjh6lvzpy9jc";
|
|
|
|
};
|
|
|
|
|
2018-03-22 05:27:31 -07:00
|
|
|
patches = [
|
|
|
|
# build with automake 1.16
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/mypaint/libmypaint/commit/40d9077a80be13942476f164bddfabe842ab2a45.patch;
|
|
|
|
sha256 = "1dclh7apgvr2bvzy9z3rgas3hk9pf2hpf5h52q94kmx8s4a47qpi";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-09-02 02:07:45 -07:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
pkgconfig
|
|
|
|
];
|
2017-06-30 11:53:45 -07:00
|
|
|
|
2019-09-02 02:07:45 -07:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
2017-06-30 11:53:45 -07:00
|
|
|
|
2019-09-02 02:07:45 -07:00
|
|
|
# for libmypaint.pc
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
json_c
|
|
|
|
];
|
2017-06-30 11:53:45 -07:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://mypaint.org/;
|
|
|
|
description = "Library for making brushstrokes which is used by MyPaint and other projects";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ goibhniu jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|