Skip to content

Instantly share code, notes, and snippets.

@corpix
Created April 24, 2022 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corpix/3e3883399110eb5cb164ba7af229397b to your computer and use it in GitHub Desktop.
Save corpix/3e3883399110eb5cb164ba7af229397b to your computer and use it in GitHub Desktop.
Luastatic nix derivation
{ lua, luaPackages, fetchurl, fetchgit }:
luaPackages.buildLuarocksPackage rec {
pname = "luastatic";
version = "0.0.12";
knownRockspec = (fetchurl {
url = "https://luarocks.org/manifests/ers35/luastatic-${version}-1.rockspec";
sha256 = "sha256-jNxq4gyO+7kN7+Vpvq1iGFrIQ15x+HAkcqa3VqIhUVU=";
}).outPath;
src = fetchgit {
url = "https://github.com/ers35/luastatic";
rev = version;
sha256 = "sha256-MluOLOGedZHPEXqqiTFeG6Uhv1DL/mKr1HUjzNqTOzs=";
};
propagatebBuildInputs = [lua];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment