biscuit

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

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 runCommand "json" {} ''
     12   mkdir -p $out/share/lua/${lua.luaversion}/
     13   cp ${src}  $out/share/lua/${lua.luaversion}/json.lua
     14 '';