2022-07-29 01:48:16 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, wrapGAppsHook
|
|
|
|
, boost
|
|
|
|
, pkg-config
|
|
|
|
, gtk3
|
|
|
|
, ragel
|
|
|
|
, lua
|
2023-01-17 05:51:39 +01:00
|
|
|
, fetchpatch
|
2022-07-29 01:48:16 +02:00
|
|
|
, lib
|
|
|
|
}:
|
2021-07-07 11:55:06 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gpick";
|
2023-01-17 05:51:39 +01:00
|
|
|
version = "0.3";
|
2021-07-07 11:55:06 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thezbyg";
|
|
|
|
repo = pname;
|
2023-01-17 05:51:39 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-Z17YpdAAr2wvDFkrAosyCN6Y/wsFVkiB9IDvXuP9lYo=";
|
2021-07-07 11:55:06 +02:00
|
|
|
};
|
|
|
|
|
2023-01-17 05:51:39 +01:00
|
|
|
patches = [
|
|
|
|
# gpick/cmake/Version.cmake
|
|
|
|
./dot-version.patch
|
|
|
|
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/1d53a9aace4bb60300e52458bb1577d248cb87cd/trunk/buildfix.diff";
|
|
|
|
hash = "sha256-DnRU90VPyFhLYTk4GPJoiVYadJgtYgjMS4MLgmpYLP0=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-07-29 01:48:16 +02:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ];
|
2021-07-07 11:55:06 +02:00
|
|
|
buildInputs = [ boost gtk3 ragel lua ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Advanced color picker written in C++ using GTK+ toolkit";
|
|
|
|
homepage = "http://www.gpick.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.vanilla ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|