liminix

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

default.nix (373B)


      1 {
      2   fetchurl,
      3   runCommand,
      4   lua,
      5 }:
      6 let
      7   src = fetchurl {
      8     url = "https://raw.githubusercontent.com/rxi/json.lua/11077824d7cfcd28a4b2f152518036b295e7e4ce/json.lua";
      9     hash = "sha256-DqzNpX+rwDMHNt4l9Fz1iYIaQrXg/gLk4xJffcC/K34=";
     10   };
     11 in
     12 runCommand "json" { } ''
     13   mkdir -p $out/share/lua/${lua.luaversion}/
     14   cp ${src}  $out/share/lua/${lua.luaversion}/json.lua
     15 ''