thud: rename from go-thumbnailer, 0.1.0 -> 0.3.0
This commit is contained in:
parent
ad3239f992
commit
cc166be63f
@ -1,40 +0,0 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
[Thumbnailer Entry]
|
||||
Exec=@out@/bin/go-thumbnailer %s %i %o
|
||||
MimeType=inode/directory
|
43
pkgs/by-name/th/thud/package.nix
Normal file
43
pkgs/by-name/th/thud/package.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
@ -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
|
||||
|
@ -5503,8 +5503,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user