mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-03 12:10:22 -04:00
migrate from shell to flake
This commit is contained in:
parent
d03bbf24bf
commit
5e60b24dc1
2 changed files with 43 additions and 18 deletions
43
flake.nix
Normal file
43
flake.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
description = "flake for my dwl";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
packages.${system}.default = pkgs.stdenv.mkDerivation rec {
|
||||
pname = "dwl-fabric";
|
||||
version = "0.1";
|
||||
|
||||
# Set the source to your local dwl directory
|
||||
src = ./.;
|
||||
|
||||
# Add the necessary build dependencies for dwl
|
||||
buildInputs = with pkgs; [
|
||||
xwayland
|
||||
libxkbcommon
|
||||
wayland
|
||||
wayland-protocols
|
||||
wlroots
|
||||
xorg.libxcb
|
||||
pkg-config
|
||||
];
|
||||
|
||||
# The build and installation process
|
||||
buildPhase = ''
|
||||
make
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
make install PREFIX=$out
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue