Files
nixpkgs/pkgs/by-name/re/rewaita/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

80 lines
1.4 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
ninja,
meson,
pkg-config,
wrapGAppsHook4,
glib,
gtk4,
desktop-file-utils,
appstream-glib,
blueprint-compiler,
libadwaita,
libportal,
nix-update-script,
}:
let
version = "1.0.8";
in
python3Packages.buildPythonApplication {
pname = "rewaita";
inherit version;
pyproject = false;
src = fetchFromGitHub {
owner = "SwordPuffin";
repo = "Rewaita";
tag = "v${version}";
hash = "sha256-T1MrSg3DO6U/ztX4LYB1Uhpne+7xAfr8+INV5CyS0eE=";
};
postPatch = ''
substituteInPlace src/window.py \
--replace-fail 'shutil.copy(' 'shutil.copyfile('
'';
strictDeps = true;
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
glib
gtk4
desktop-file-utils
appstream-glib
blueprint-compiler
];
dependencies = with python3Packages; [
pygobject3
];
buildInputs = [
libadwaita
gtk4
libportal
];
dontWrapGApps = true;
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Bring color to Adwaita";
homepage = "https://github.com/SwordPuffin/Rewaita";
changelog = "https://github.com/SwordPuffin/Rewaita/releases/tag/v${version}";
license = lib.licenses.gpl3Plus;
mainProgram = "rewaita";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
awwpotato
getchoo
];
};
}