deps-fnl: init at 0.2.5 (#484809)

This commit is contained in:
Sandro 2026-03-04 00:45:49 +00:00 committed by GitHub
commit 6bcbb5519b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 50 additions and 0 deletions

View file

@ -7822,6 +7822,13 @@
githubId = 18535642;
name = "Emily";
};
emily-lavender = {
email = "emily@foggy.city";
github = "emily-lavender";
githubId = 253398252;
name = "Emily Lavender";
keys = [ { fingerprint = "3572 DE50 D71C 7DD7 1B48 8831 A7EF 615A 2AB9 1EE7"; } ];
};
emilylange = {
email = "nix@emilylange.de";
github = "emilylange";

View file

@ -0,0 +1,43 @@
{
lib,
fetchFromGitLab,
stdenv,
luaPackages,
}:
stdenv.mkDerivation rec {
pname = "deps.fnl";
version = "0.2.5";
src = fetchFromGitLab {
owner = "andreyorst";
repo = "deps.fnl";
tag = version;
hash = "sha256-gUqi0g7myWTbjILN4RQqbeeaSYcg0oVJYNO0Gv9XzNY=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
# deps requires argv0 to be fennel as an executable lua script
# skipping the luarocks wrapper is fine here
fennelLua=$(echo ${luaPackages.fennel}/fennel*/fennel/*/bin/fennel)
substitute deps $out/bin/deps \
--replace-fail '#!/usr/bin/env fennel' "#!$fennelLua"
chmod +x $out/bin/deps
runHook postInstall
'';
meta = {
description = "Dependency and PATH manager for Fennel";
homepage = "https://gitlab.com/andreyorst/deps.fnl";
license = lib.licenses.mit;
mainProgram = "deps";
maintainers = with lib.maintainers; [ emily-lavender ];
platforms = lib.platforms.all;
};
}