Unverified Commit 62adb5fc authored by Emily's avatar Emily Committed by GitHub
Browse files

Merge pull request #249224 from donovanglover/thud

thud: rename from go-thumbnailer, 0.1.0 -> 0.3.0
parents 1133b4d6 cc166be6
Loading
Loading
Loading
Loading
+0 −40
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, vips
}:

buildGoModule rec {
  pname = "go-thumbnailer";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "donovanglover";
    repo = pname;
    rev = version;
    sha256 = "sha256-sgd5kNnDXcSesGT+OignZ+APjNSxSP0Z60dr8cWO6sU=";
  };

  buildInputs = [
    vips
  ];

  nativeBuildInputs = [
    pkg-config
  ];

  vendorHash = "sha256-4zgsoExdhEqvycGerNVxZ6LnjeRRO+f6DhJdINR5ZyI=";

  postInstall = ''
    mkdir -p $out/share/thumbnailers
    substituteAll ${./go.thumbnailer} $out/share/thumbnailers/go.thumbnailer
  '';

  meta = with lib; {
    description = "A cover thumbnailer written in Go for performance and reliability";
    homepage = "https://github.com/donovanglover/go-thumbnailer";
    license = licenses.mit;
    maintainers = with maintainers; [ donovanglover ];
  };
}
+0 −3
Original line number Diff line number Diff line
[Thumbnailer Entry]
Exec=@out@/bin/go-thumbnailer %s %i %o
MimeType=inode/directory
+43 −0
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
}:

rustPlatform.buildRustPackage rec {
  pname = "thud";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "donovanglover";
    repo = "thud";
    rev = version;
    hash = "sha256-3MxmVKs0huXPnL9mqDniaIarkAvJmwSOMii2ntXtOos=";
  };

  cargoHash = "sha256-Hk3HlcA253FAA9hw5p9W+Mvec84zLo7bEmM2/BbmjiM=";

  nativeBuildInputs = [
    installShellFiles
  ];

  postInstall = ''
    install -Dm644 assets/thud.thumbnailer $out/share/thumbnailers/thud.thumbnailer
    substituteInPlace $out/share/thumbnailers/thud.thumbnailer --replace "thud" "$out/bin/thud"

    installManPage man/thud.1

    installShellCompletion --cmd thud \
      --bash <(cat completions/thud.bash) \
      --fish <(cat completions/thud.fish) \
      --zsh <(cat completions/_thud)
  '';

  meta = with lib; {
    description = "Generate directory thumbnails for GTK-based file browsers from images inside them";
    homepage = "https://github.com/donovanglover/thud";
    license = licenses.mit;
    maintainers = with maintainers; [ donovanglover ];
    mainProgram = "thud";
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -682,6 +682,7 @@ mapAliases ({
  go-mk = throw "go-mk has been dropped due to the lack of maintenance from upstream since 2015"; # Added 2022-06-02
  go-pup = throw "'go-pup' has been renamed to/replaced by 'pup'"; # Converted to throw 2022-02-22
  go-repo-root = throw "go-repo-root has been dropped due to the lack of maintenance from upstream since 2014"; # Added 2022-06-02
  go-thumbnailer = thud; # Added 2023-09-21
  gometer = throw "gometer has been removed from nixpkgs because goLance stopped offering Linux support"; # Added 2023-02-10
  gpgstats = throw "gpgstats has been removed: upstream is gone"; # Added 2022-02-06
  gpshell = throw "gpshell has been removed, because it was unmaintained in nixpkgs"; # added 2021-12-17
+0 −2
Original line number Diff line number Diff line
@@ -5501,8 +5501,6 @@ with pkgs;
  go-neb = callPackage ../applications/networking/instant-messengers/go-neb { };
  go-thumbnailer = callPackage ../applications/misc/go-thumbnailer { };
  google-cursor = callPackage ../data/icons/google-cursor { };
  geckodriver = callPackage ../development/tools/geckodriver {