2024-07-01 15:47:52 +00:00
|
|
|
{ luarocks_bootstrap
|
2024-05-15 15:35:15 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, unstableGitUpdater
|
|
|
|
, nurl
|
|
|
|
, file
|
|
|
|
}:
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-07-01 15:47:52 +00:00
|
|
|
luarocks_bootstrap.overrideAttrs (old: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "luarocks-nix";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0-unstable-2024-04-29";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "luarocks-nix";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "a473a8f479711682f5b97a72362736d96efd463b";
|
|
|
|
hash = "sha256-hsjv+jlLsoIDM4gB/0mFeoVu1YZ1I9ELDALLTEnlCF0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
|
|
|
file
|
|
|
|
nurl
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
patches = [ ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru = {
|
2024-05-15 15:35:15 +00:00
|
|
|
updateScript = unstableGitUpdater {
|
|
|
|
# tags incompletely inherited from regular luarocks
|
|
|
|
hardcodeZeroVersion = true;
|
|
|
|
};
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# old.meta // { /* ... */ } doesn't update meta.position, which breaks the updateScript
|
|
|
|
meta = {
|
|
|
|
inherit (old.meta) description license maintainers platforms;
|
2022-09-09 14:08:57 +00:00
|
|
|
mainProgram = "luarocks";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|