about summary refs log tree commit diff
path: root/pkgs/tools/audio/catnip-gtk4/default.nix
blob: 5d0f9182ce243a82f100704882b7e1e169c51bb5 (plain) (blame)
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
{ lib
, buildGoModule
, fetchFromGitHub
, pkg-config
, wrapGAppsHook4
, gobject-introspection
, gtk4
, libadwaita
}:

buildGoModule {
  pname = "catnip-gtk4";
  version = "unstable-2023-06-17";

  src = fetchFromGitHub {
    owner = "diamondburned";
    repo = "catnip-gtk4";
    rev = "e635904af952fcee7e9f4b1a3e45ce8519428d9f";
    hash = "sha256-yJNw/pDgvIzcX4H6RoFJBiRwzWQXWF3obUPxYf4ALOY=";
  };

  vendorHash = "sha256-gcr3e5Fm2xCTOoTgl71Dv3rxI6gQbqRz0M1NO7fAZk0=";

  nativeBuildInputs = [
    gobject-introspection
    pkg-config
    wrapGAppsHook4
  ];

  buildInputs = [
    gtk4
    libadwaita
  ];

  ldflags = [ "-s" "-w" ];

  enableParallelBuilding = true;

  meta = with lib; {
    description = "GTK4 frontend for catnip";
    homepage = "https://github.com/diamondburned/catnip-gtk4";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ figsoda ];
    mainProgram = "catnip-gtk4";
  };
}