mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, wrapGAppsHook3
|
|
, boost
|
|
, pkg-config
|
|
, gtk3
|
|
, ragel
|
|
, lua
|
|
, fetchpatch
|
|
, lib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gpick";
|
|
version = "0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thezbyg";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Z17YpdAAr2wvDFkrAosyCN6Y/wsFVkiB9IDvXuP9lYo=";
|
|
};
|
|
|
|
patches = [
|
|
# gpick/cmake/Version.cmake
|
|
./dot-version.patch
|
|
|
|
(fetchpatch {
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/1d53a9aace4bb60300e52458bb1577d248cb87cd/trunk/buildfix.diff";
|
|
hash = "sha256-DnRU90VPyFhLYTk4GPJoiVYadJgtYgjMS4MLgmpYLP0=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapGAppsHook3 ];
|
|
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;
|
|
mainProgram = "gpick";
|
|
};
|
|
}
|