diff options
author | Jonas Heinrich <onny@project-insanity.org> | 2022-09-10 11:50:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-10 11:50:56 +0200 |
commit | a128f2b7ef440d5bfa5429fd1091750e9aeded71 (patch) | |
tree | 1f9619213553e53c096e26e6607096c7c8bceaa2 /pkgs/applications/graphics | |
parent | 7cedbf5357450637c9d62c664edf56b66b9f43f8 (diff) | |
parent | f6a34494ebeff5d80f75f2ee382a6e3f14a67f74 (diff) |
Merge pull request #190589 from zendo/eyedropper
eyedropper: init at 0.2.0
Diffstat (limited to 'pkgs/applications/graphics')
-rw-r--r-- | pkgs/applications/graphics/eyedropper/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/eyedropper/default.nix b/pkgs/applications/graphics/eyedropper/default.nix new file mode 100644 index 0000000000000..6344835222346 --- /dev/null +++ b/pkgs/applications/graphics/eyedropper/default.nix @@ -0,0 +1,59 @@ +{ lib +, stdenv +, fetchFromGitHub +, rustPlatform +, pkg-config +, meson +, ninja +, glib +, gtk4 +, libadwaita +, wrapGAppsHook4 +, appstream-glib +, desktop-file-utils +}: + +stdenv.mkDerivation rec { + pname = "eyedropper"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "FineFindus"; + repo = pname; + rev = "v${version}"; + hash = "sha256-xyvnnWts+VuUFlV/o1cGOM7482ReiHVsn+AfdExYBTM="; + }; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit src; + name = "${pname}-${version}"; + hash = "sha256-8G1fJ5YiUAzMqDoIjWGDTvtPw8chkxPrOz/c9WZRbhM="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + wrapGAppsHook4 + appstream-glib + desktop-file-utils + ] ++ (with rustPlatform; [ + rust.cargo + rust.rustc + cargoSetupHook + ]); + + buildInputs = [ + glib + gtk4 + libadwaita + ]; + + meta = with lib; { + description = "An easy-to-use color picker and editor"; + homepage = "https://github.com/FineFindus/eyedropper"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ zendo ]; + }; +} |