Unverified Commit 4635cfca authored by Fernando Rodrigues's avatar Fernando Rodrigues Committed by GitHub
Browse files

nucleus: init at 1 (#430432)

parents 368310a6 eaa197d9
Loading
Loading
Loading
Loading
+65 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}