summaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix52
1 files changed, 25 insertions, 27 deletions
diff --git a/flake.nix b/flake.nix
index 2ce2adf..21de19f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -5,34 +5,32 @@
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
- outputs =
- { self, nixpkgs }:
- let
- system = "x86_64-linux";
- pkgs = import nixpkgs { inherit system; };
+ outputs = {
+ self,
+ nixpkgs,
+ }: let
+ system = "x86_64-linux";
+ pkgs = import nixpkgs {inherit system;};
+ in {
+ packages.${system}.default = pkgs.stdenv.mkDerivation {
+ pname = "dwm";
+ version = "6.8";
+ src = ./.;
- in
- {
- packages.${system}.default = pkgs.stdenv.mkDerivation {
- pname = "dwm";
- version = "6.8";
- src = ./.;
+ nativeBuildInputs = [pkgs.pkg-config];
+ buildInputs = with pkgs; [
+ libX11
+ libxinerama
+ libxft
+ libxcb
+ libxres
+ fira-code
+ ];
- nativeBuildInputs = [ pkgs.pkg-config ];
- buildInputs = with pkgs; [
- libX11
- libxinerama
- libxft
- libxcb
- libxres
-
- ];
-
- makeFlags = [
- "PREFIX=$(out)"
- "CC:=$(CC)"
- ];
-
- };
+ makeFlags = [
+ "PREFIX=$(out)"
+ "CC:=$(CC)"
+ ];
};
+ };
}