cripslock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

shell.nix (351B)


      1 with import <nixpkgs> {};
      2 let
      3   package = pkgs.callPackage ./. {};
      4 in
      5 package.overrideAttrs(o: {
      6   nativeBuildInputs = [ entr ] ++ o.nativeBuildInputs;
      7   shellHook = ''
      8     export CRIPSLOCK_DIR=`pwd`
      9     export LUA_PATH="$out/share/?.lua;$(lua -e 'print(package.path)')"
     10     export LUA_CPATH="$out/lib/?.lua;$(lua -e 'print(package.cpath)')"
     11   '';
     12 })