diff --git a/pkgs/by-name/nu/nucleus/package.nix b/pkgs/by-name/nu/nucleus/package.nix new file mode 100644 index 000000000000..96fd47a7c1fe --- /dev/null +++ b/pkgs/by-name/nu/nucleus/package.nix @@ -0,0 +1,65 @@ +{ + lib, + python3Packages, + fetchFromGitea, + ninja, + meson, + pkg-config, + wrapGAppsHook4, + glib, + desktop-file-utils, + appstream-glib, + blueprint-compiler, + libadwaita, + nix-update-script, +}: +let + version = "1"; +in +python3Packages.buildPythonApplication { + pname = "nucleus"; + inherit version; + pyproject = false; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "lo-vely"; + repo = "nucleus"; + tag = "v${version}"; + hash = "sha256-8y3sbtfq4hZuEwReduIkud91SOj9XrURrZRUs2M74mQ="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + wrapGAppsHook4 + glib + desktop-file-utils + appstream-glib + blueprint-compiler + ]; + + dependencies = with python3Packages; [ + pygobject3 + ]; + + buildInputs = [ + libadwaita + ]; + + dontWrapGApps = true; + makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Unofficial GNOME Periodic Table"; + homepage = "https://codeberg.org/lo-vely/nucleus"; + changelog = "https://codeberg.org/lo-vely/nucleus/releases/tag/v${version}"; + license = lib.licenses.gpl3Plus; + mainProgram = "nucleus"; + platforms = lib.platforms.linux; + maintainers = [ lib.maintainers.awwpotato ]; + }; +}