custom dwm

This commit is contained in:
2024-04-22 10:37:18 +02:00
parent 5d6abd228e
commit 9fada7f2c5
7 changed files with 35 additions and 22 deletions

3
.gitmodules vendored
View File

@@ -1,3 +0,0 @@
[submodule "home-manager/features/desktop/dwm/dwm"]
path = home-manager/features/desktop/dwm/dwm
url = git@github.com:eRgo35/dwm.git

View File

@@ -62,7 +62,7 @@
in {
# Your custom packages
# Accessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
# packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
# Formatter for your nix files, available through 'nix fmt'
# Other options beside 'alejandra' include 'nixpkgs-fmt'
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);

View File

@@ -25,14 +25,7 @@
windowManager = {
dwm = {
enable = true;
package = pkgs.dwm.overrideAttrs {
src = pkgs.fetchFromGitHub {
owner = "eRgo35";
repo = "dwm";
rev = "a1725eb3c64d27864972a976c8ee18d63a8d9dad";
sha256 = "sha256-sY6qFqfkfGtLmi+7mownx3bolM2mVNdhS9VUO6KimKk=";
};
};
package = pkgs.dwm-customized;
};
};

View File

@@ -34,14 +34,7 @@
windowManager = {
dwm = {
enable = true;
package = pkgs.dwm.overrideAttrs {
src = pkgs.fetchFromGitHub {
owner = "eRgo35";
repo = "dwm";
rev = "a1725eb3c64d27864972a976c8ee18d63a8d9dad";
sha256 = "sha256-sY6qFqfkfGtLmi+7mownx3bolM2mVNdhS9VUO6KimKk=";
};
};
package = pkgs.dwm-customized;
};
};

View File

@@ -1,7 +1,8 @@
# This file defines overlays
{inputs, ...}: {
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ../pkgs {pkgs = final;};
additions = final: _prev:
import ../pkgs {pkgs = final;};
# This one contains whatever you want to overlay
# You can change versions, add patches, set compilation flags, anything really.

View File

@@ -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 {};
}

View 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'';
}