zaphyra's git: nixfiles

zaphyra's nixfiles

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 
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  pkg-config,
  gtk4,
  gtk4-layer-shell,
  gobject-introspection,
  ...
}:

buildGoModule (finalAttrs: {
  pname = "nirilayout";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "calico32";
    repo = finalAttrs.pname;
    hash = "sha256-rlW8n+1gVPFBgv5UbVS43bI0NBVHfOPjJ6R0kMytrcQ=";
    rev = "v${finalAttrs.version}";
  };

  vendorHash = "sha256-o6/ZH70j3e4kU/ZxP41/88kXakrWAu6QdHtOY+EceCs=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    gtk4
    gtk4-layer-shell
    gobject-introspection
  ];

  meta = with lib; {
    maintainers = with lib.maintainers; [ zaphyra ];
    license = licenses.mit;
    homepage = "https://github.com/calico32/nirilayout";
    changelog = "https://github.com/calico32/nirilayout/releases/tag/v${finalAttrs.version}";
    description = "niri monitor layout switcher";
    longDescription = ''
      nirilayout is a simple tool to quickly switch your niri output configuration
      between different layouts. Especially useful for laptop users who move between
      different setups frequently.
    '';
  };

})