mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 08:46:11 +01:00
custom dwm
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -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
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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