nixos/pkgs/dwmblocks/default.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 = "c4e7a9b1eb98123e239ba76bc551934721fd18ca";
sha256 = "sha256-F1x8jOT+c2pPCF9qKq5boIWzegMBTCxwzKMVtmtMWGM=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
libX11
libXft
];
buildPhase = ''
make
'';
installPhase = ''
mkdir -p $out/bin
mv dwmblocks $out/bin
'';
}