base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / bu / bulky / package.nix
blobdf9c7bb5d16f2b63a9034b768dae9b31973fbd84
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , wrapGAppsHook3
5 , python3
6 , gobject-introspection
7 , gsettings-desktop-schemas
8 , gettext
9 , gtk3
10 , glib
11 , common-licenses
14 stdenv.mkDerivation rec {
15   pname = "bulky";
16   version = "3.4";
18   src = fetchFromGitHub {
19     owner = "linuxmint";
20     repo = "bulky";
21     rev = version;
22     hash = "sha256-YByzRDL/LuI/VwBHLRZ3+S2VnttYeuMgJpRLPhR/NCA=";
23   };
25   nativeBuildInputs = [
26     wrapGAppsHook3
27     gsettings-desktop-schemas
28     gettext
29     gobject-introspection
30   ];
32   buildInputs = [
33     (python3.withPackages (p: with p; [ pygobject3 magic setproctitle ]))
34     gsettings-desktop-schemas
35     gtk3
36     glib
37   ];
39   postPatch = ''
40     substituteInPlace usr/lib/bulky/bulky.py \
41                      --replace "/usr/share/locale" "$out/share/locale" \
42                      --replace /usr/share/bulky "$out/share/bulky" \
43                      --replace /usr/share/common-licenses "${common-licenses}/share/common-licenses" \
44                      --replace __DEB_VERSION__  "${version}"
45   '';
47   installPhase = ''
48     runHook preInstall
49     chmod +x usr/share/applications/*
50     cp -ra usr $out
51     ln -sf $out/lib/bulky/bulky.py $out/bin/bulky
52     runHook postInstall
53   '';
55   postInstall = ''
56     glib-compile-schemas $out/share/glib-2.0/schemas
57   '';
59   meta = with lib; {
60     description = "Bulk rename app";
61     mainProgram = "bulky";
62     homepage = "https://github.com/linuxmint/bulky";
63     license = licenses.gpl3Plus;
64     platforms = platforms.linux;
65     maintainers = teams.cinnamon.members;
66   };