about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGabriel Arazas <foodogsquared@foodogsquared.one>2023-01-31 16:08:41 +0800
committerGabriel Arazas <foodogsquared@foodogsquared.one>2023-01-31 22:41:14 +0800
commit18eca121d2f29331f97818a0a3fca39f5859d83e (patch)
tree5111c8addd0c71e9750b7bbe032389c914614938
parent70d8e51d872b179865cd50359d970af33ce37ddf (diff)
emblem: init at 1.1.0
-rw-r--r--pkgs/applications/graphics/emblem/default.nix64
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 66 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/emblem/default.nix b/pkgs/applications/graphics/emblem/default.nix
new file mode 100644
index 0000000000000..8df8b76801396
--- /dev/null
+++ b/pkgs/applications/graphics/emblem/default.nix
@@ -0,0 +1,64 @@
+{ lib
+, stdenv
+, fetchFromGitLab
+, rustPlatform
+, pkg-config
+, meson
+, ninja
+, glib
+, gobject-introspection
+, libadwaita
+, libxml2
+, librsvg
+, wrapGAppsHook4
+, appstream-glib
+, desktop-file-utils
+}:
+
+stdenv.mkDerivation rec {
+  pname = "emblem";
+  version = "1.1.0";
+
+  src = fetchFromGitLab {
+    domain = "gitlab.gnome.org";
+    owner = "World/design";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-kNPV1SHkNTBXbMzDJGuDbaGz1WkBqMpVgZKjsh7ejmo=";
+  };
+
+  cargoDeps = rustPlatform.fetchCargoTarball {
+    inherit src;
+    name = "${pname}-${version}";
+    hash = "sha256-yhXxlUOe+mWVpAEB0yN9m5S5yfNRrHnx7XHLXbbf1hc=";
+  };
+
+  nativeBuildInputs = [
+    appstream-glib
+    glib
+    gobject-introspection
+    meson
+    ninja
+    pkg-config
+    wrapGAppsHook4
+  ] ++ (with rustPlatform; [
+    cargoSetupHook
+    rust.cargo
+    rust.rustc
+  ]);
+
+  buildInputs = [
+    desktop-file-utils
+    libadwaita
+    librsvg
+    libxml2
+  ];
+
+  meta = with lib; {
+    description = "Generate project icons and avatars from a symbolic icon";
+    homepage = "https://gitlab.gnome.org/World/design/emblem";
+    license = licenses.gpl3Plus;
+    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 5bf8b93ac6621..5943d9ac096a4 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -6949,6 +6949,8 @@ with pkgs;
 
   emborg = python3Packages.callPackage ../development/python-modules/emborg { };
 
+  emblem = callPackage ../applications/graphics/emblem { };
+
   emem = callPackage ../applications/misc/emem { };
 
   empty = callPackage ../tools/misc/empty { };