Files
nixpkgs/pkgs/by-name/re/refine/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

87 lines
1.8 KiB
Nix

{
lib,
fetchFromGitLab,
nix-update-script,
blueprint-compiler,
desktop-file-utils,
libadwaita,
meson,
ninja,
pkg-config,
wrapGAppsHook4,
python3,
libxml2,
python3Packages,
libportal,
libportal-gtk4,
appstream,
gtk4,
glib,
}:
python3Packages.buildPythonApplication rec {
pname = "refine";
version = "0.5.10";
pyproject = false; # uses meson
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "TheEvilSkeleton";
repo = "Refine";
tag = version;
hash = "sha256-/CyenSdF0dZR6HLw9FTv+OhJfNg55/dGE9y1A1hbcPA=";
};
nativeBuildInputs = [
appstream
blueprint-compiler
glib # For `glib-compile-schemas`
gtk4 # For `gtk-update-icon-cache`
meson
ninja
pkg-config
wrapGAppsHook4
python3
desktop-file-utils
];
buildInputs = [
libxml2
libadwaita
];
dependencies = [
libportal
libportal-gtk4
]
++ (with python3Packages; [
pygobject3
]);
strictDeps = true;
mesonFlags = [ (lib.mesonBool "network_tests" false) ];
dontWrapGApps = true;
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
# NOTE: `postCheck` is intentionally not used here, as the entire checkPhase
# is skipped by `buildPythonApplication`
# https://github.com/NixOS/nixpkgs/blob/9d4343b7b27a3e6f08fc22ead568233ff24bbbde/pkgs/development/interpreters/python/mk-python-derivation.nix#L296
postInstallCheck = ''
mesonCheckPhase
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Tweak various aspects of GNOME";
homepage = "https://gitlab.gnome.org/TheEvilSkeleton/Refine";
mainProgram = "refine";
platforms = lib.platforms.linux;
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ getchoo ];
};
}