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 = "c4e7a9b1eb98123e239ba76bc551934721fd18ca";
2024-06-13 23:33:14 +01:00
sha256 = "sha256-F1x8jOT+c2pPCF9qKq5boIWzegMBTCxwzKMVtmtMWGM=";
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
'';
}