depot/third_party/nixpkgs/pkgs/by-name/ey/eyedropper/package.nix

64 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
cargo,
pkg-config,
meson,
ninja,
blueprint-compiler,
glib,
gtk4,
libadwaita,
rustc,
wrapGAppsHook4,
appstream-glib,
desktop-file-utils,
}:
stdenv.mkDerivation rec {
pname = "eyedropper";
version = "2.0.1";
src = fetchFromGitHub {
owner = "FineFindus";
repo = pname;
rev = "v${version}";
hash = "sha256-FyGj0180Wn8iIDTdDqnNEvFYegwdWCsCq+hmyTTUIo4=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-jXo7Aq+pXWySe6MyH9GCTQVNwbboER7RwJe6Asqbxxc=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
blueprint-compiler
wrapGAppsHook4
appstream-glib
desktop-file-utils
cargo
rustc
rustPlatform.cargoSetupHook
];
buildInputs = [
glib
gtk4
libadwaita
];
meta = {
description = "Pick and format colors";
homepage = "https://github.com/FineFindus/eyedropper";
mainProgram = "eyedropper";
license = lib.licenses.gpl3Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ zendo ];
};
}