zaphyra's git: tgcNUR

fork of https://git.transgirl.cafe/zaphoid/tgc-nix-user-repository

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
{
  tgcMaintainers,
  lib,
  unstable,
  fetchFromGitHub,
  pkg-config,
  glib,
  atkmm,
  gdk-pixbuf,
  cairo,
  gtk3,
  ...
}:

unstable.rustPlatform.buildRustPackage (finalAttrs: {
  pname = "niri-taskbar";
  version = "0.4.0+niri.25.11";
  rev = "v${finalAttrs.version}";
  srcHash = "sha256-aE5v94AA6bC0CP8pv/SPBxGKpkH+GxR/p7hTKXlvk3E=s";
  cargoHash = "sha256-WRc1+ZVhiIfmLHaczAPq21XudI08CgVhlIhVcf0rmSw=";

  src = fetchFromGitHub {
    owner = "LawnGnome";
    repo = finalAttrs.pname;
    hash = finalAttrs.srcHash;
    inherit (finalAttrs) rev;
  };

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    glib
    atkmm
    gdk-pixbuf
    cairo
    gtk3
  ];

  meta = {
    description = "Niri taskbar module for Waybar";
    homepage = "https://github.com/LawnGnome/niri-taskbar";
    license = [ lib.licenses.mit ];
    platforms = lib.platforms.linux;
    maintainers = [ tgcMaintainers.zaphyra ];
  };
})