nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 70 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 rustPlatform, 6 cargo, 7 pkg-config, 8 meson, 9 ninja, 10 blueprint-compiler, 11 glib, 12 gtk4, 13 libadwaita, 14 rustc, 15 wrapGAppsHook4, 16 appstream-glib, 17 desktop-file-utils, 18 nix-update-script, 19}: 20 21stdenv.mkDerivation (finalAttrs: { 22 pname = "eyedropper"; 23 version = "2.1.0"; 24 25 src = fetchFromGitHub { 26 owner = "FineFindus"; 27 repo = "eyedropper"; 28 tag = "v${finalAttrs.version}"; 29 hash = "sha256-t/OFA4oDXtnMmyFptG7zsGW5ubaSNrSnaDR1l9nVbLQ="; 30 }; 31 32 cargoDeps = rustPlatform.fetchCargoVendor { 33 inherit (finalAttrs) pname src version; 34 hash = "sha256-39BWpyGhX6fYzxwrodiK1A3ASuRiI7tOA+pSKu8Bx5Q="; 35 }; 36 37 nativeBuildInputs = [ 38 meson 39 ninja 40 pkg-config 41 blueprint-compiler 42 wrapGAppsHook4 43 appstream-glib 44 desktop-file-utils 45 cargo 46 rustc 47 rustPlatform.cargoSetupHook 48 ]; 49 50 buildInputs = [ 51 glib 52 gtk4 53 libadwaita 54 ]; 55 56 passthru = { 57 updateScript = nix-update-script { }; 58 }; 59 60 meta = { 61 description = "Pick and format colors"; 62 homepage = "https://github.com/FineFindus/eyedropper"; 63 changelog = "https://github.com/FineFindus/eyedropper/releases/tag/v${finalAttrs.version}"; 64 mainProgram = "eyedropper"; 65 license = lib.licenses.gpl3Plus; 66 platforms = lib.platforms.linux; 67 maintainers = with lib.maintainers; [ zendo ]; 68 teams = [ lib.teams.gnome-circle ]; 69 }; 70})