Skip to content

Instantly share code, notes, and snippets.

@asifZaman0362
Created February 15, 2023 19:40
Show Gist options
  • Select an option

  • Save asifZaman0362/f2ed7122576925137fba41945a7ca723 to your computer and use it in GitHub Desktop.

Select an option

Save asifZaman0362/f2ed7122576925137fba41945a7ca723 to your computer and use it in GitHub Desktop.
Custom source for some of the packages in the main configuration
{ pkgs ? import <nixpkgs> {} }:
let
dwm = pkgs.fetchFromGitHub {
owner = "asifZaman0362";
repo = "dwm";
rev = "master";
};
in
{
dwm = dwm.override {
buildInputs = [ pkgs.xorg.libX11 ];
configureScript = ''
sed -i 's/^CFLAGS = -g -Wall/CFLAGS = -g -Wall -I\/usr\/include\/X11\//' config.mk
'';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment