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 
49 
{
  tgcMaintainers,
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  gtk4,
  gtk4-layer-shell,
  cairo,
  pango,
  gdk-pixbuf,
  ...
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "anyrun";
  version = "25.9.0";
  rev = "v${finalAttrs.version}";
  srcHash = "sha256-01XBO8U2PyhhYXo3oZAu7dghqXkxdemeG82MqnNp4wE=";
  cargoHash = "sha256-Xh+RWrAxa1cg0z6IGr7apzoAIlhDl8ZMpQTfoBAZXRk=";

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

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    gtk4
    gtk4-layer-shell
    cairo
    pango
    gdk-pixbuf
  ];

  meta = {
    description = "A wayland native, highly customizable runner.";
    homepage = "https://github.com/anyrun-org/anyrun";
    mainProgram = "anyrun";
    license = [ lib.licenses.gpl3 ];
    platforms = lib.platforms.linux;
    maintainers = [ tgcMaintainers.zaphyra ];
  };
})