nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 69 lines 1.2 kB view raw
1{ 2 lib, 3 appstream-glib, 4 blueprint-compiler, 5 desktop-file-utils, 6 fetchFromGitHub, 7 gettext, 8 glib, 9 gobject-introspection, 10 libadwaita, 11 libsoup_3, 12 meson, 13 ninja, 14 pkg-config, 15 python3Packages, 16 wrapGAppsHook4, 17}: 18 19python3Packages.buildPythonApplication rec { 20 pname = "imaginer"; 21 version = "0.1.3"; 22 23 src = fetchFromGitHub { 24 owner = "ImaginerApp"; 25 repo = "Imaginer"; 26 rev = "v${version}"; 27 hash = "sha256-x1ZnmfaMfxnITiuFDlMPfTU8KZbd1ME9jDevnlsrbJs="; 28 }; 29 30 format = "other"; 31 dontWrapGApps = true; 32 33 nativeBuildInputs = [ 34 appstream-glib 35 blueprint-compiler 36 desktop-file-utils 37 gettext 38 glib 39 gobject-introspection 40 meson 41 ninja 42 pkg-config 43 wrapGAppsHook4 44 ]; 45 46 buildInputs = [ 47 libadwaita 48 libsoup_3 49 ]; 50 51 propagatedBuildInputs = with python3Packages; [ 52 openai 53 pillow 54 pygobject3 55 requests 56 ]; 57 58 preFixup = '' 59 makeWrapperArgs+=("''${gappsWrapperArgs[@]}") 60 ''; 61 62 meta = with lib; { 63 homepage = "https://github.com/ImaginerApp/Imaginer"; 64 description = "Imaginer with AI"; 65 mainProgram = "imaginer"; 66 license = licenses.gpl3Plus; 67 maintainers = with maintainers; [ _0xMRTT ]; 68 }; 69}