Files
epq-old/flake.nix
T

66 lines
1.2 KiB
Nix

{
description = "KutuWM X11";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems =
f:
nixpkgs.lib.genAttrs systems (
system:
f (
import nixpkgs {
inherit system;
}
)
);
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
clang-tools
clang
gnumake
ruby
xxd
haskellPackages.ghc
haskellPackages.cabal-install
haskellPackages.haskell-language-server
pkg-config
libxcb
xcbutilwm
];
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.libxcb
pkgs.xcbutilwm
];
shellHook = ''
export CC=clang
export CXX=clang++
export LD=clang
cabal --version
ghc --version
'';
};
});
};
}