summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/sb/sbs/package.nix
blob: c4ff6ba1ab6b1af3f10bd0e736d88cae6ee2c137 (plain)
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
{
  lib,
  stdenv,
  fetchFromGitHub,
  libx11,
  imlib2,
  libxinerama,
  pkg-config,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "sbs";
  version = "1.0.0";

  src = fetchFromGitHub {
    owner = "onur-ozkan";
    repo = "sbs";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-Zgu9W/3LwHF/fyaPlxmV/2LdxilO1tU0JY/esLnJVGY=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    imlib2
    libx11
    libxinerama
  ];

  makeFlags = [ "PREFIX=$(out)" ];

  meta = {
    description = "Simple background setter with 200 lines of code";
    homepage = "https://github.com/onur-ozkan/sbs";
    license = lib.licenses.gpl2Only;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ onur-ozkan ];
    mainProgram = "sbs";
  };
})