Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7769,6 +7769,17 @@
githubId = 11909469;
name = "Fabian Geiselhart";
};
f4z3r = {
email = "[email protected]";
name = "Jakob Beckmann";
github = "f4z3r";
githubId = 32326425;
keys = [
{
fingerprint = "358A 6251 E2ED EDC1 9717 14A7 96A8 BA6E C871 2183";
}
];
};
fab = {
email = "[email protected]";
matrix = "@fabaff:matrix.org";
Expand Down
1 change: 1 addition & 0 deletions maintainers/scripts/luarocks-packages.csv
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ rtp.nvim,,,,,,mrcjkb
rustaceanvim,,,,,,mrcjkb
say,,,,,,
serpent,,,,,,lockejan
sofa,,,,,,f4z3r
sqlite,,,,,,
std._debug,,,,,,
std.normalize,,,,,,
Expand Down
44 changes: 44 additions & 0 deletions pkgs/development/lua-modules/generated-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4737,6 +4737,50 @@ final: prev: {
}
) { };

sofa = callPackage (
{
buildLuarocksPackage,
fetchFromGitHub,
fetchurl,
luaAtLeast,
luaOlder,
argparse,
compat53,
luatext,
lyaml,
}:
buildLuarocksPackage {
pname = "sofa";
version = "0.7.0-0";
knownRockspec =
(fetchurl {
url = "mirror://luarocks/sofa-0.7.0-0.rockspec";
sha256 = "0hkdm4h8yjh5zw9116cclff8q6br4yyhb7f7y7lv4ydrkxfl1lzq";
}).outPath;
src = fetchFromGitHub {
owner = "f4z3r";
repo = "sofa";
rev = "v0.7.0";
hash = "sha256-aoFmzhzWuBTbDnSWDGLbkhORlrtvVOtfIV7oq2xc0pQ=";
};

disabled = luaOlder "5.1" || luaAtLeast "5.5";
propagatedBuildInputs = [
argparse
compat53
luatext
lyaml
];

meta = {
homepage = "https://github.com/f4z3r/sofa";
description = "A command execution engine powered by rofi.";
maintainers = with lib.maintainers; [ f4z3r ];
license.fullName = "MIT <http://opensource.org/licenses/MIT>";
};
}
) { };

sqlite = callPackage (
{
buildLuarocksPackage,
Expand Down
12 changes: 12 additions & 0 deletions pkgs/development/lua-modules/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,18 @@ in
'';
});

sofa = prev.sofa.overrideAttrs (oa: {
nativeBuildInputs = oa.nativeBuildInputs ++ [
installShellFiles
];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd sofa \
--bash <($out/bin/sofa --completion bash) \
--fish <($out/bin/sofa --completion fish) \
--zsh <($out/bin/sofa --completion zsh)
'';
});

sqlite = prev.sqlite.overrideAttrs (drv: {
doCheck = stdenv.hostPlatform.isLinux;
nativeCheckInputs = [
Expand Down