diff options
| author | mtgmonkey <mtgmonkey@nixos> | 2025-12-10 21:12:56 +0100 |
|---|---|---|
| committer | mtgmonkey <mtgmonkey@nixos> | 2025-12-10 21:12:56 +0100 |
| commit | ab69702910741af752ff7ee5820bb85b1f3ddd5c (patch) | |
| tree | 3f6d9b7321f859ba30095000ea2c5f74e2be8ff4 /flake.nix | |
| parent | 5e2d2b89c855cc0713d6f64788eaca530f21fc81 (diff) | |
add library as git submodule, wayland, window shows
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1,6 +1,7 @@ { inputs = { nixpkgs.url = "nixpkgs/nixpkgs-unstable"; + self.submodules = true; }; outputs = {nixpkgs, ...}: let system = "x86_64-linux"; @@ -47,10 +48,6 @@ ghcPackages = p: [ ]; buildDeps = [ - pkgs.pkg-config - pkgs.wayland-protocols - pkgs.wayland-scanner - pkgs.egl-wayland pkgs.libGL pkgs.libxkbcommon @@ -60,6 +57,12 @@ pkgs.xorg.libXi pkgs.xorg.libXrandr ]; + runtimeDeps = [ + pkgs.makeWrapper + pkgs.pkg-config + pkgs.wayland-protocols + pkgs.wayland-scanner + ]; in { packages.${system} = { debug = pkgs.callPackage ./package.nix { @@ -67,24 +70,28 @@ haddockOptions = noHaddockOptions; inherit ghcPackages; inherit buildDeps; + inherit runtimeDeps; }; release = pkgs.callPackage ./package.nix { ghcOptions = releaseGhcOptions; haddockOptions = noHaddockOptions; inherit ghcPackages; inherit buildDeps; + inherit runtimeDeps; }; docs = pkgs.callPackage ./package.nix { ghcOptions = "--version"; inherit haddockOptions; inherit ghcPackages; inherit buildDeps; + inherit runtimeDeps; }; default = pkgs.callPackage ./package.nix { ghcOptions = releaseGhcOptions; inherit haddockOptions; inherit ghcPackages; inherit buildDeps; + inherit runtimeDeps; }; }; }; |
