nixos/pkgs/dwmblocks/default.nix

38 lines
663 B
Nix
Raw Normal View History

2024-06-13 17:44:06 +01:00
{ pkgs ? import <nixpkgs> { }
, fetchFromGitea ? pkgs.fetchFromGitea
2024-06-13 23:33:14 +01:00
, pkg-config ? pkgs.pkg-config
, libX11 ? pkgs.xorg.libX11
, libXft ? pkgs.xorg.libXft
2024-06-13 17:44:06 +01:00
}:
pkgs.stdenv.mkDerivation {
pname = "dwmblocks";
name = "dwmblocks";
src = fetchFromGitea {
domain = "git.bitlab21.com";
owner = "sam";
repo = "dwmblocks";
rev = "1a65ae7eb0ae68f979ac86f0862ffa52d88da366";
sha256 = "sha256-PiUCHwm4MpoKGT2b/MgSpffejSqzOXdPlxXKGh0QEU4=";
2024-06-13 17:44:06 +01:00
};
2024-06-13 23:33:14 +01:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libX11
libXft
];
2024-06-13 17:44:06 +01:00
buildPhase = ''
make
'';
installPhase = ''
2024-06-13 23:33:14 +01:00
mkdir -p $out/bin
mv dwmblocks $out/bin
2024-06-13 17:44:06 +01:00
'';
}