253af9151f
- luarocks-nix: bumped to pass args too, `package_X = callPackage ...`. It allows to remove the annoying `with self`. This new version disables tests (because broken) and now emits derivation with a callPackage in front. - replaced X.override with lib.overrideLuarocks, it should be used whenever buildInputs/extraVariables is changed since it impacts the generated luarocks config. Once structured attributes are in, it will be easier to have the luarocks config generated by a hook and we probably will be able to replace all overrideLuarocks by overrideAttrs.
15 lines
345 B
Nix
15 lines
345 B
Nix
{ luarocks, fetchFromGitHub }:
|
|
luarocks.overrideAttrs(old: {
|
|
pname = "luarocks-nix";
|
|
version = "2021-01-22";
|
|
src = fetchFromGitHub {
|
|
owner = "nix-community";
|
|
repo = "luarocks-nix";
|
|
rev = "standalone";
|
|
sha256 = "sha256-53Zi+GTayO9EQTCIVrzPeRRHeIkHLqy0mHyBDzbcQQk=";
|
|
};
|
|
patches = [];
|
|
|
|
meta.mainProgram = "luarocks";
|
|
})
|