Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pixman,
6 fcft,
7 pkg-config,
8 wayland-protocols,
9 wayland-scanner,
10 wayland,
11}:
12
13stdenv.mkDerivation (finalAttrs: {
14 pname = "sandbar";
15 version = "0.1";
16
17 src = fetchFromGitHub {
18 owner = "kolunmi";
19 repo = "sandbar";
20 rev = "v${finalAttrs.version}";
21 hash = "sha256-uG+/e75s/OQtEotR+8aXTEjW6p3oJM8btuRNgUVmIiQ=";
22 };
23
24 strictDeps = true;
25
26 nativeBuildInputs = [ pkg-config ];
27
28 buildInputs = [
29 wayland-scanner
30 wayland-protocols
31 wayland
32 pixman
33 fcft
34 ];
35
36 makeFlags = [ "PREFIX=$(out)" ];
37
38 meta = with lib; {
39 homepage = "https://github.com/kolunmi/sandbar";
40 description = "DWM-like bar for the river wayland compositor";
41 license = licenses.gpl3Plus;
42 maintainers = with maintainers; [ fccapria ];
43 platforms = platforms.all;
44 badPlatforms = platforms.darwin;
45 mainProgram = "sandbar";
46 };
47})