38 lines
663 B
Nix
38 lines
663 B
Nix
{ pkgs ? import <nixpkgs> { }
|
|
, fetchFromGitea ? pkgs.fetchFromGitea
|
|
, pkg-config ? pkgs.pkg-config
|
|
, libX11 ? pkgs.xorg.libX11
|
|
, libXft ? pkgs.xorg.libXft
|
|
}:
|
|
pkgs.stdenv.mkDerivation {
|
|
pname = "dwmblocks";
|
|
name = "dwmblocks";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "git.bitlab21.com";
|
|
owner = "sam";
|
|
repo = "dwmblocks";
|
|
rev = "1a65ae7eb0ae68f979ac86f0862ffa52d88da366";
|
|
sha256 = "sha256-PiUCHwm4MpoKGT2b/MgSpffejSqzOXdPlxXKGh0QEU4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
libX11
|
|
libXft
|
|
];
|
|
|
|
buildPhase = ''
|
|
make
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
mv dwmblocks $out/bin
|
|
'';
|
|
|
|
}
|