oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git

retreive the dependency from the derivation

Commit
d4ac9b516725cb289494a5c02bbbc638dec5e5bd
Parent
5e36ac3
Author
Sigmanificient <edhyjox@gmail.com>
Date
2025-12-14 19:07:03

Diff

diff --git a/flake.nix b/flake.nix
index f5a8c28..1e9115a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -21,23 +21,18 @@
 
     devShells = forAllSystems (pkgs: {
       default = pkgs.mkShell {
-        buildInputs = [
+        inputsFrom = [self.packages.${pkgs.stdenv.hostPlatform.system}.oxwm];
+        packages = [
           pkgs.rustc
           pkgs.cargo
           pkgs.alacritty
           pkgs.just
           pkgs.xorg.xorgserver
-          pkgs.xorg.libX11
-          pkgs.xorg.libXft
-          pkgs.xorg.libXrender
-          pkgs.freetype
-          pkgs.fontconfig
-          pkgs.pkg-config
         ];
         shellHook = ''
           export PS1="(oxwm-dev) $PS1"
         '';
-        RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
+        env.RUST_SRC_PATH = "${pkgs.rustPlatform.rustLibSrc}";
       };
     });