aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix21
1 files changed, 20 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 9f01226..caa775f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -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;
};
}
)