~jamii/focus

22839da3da1851f2a61b07d48edb9d69641498a0 — Jamie Brandon 2 years ago 234f646 master
Pin nixos version
1 files changed, 7 insertions(+), 3 deletions(-)

M shell.nix
M shell.nix => shell.nix +7 -3
@@ 2,7 2,11 @@

let

  nixpkgs = <nixpkgs>;
  nixpkgs = builtins.fetchTarball {
      name = "nixos-21.11";
      url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/21.11.tar.gz";
      sha256 = "162dywda2dvfj1248afxc45kcrg83appjd0nmdb541hl7rnncf02";
  };

  hostPkgs = import nixpkgs {};



@@ 55,7 59,7 @@ hostPkgs.mkShell rec {
    hostPkgs.pkg-config
    targetPkgs.libGL.all
    targetPkgs.xorg.libX11.dev
    targetPkgs.xlibs.xorgproto
    targetPkgs.xorg.xorgproto
    targetPkgs.SDL2.all
    targetPkgs.SDL2_ttf.all
    targetPkgs.pcre2.all


@@ 64,7 68,7 @@ hostPkgs.mkShell rec {
  NIX_GCC=targetPkgs.gcc;
  NIX_LIBGL_DEV=targetPkgs.libGL.dev;
  NIX_LIBX11_DEV=targetPkgs.xorg.libX11.dev;
  NIX_XORGPROTO_DEV=targetPkgs.xlibs.xorgproto;
  NIX_XORGPROTO_DEV=targetPkgs.xorg.xorgproto;
  NIX_SDL2_DEV=targetPkgs.SDL2.dev;
  NIX_SDL2_TTF_DEV=targetPkgs.SDL2_ttf; # no .dev
  # TODO with SDL_VIDEODRIVER=wayland, SDL doesn't seem to respect xkb settings eg caps vs ctrl