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 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
{
  tgcMaintainers,
  lib,
  fetchFromGitHub,
  stdenv,
  meson,
  cmake,
  ninja,
  scdoc,
  git,
  pkg-config,
  wayland,
  wayland-protocols,
  wayland-scanner,
  libGL,
  mpv,
  fftwFloat,
  ...
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "wlsbg";
  version = "3.3.7";
  rev = "v${finalAttrs.version}";
  srcHash = "sha256-e0eOLsfU4wrz8Ck/iWwSnimTSYICmN/3vKeObmSE6zA=";

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    cmake
    scdoc
    git
  ];

  buildInputs = [
    wayland
    wayland-protocols
    wayland-scanner
    libGL
    mpv
    fftwFloat
  ];

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

  meta = {
    description = "Wallpaper tool with shader support for Wayland compositors";
    homepage = "https://github.com/Sublimeful/wlsbg";
    license = lib.licenses.mit;
    maintainers = [ tgcMaintainers.zaphyra ];
    platforms = lib.platforms.linux;
    mainProgram = "wlsbg";
  };

})