Files
nixpkgs/pkgs/by-name/bu/bulky/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

75 lines
1.6 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
wrapGAppsHook3,
python3,
gobject-introspection,
gsettings-desktop-schemas,
gettext,
gtk3,
glib,
common-licenses,
}:
stdenv.mkDerivation rec {
pname = "bulky";
version = "3.9";
src = fetchFromGitHub {
owner = "linuxmint";
repo = "bulky";
tag = version;
hash = "sha256-LrArLx0AOEaeAvLBVhV9ho5H+qeiaBfjs8+iV5W9u+w=";
};
nativeBuildInputs = [
wrapGAppsHook3
gsettings-desktop-schemas
gettext
gobject-introspection
];
buildInputs = [
(python3.withPackages (
p: with p; [
pygobject3
setproctitle
unidecode
]
))
gsettings-desktop-schemas
gtk3
glib
];
postPatch = ''
substituteInPlace usr/lib/bulky/bulky.py \
--replace "/usr/share/locale" "$out/share/locale" \
--replace /usr/share/bulky "$out/share/bulky" \
--replace /usr/share/common-licenses "${common-licenses}/share/common-licenses" \
--replace __DEB_VERSION__ "${version}"
'';
installPhase = ''
runHook preInstall
chmod +x usr/share/applications/*
cp -ra usr $out
ln -sf $out/lib/bulky/bulky.py $out/bin/bulky
runHook postInstall
'';
postInstall = ''
glib-compile-schemas $out/share/glib-2.0/schemas
'';
meta = with lib; {
description = "Bulk rename app";
mainProgram = "bulky";
homepage = "https://github.com/linuxmint/bulky";
license = licenses.gpl3Plus;
platforms = platforms.linux;
teams = [ teams.cinnamon ];
};
}