meta: Replace go-thumbnailer with nixpkgs version

Now there is no need for a packages directory since all the packages I
maintain are upstreamed.
This commit is contained in:
Donovan Glover 2023-06-20 09:53:00 -04:00
parent 185f6f605e
commit b310bb6e6d
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
6 changed files with 20 additions and 44 deletions

View File

@ -1,3 +0,0 @@
[Thumbnailer Entry]
Exec=@out@/bin/go-thumbnailer %s %i %o
MimeType=inode/directory

View File

@ -147,6 +147,22 @@
"type": "github"
}
},
"nixpkgs-go-thumbnailer": {
"locked": {
"lastModified": 1687268527,
"narHash": "sha256-ueJuEep01cQHUy9rQRVWDTkfuHU+yUQ5w2Bb69yeCrI=",
"owner": "donovanglover",
"repo": "nixpkgs",
"rev": "72fc3e9404fe2e3c0360619955dbe626974f445e",
"type": "github"
},
"original": {
"owner": "donovanglover",
"ref": "go-thumbnailer",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-hyprland-autoname-workspaces": {
"locked": {
"lastModified": 1687166409,
@ -220,6 +236,7 @@
"nix-gaming": "nix-gaming",
"nixpkgs": "nixpkgs_2",
"nixpkgs-crystalline": "nixpkgs-crystalline",
"nixpkgs-go-thumbnailer": "nixpkgs-go-thumbnailer",
"nixpkgs-hyprland-autoname-workspaces": "nixpkgs-hyprland-autoname-workspaces",
"nixpkgs-srb2": "nixpkgs-srb2",
"stylix": "stylix"

View File

@ -18,6 +18,7 @@
nixpkgs-hyprland-autoname-workspaces.url = "github:donovanglover/nixpkgs/hyprland-autoname-workspaces";
nixpkgs-srb2.url = "github:donovanglover/nixpkgs/srb2";
nixpkgs-crystalline.url = "github:donovanglover/nixpkgs/crystalline";
nixpkgs-go-thumbnailer.url = "github:donovanglover/nixpkgs/go-thumbnailer";
home-manager = {
url = "github:nix-community/home-manager/master";

View File

@ -6,7 +6,6 @@
environment.systemPackages = with pkgs; [
xfce.exo # Open with kitty support
glib
(pkgs.callPackage ../packages/go-thumbnailer.nix { })
];
services.gvfs.enable = true; # Trash support

View File

@ -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
];
vendorSha256 = "sha256-4zgsoExdhEqvycGerNVxZ6LnjeRRO+f6DhJdINR5ZyI=";
postInstall = ''
mkdir -p $out/share/thumbnailers
substituteAll ${../assets/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 ];
};
}

View File

@ -5,6 +5,7 @@
, nixpkgs-hyprland-autoname-workspaces
, nixpkgs-srb2
, nixpkgs-crystalline
, nixpkgs-go-thumbnailer
, ...
}:
@ -108,6 +109,7 @@ let VARIABLES = import ./variables.nix; in {
nixpkgs-hyprland-autoname-workspaces.legacyPackages.${VARIABLES.system}.hyprland-autoname-workspaces
nixpkgs-srb2.legacyPackages.${VARIABLES.system}.srb2
nixpkgs-crystalline.legacyPackages.${VARIABLES.system}.crystalline
nixpkgs-go-thumbnailer.legacyPackages.${VARIABLES.system}.go-thumbnailer
];
nixpkgs.config.allowUnfreePredicate = pkg: