2021-06-28 23:13:55 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapGAppsHook
|
|
|
|
, python3
|
2022-08-12 12:06:08 +00:00
|
|
|
, gobject-introspection
|
2021-06-28 23:13:55 +00:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gettext
|
|
|
|
, gtk3
|
|
|
|
, glib
|
|
|
|
, common-licenses
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bulky";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "3.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "bulky";
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-akEweZpnfNeLuiUK1peI83uYsjVrFeQ0Is/+bpdNwdU=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gettext
|
2023-08-10 07:59:29 +00:00
|
|
|
gobject-introspection
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
(python3.withPackages (p: with p; [ pygobject3 magic setproctitle ]))
|
2021-06-28 23:13:55 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postInstall = ''
|
|
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Bulk rename app";
|
|
|
|
homepage = "https://github.com/linuxmint/bulky";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|