diff options
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -9,25 +9,34 @@ haskellPackages = prev.haskellPackages.override (old: { overrides = prev.lib.composeExtensions (old.overrides or (_: _: { })) (hself: hsuper: { - xmobar = hself.callCabal2nix "xmobar" - (git-ignore-nix.lib.gitignoreSource ./.) { }; + xmobar = prev.haskell.lib.compose.dontCheck (hself.callCabal2nix "xmobar" + (git-ignore-nix.lib.gitignoreSource ./.) { }); }); }); }; overlays = [ overlay ]; in flake-utils.lib.eachDefaultSystem (system: let pkgs = import nixpkgs { inherit system overlays; }; - in rec { - devShell = pkgs.haskellPackages.shellFor { - packages = p: [ p.xmobar ]; - buildInputs = with pkgs; [ + dynamicLibraries = with pkgs; [ xorg.libX11 xorg.libXrandr xorg.libXrender xorg.libXScrnSaver xorg.libXext xorg.libXft + xorg.libXpm.out + xorg.libXrandr + xorg.libXrender ]; + in rec { + devShell = pkgs.haskellPackages.shellFor { + packages = p: [ p.xmobar ]; + buildInputs = with pkgs; [ + haskellPackages.cabal-install + #haskellPackages.haskell-language-server + ] ++ dynamicLibraries; + + LD_LIBRARY_PATH = pkgs.lib.strings.makeLibraryPath dynamicLibraries; }; defaultPackage = pkgs.haskellPackages.xmobar; }) // { |