Unverified Commit f3a9c3ad authored by Bobby Rong's avatar Bobby Rong Committed by GitHub
Browse files

bulky: 3.9 -> 4.0 (#463340)

parents 78e952e4 0aab329d
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -10,17 +10,18 @@
  gtk3,
  glib,
  common-licenses,
  xapp-symbolic-icons,
}:

stdenv.mkDerivation rec {
  pname = "bulky";
  version = "3.9";
  version = "4.0";

  src = fetchFromGitHub {
    owner = "linuxmint";
    repo = "bulky";
    tag = version;
    hash = "sha256-LrArLx0AOEaeAvLBVhV9ho5H+qeiaBfjs8+iV5W9u+w=";
    hash = "sha256-BHMCtvnz3Ua4pa3Pnh2PbxZ9a0vJOJ+Se2/DaPbUqQA=";
  };

  nativeBuildInputs = [
@@ -45,10 +46,10 @@ stdenv.mkDerivation rec {

  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}"
      --replace-fail "/usr/share/locale" "$out/share/locale" \
      --replace-fail /usr/share/bulky "$out/share/bulky" \
      --replace-fail /usr/share/common-licenses "${common-licenses}/share/common-licenses" \
      --replace-fail __DEB_VERSION__  "${version}"
  '';

  installPhase = ''
@@ -63,6 +64,12 @@ stdenv.mkDerivation rec {
    glib-compile-schemas $out/share/glib-2.0/schemas
  '';

  preFixup = ''
    gappsWrapperArgs+=(
      --prefix XDG_DATA_DIRS : ${lib.makeSearchPath "share" [ xapp-symbolic-icons ]}
    )
  '';

  meta = with lib; {
    description = "Bulk rename app";
    mainProgram = "bulky";