mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 05:36:11 +01:00
custom dwm
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# Custom packages, that can be defined similarly to ones from nixpkgs
|
||||
# You can build them using 'nix build .#example'
|
||||
pkgs: {
|
||||
{
|
||||
pkgs ? import <nixpkgs> {}}: rec {
|
||||
# example = pkgs.callPackage ./example { };
|
||||
dwm-customized = pkgs.callPackage ./dwm-customized {};
|
||||
}
|
||||
|
||||
27
pkgs/dwm-customized/default.nix
Normal file
27
pkgs/dwm-customized/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
stdenv,
|
||||
pkgs,
|
||||
libX11,
|
||||
libXinerama,
|
||||
libXft,
|
||||
...
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "dwm-customized";
|
||||
version = "6.4";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "eRgo35";
|
||||
repo = "dwm";
|
||||
rev = "main";
|
||||
sha256 = "sha256-KA/g84/QgbihwRT8VuFVr8EXe0L15kFvNW82PRBASa0=";
|
||||
};
|
||||
|
||||
# unpackPhase = ''tar -xf $src'';
|
||||
|
||||
buildInputs = [ libX11 libXinerama libXft ];
|
||||
|
||||
buildPhase = ''make'';
|
||||
|
||||
installPhase = ''make PREFIX=$out DESTDIR="" install'';
|
||||
}
|
||||
Reference in New Issue
Block a user