depot/third_party/nixpkgs/pkgs/development/tools/misc/luarocks/luarocks-nix.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

38 lines
855 B
Nix

{ luarocks_bootstrap
, fetchFromGitHub
, unstableGitUpdater
, nurl
, file
}:
luarocks_bootstrap.overrideAttrs (old: {
pname = "luarocks-nix";
version = "0-unstable-2024-04-29";
src = fetchFromGitHub {
owner = "nix-community";
repo = "luarocks-nix";
rev = "a473a8f479711682f5b97a72362736d96efd463b";
hash = "sha256-hsjv+jlLsoIDM4gB/0mFeoVu1YZ1I9ELDALLTEnlCF0=";
};
propagatedBuildInputs = old.propagatedBuildInputs ++ [
file
nurl
];
patches = [ ];
passthru = {
updateScript = unstableGitUpdater {
# tags incompletely inherited from regular luarocks
hardcodeZeroVersion = true;
};
};
# old.meta // { /* ... */ } doesn't update meta.position, which breaks the updateScript
meta = {
inherit (old.meta) description license maintainers platforms;
mainProgram = "luarocks";
};
})