1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-09 17:46:29 +09:00

chore: add luajitPackages.sofa

This commit is contained in:
Jakob Beckmann 2024-04-30 21:05:45 +02:00 committed by Matthieu Coudron
parent 0e9e520ad1
commit f7d136fea7
4 changed files with 68 additions and 0 deletions

View file

@ -7912,6 +7912,17 @@
githubId = 11909469;
name = "Fabian Geiselhart";
};
f4z3r = {
email = "f4z3r-github@pm.me";
name = "Jakob Beckmann";
github = "f4z3r";
githubId = 32326425;
keys = [
{
fingerprint = "358A 6251 E2ED EDC1 9717 14A7 96A8 BA6E C871 2183";
}
];
};
fab = {
email = "mail@fabian-affolter.ch";
matrix = "@fabaff:matrix.org";

View file

@ -143,6 +143,7 @@ rtp.nvim,,,,,,mrcjkb
rustaceanvim,,,,,,mrcjkb
say,,,,,,
serpent,,,,,,lockejan
sofa,,,,,,f4z3r
sqlite,,,,,,
std._debug,,,,,,
std.normalize,,,,,,

1 name rockspec ref server version luaversion maintainers
143 rustaceanvim mrcjkb
144 say
145 serpent lockejan
146 sofa f4z3r
147 sqlite
148 std._debug
149 std.normalize

View file

@ -4706,6 +4706,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,

View file

@ -977,6 +977,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 = [