diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -16,6 +16,15 @@ system: let pkgs = nixpkgs.legacyPackages.${system}; + libPath = pkgs.lib.makeLibraryPath ( + with pkgs; + [ + wayland + libxkbcommon + vulkan-loader + libGL + ] + ); in { packages.default = pkgs.rustPlatform.buildRustPackage { @@ -23,13 +32,21 @@ version = "0.1.0"; src = ./.; cargoLock.lockFile = ./Cargo.lock; - nativeBuildInputs = with pkgs; [ pkg-config ]; + nativeBuildInputs = with pkgs; [ + pkg-config + makeWrapper + ]; buildInputs = with pkgs; [ wayland libxkbcommon vulkan-loader wayland-protocols + libGL ]; + postInstall = '' + wrapProgram $out/bin/hyprland-live-wallpaper + --prefix LD_LIBRARY_PATH : "${libPath}" + ''; }; devShells.default = pkgs.mkShell { @@ -43,7 +60,9 @@ libxkbcommon vulkan-loader wayland-protocols + libGL ]; + LD_LIBRARY_PATH = libPath; }; } ) |
