mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 05:00:19 +00:00

We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
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";
|
|
};
|
|
}
|