nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 libX11,
7 libXinerama,
8 imlib2,
9}:
10
11stdenv.mkDerivation rec {
12
13 pname = "bgs";
14 version = "0.8";
15
16 src = fetchFromGitHub {
17 owner = "Gottox";
18 repo = "bgs";
19 rev = "v${version}";
20 sha256 = "V8GP+xLSiCvaYZt8Bi3/3KlTBaGnMYQUeNCHwH6Ejzo=";
21 };
22
23 nativeBuildInputs = [ pkg-config ];
24
25 buildInputs = [
26 libX11
27 libXinerama
28 imlib2
29 ];
30
31 preConfigure = ''sed -i "s@PREFIX = /usr/local@PREFIX = $out@g" config.mk'';
32
33 meta = with lib; {
34 description = "Extremely fast and small background setter for X";
35 license = licenses.mit;
36 platforms = platforms.linux;
37 maintainers = with maintainers; [ pSub ];
38 mainProgram = "bgs";
39 };
40}