diff options
author | zendo <linzway@qq.com> | 2022-09-08 23:35:39 +0800 |
---|---|---|
committer | zendo <linzway@qq.com> | 2022-09-10 11:24:48 +0800 |
commit | f6a34494ebeff5d80f75f2ee382a6e3f14a67f74 (patch) | |
tree | 7f89d6d9aa52e130d6d927a9e72374494958e42f /pkgs/applications/graphics | |
parent | 034175e4bea4e4b735d35fd06e04213f0777d4ff (diff) |
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 ]; + }; +} |