Files
nixpkgs/pkgs/development/tools/misc/luarocks/luarocks-nix.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
932 B
Nix

{
luarocks_bootstrap,
fetchFromGitHub,
unstableGitUpdater,
nurl,
file,
}:
luarocks_bootstrap.overrideAttrs (old: {
pname = "luarocks-nix";
version = "0-unstable-2024-05-31";
src = fetchFromGitHub {
owner = "nix-community";
repo = "luarocks-nix";
rev = "9d0440da358eac11afdbef392e2cf3272a8c7101";
hash = "sha256-9SC+YQ06u35LN3mPohG7Lz0eLXPsMGKG3mhS+0zSO7Y=";
};
propagatedNativeBuildInputs = old.propagatedNativeBuildInputs ++ [
file
nurl
];
patches = [ ];
doInstallCheck = false;
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";
};
})