From dd0424b027c4e912362443256efc2eec6f9f8e01 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 20 Jul 2022 22:53:08 +0800 Subject: [PATCH] emulsion-palette: init at 3.3.9 --- .../graphics/emulsion-palette/default.nix | 48 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/applications/graphics/emulsion-palette/default.nix diff --git a/pkgs/applications/graphics/emulsion-palette/default.nix b/pkgs/applications/graphics/emulsion-palette/default.nix new file mode 100644 index 000000000000..3c2173826697 --- /dev/null +++ b/pkgs/applications/graphics/emulsion-palette/default.nix @@ -0,0 +1,48 @@ +{ stdenv +, lib +, fetchFromGitHub +, meson +, ninja +, vala +, wrapGAppsHook4 +, libadwaita +, json-glib +, libgee +, pkg-config +, gtk3 +, desktop-file-utils +}: + +stdenv.mkDerivation rec { + pname = "emulsion-palette"; + version = "3.3.9"; + + src = fetchFromGitHub { + owner = "lainsce"; + repo = "emulsion"; + rev = version; + sha256 = "sha256-xG7yZKbbNao/pzFhdTMof/lw9K12NKZi47YRaEd65ok="; + }; + + nativeBuildInputs = [ meson ninja pkg-config vala wrapGAppsHook4 ]; + + buildInputs = [ + desktop-file-utils + gtk3 # We're only using it for the gtk-update-icon-cache utility. + json-glib + libadwaita + libgee + ]; + + postFixup = '' + ln -s $out/bin/io.github.lainsce.Emulsion $out/bin/emulsion-palette + ''; + + meta = with lib; { + description = "Store your color palettes in an easy way"; + homepage = "https://github.com/lainsce/emulsion"; + license = licenses.gpl3Only; + platforms = platforms.linux; + maintainers = with maintainers; [ foo-dogsquared ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8f725ba2e38c..18899096dbf6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5862,6 +5862,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) AppKit CoreGraphics CoreServices Foundation OpenGL; }; + emulsion-palette = callPackage ../applications/graphics/emulsion-palette { }; + emv = callPackage ../tools/misc/emv { }; enblend-enfuse = callPackage ../tools/graphics/enblend-enfuse {