2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv
|
2019-09-02 11:07:45 +02:00
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, intltool
|
|
|
|
, json_c
|
|
|
|
, libtool
|
2021-01-19 07:50:56 +01:00
|
|
|
, pkg-config
|
2019-11-28 13:56:44 +01:00
|
|
|
, python3
|
2019-09-02 11:07:45 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "libmypaint";
|
2020-05-19 20:08:48 +02:00
|
|
|
version = "1.6.1";
|
2019-09-02 11:59:27 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2017-06-30 20:53:45 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mypaint";
|
|
|
|
repo = "libmypaint";
|
|
|
|
rev = "v${version}";
|
2020-05-19 20:08:48 +02:00
|
|
|
sha256 = "1ppgpmnhph9h8ayx9776f79a0bxbdszfw9c6bw7c3ffy2yk40178";
|
2017-06-30 20:53:45 +02:00
|
|
|
};
|
|
|
|
|
2019-09-02 11:07:45 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
intltool
|
|
|
|
libtool
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-11-28 13:56:44 +01:00
|
|
|
python3
|
2019-09-02 11:07:45 +02:00
|
|
|
];
|
2017-06-30 20:53:45 +02:00
|
|
|
|
2019-09-02 11:07:45 +02:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
];
|
2017-06-30 20:53:45 +02:00
|
|
|
|
2019-09-02 11:07:45 +02:00
|
|
|
# for libmypaint.pc
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
json_c
|
|
|
|
];
|
2017-06-30 20:53:45 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-03-02 14:09:14 +01:00
|
|
|
homepage = "http://mypaint.org/";
|
2017-06-30 20:53:45 +02:00
|
|
|
description = "Library for making brushstrokes which is used by MyPaint and other projects";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ goibhniu jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|