From 1f5554c2273894e20244c7d538b687ba9a7b254b Mon Sep 17 00:00:00 2001 From: 0xMRTT <0xMRTT@proton.me> Date: Sat, 6 May 2023 16:24:10 +0200 Subject: [PATCH] imaginer: init at 0.1.3 (#230079) --- pkgs/applications/misc/imaginer/default.nix | 68 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 70 insertions(+) create mode 100644 pkgs/applications/misc/imaginer/default.nix diff --git a/pkgs/applications/misc/imaginer/default.nix b/pkgs/applications/misc/imaginer/default.nix new file mode 100644 index 000000000000..3f2b99954e08 --- /dev/null +++ b/pkgs/applications/misc/imaginer/default.nix @@ -0,0 +1,68 @@ +{ stdenv +, lib +, appstream-glib +, blueprint-compiler +, desktop-file-utils +, fetchFromGitHub +, gettext +, glib +, gobject-introspection +, libadwaita +, libsoup_3 +, meson +, ninja +, pkg-config +, python3Packages +, wrapGAppsHook4 +}: + +python3Packages.buildPythonApplication rec { + pname = "imaginer"; + version = "0.1.3"; + + src = fetchFromGitHub { + owner = "ImaginerApp"; + repo = "Imaginer"; + rev = "v${version}"; + hash = "sha256-x1ZnmfaMfxnITiuFDlMPfTU8KZbd1ME9jDevnlsrbJs="; + }; + + format = "other"; + dontWrapGApps = true; + + nativeBuildInputs = [ + appstream-glib + blueprint-compiler + desktop-file-utils + gettext + glib + gobject-introspection + meson + ninja + pkg-config + wrapGAppsHook4 + ]; + + buildInputs = [ + libadwaita + libsoup_3 + ]; + + propagatedBuildInputs = with python3Packages; [ + openai + pillow + pygobject3 + requests + ]; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + + meta = with lib; { + homepage = "https://github.com/ImaginerApp/Imaginer"; + description = "Imaginer with AI"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ _0xMRTT ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 673d91e4b4ee..ccfbb70db667 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -38728,6 +38728,8 @@ with pkgs; logtop = callPackage ../tools/misc/logtop { }; + imaginer = callPackage ../applications/misc/imaginer { }; + igraph = callPackage ../development/libraries/igraph { }; igprof = callPackage ../development/tools/misc/igprof { };