Merge master into staging-next

This commit is contained in:
github-actions[bot] 2023-12-25 00:02:15 +00:00 committed by GitHub
commit 88b151ed65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 847 additions and 354 deletions

View file

@ -344,6 +344,7 @@
./services/audio/mopidy.nix
./services/audio/mpd.nix
./services/audio/mpdscribble.nix
./services/audio/mympd.nix
./services/audio/navidrome.nix
./services/audio/networkaudiod.nix
./services/audio/roon-bridge.nix

View file

@ -137,6 +137,7 @@ in
atop.preStart = ''
set -e -u
shopt -s nullglob
rm -f "$LOGPATH"/atop_*.new
for logfile in "$LOGPATH"/atop_*
do
${atop}/bin/atopconvert "$logfile" "$logfile".new
@ -144,9 +145,9 @@ in
# false positives for atop-rotate.service
if ! ${pkgs.diffutils}/bin/cmp -s "$logfile" "$logfile".new
then
${pkgs.coreutils}/bin/mv -v -f "$logfile".new "$logfile"
mv -v -f "$logfile".new "$logfile"
else
${pkgs.coreutils}/bin/rm -f "$logfile".new
rm -f "$logfile".new
fi
done
'';

View file

@ -1,8 +1,8 @@
{ stdenv, unsecvars, linuxHeaders, sourceProg, debug ? false }:
# For testing:
# $ nix-build -E 'with import <nixpkgs> {}; pkgs.callPackage ./wrapper.nix { parentWrapperDir = "/run/wrappers"; debug = true; }'
# $ nix-build -E 'with import <nixpkgs> {}; pkgs.callPackage ./wrapper.nix { sourceProg = "${pkgs.hello}/bin/hello"; debug = true; }'
stdenv.mkDerivation {
name = "security-wrapper";
name = "security-wrapper-${baseNameOf sourceProg}";
buildInputs = [ linuxHeaders ];
dontUnpack = true;
CFLAGS = [

View file

@ -0,0 +1,129 @@
{ pkgs, config, lib, ... }:
let
cfg = config.services.mympd;
in {
options = {
services.mympd = {
enable = lib.mkEnableOption (lib.mdDoc "MyMPD server");
package = lib.mkPackageOption pkgs "mympd" {};
openFirewall = lib.mkOption {
type = lib.types.bool;
default = false;
description = lib.mdDoc ''
Open ports needed for the functionality of the program.
'';
};
extraGroups = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
example = [ "music" ];
description = lib.mdDoc ''
Additional groups for the systemd service.
'';
};
settings = lib.mkOption {
type = lib.types.submodule {
freeformType = with lib.types; attrsOf (nullOr (oneOf [ str bool int ]));
options = {
http_port = lib.mkOption {
type = lib.types.port;
description = lib.mdDoc ''
The HTTP port where mympd's web interface will be available.
The HTTPS/SSL port can be configured via {option}`config`.
'';
example = "8080";
};
ssl = lib.mkOption {
type = lib.types.bool;
description = lib.mdDoc ''
Whether to enable listening on the SSL port.
Refer to <https://jcorporation.github.io/myMPD/configuration/configuration-files#ssl-options>
for more information.
'';
default = false;
};
};
};
description = lib.mdDoc ''
Manages the configuration files declaratively. For all the configuration
options, see <https://jcorporation.github.io/myMPD/configuration/configuration-files>.
Each key represents the "File" column from the upstream configuration table, and the
value is the content of that file.
'';
};
};
};
config = lib.mkIf cfg.enable {
systemd.services.mympd = {
# upstream service config: https://github.com/jcorporation/myMPD/blob/master/contrib/initscripts/mympd.service.in
after = [ "mpd.service" ];
wantedBy = [ "multi-user.target" ];
preStart = with lib; ''
config_dir="/var/lib/mympd/config"
mkdir -p "$config_dir"
${pipe cfg.settings [
(mapAttrsToList (name: value: ''
echo -n "${if isBool value then boolToString value else toString value}" > "$config_dir/${name}"
''))
(concatStringsSep "\n")
]}
'';
unitConfig = {
Description = "myMPD server daemon";
Documentation = "man:mympd(1)";
};
serviceConfig = {
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
CapabilityBoundingSet = "CAP_NET_BIND_SERVICE";
DynamicUser = true;
ExecStart = lib.getExe cfg.package;
LockPersonality = true;
MemoryDenyWriteExecute = true;
PrivateDevices = true;
ProtectClock = true;
ProtectControlGroups = true;
ProtectHome = true;
ProtectHostname = true;
ProtectKernelLogs = true;
ProtectKernelModules = true;
ProtectKernelTunables = true;
ProtectProc = "invisible";
RestrictRealtime = true;
StateDirectory = "mympd";
CacheDirectory = "mympd";
RestrictAddressFamilies = "AF_INET AF_INET6 AF_NETLINK AF_UNIX";
RestrictNamespaces = true;
SystemCallArchitectures = "native";
SystemCallFilter = "@system-service";
SupplementaryGroups = cfg.extraGroups;
};
};
networking.firewall = lib.mkMerge [
(lib.mkIf cfg.openFirewall {
allowedTCPPorts = [ cfg.settings.http_port ];
})
(lib.mkIf (cfg.openFirewall && cfg.settings.ssl && cfg.settings.ssl_port != null) {
allowedTCPPorts = [ cfg.settings.ssl_port ];
})
];
};
meta.maintainers = [ lib.maintainers.eliandoran ];
}

View file

@ -55,6 +55,7 @@ in
ExecStart = lib.getExe cfg.package;
User = "harmonia";
Group = "harmonia";
Restart = "on-failure";
PrivateUsers = true;
DeviceAllow = [ "" ];
UMask = "0066";

View file

@ -32,7 +32,7 @@ in
system.requiredKernelConfig = [
(kCfg.isEnabled "ANDROID_BINDER_IPC")
(kCfg.isEnabled "ANDROID_BINDERFS")
(kCfg.isEnabled "ASHMEM") # FIXME Needs memfd support instead on Linux 5.18 and waydroid 1.2.1
(kCfg.isEnabled "MEMFD_CREATE")
];
/* NOTE: we always enable this flag even if CONFIG_PSI_DEFAULT_DISABLED is not on

View file

@ -544,6 +544,7 @@ in {
munin = handleTest ./munin.nix {};
mutableUsers = handleTest ./mutable-users.nix {};
mxisd = handleTest ./mxisd.nix {};
mympd = handleTest ./mympd.nix {};
mysql = handleTest ./mysql/mysql.nix {};
mysql-autobackup = handleTest ./mysql/mysql-autobackup.nix {};
mysql-backup = handleTest ./mysql/mysql-backup.nix {};

27
nixos/tests/mympd.nix Normal file
View file

@ -0,0 +1,27 @@
import ./make-test-python.nix ({pkgs, lib, ... }: {
name = "mympd";
nodes.mympd = {
services.mympd = {
enable = true;
settings = {
http_port = 8081;
};
};
services.mpd.enable = true;
};
testScript = ''
start_all();
machine.wait_for_unit("mympd.service");
# Ensure that mympd can connect to mpd
machine.wait_until_succeeds(
"journalctl -eu mympd -o cat | grep 'Connected to MPD'"
)
# Ensure that the web server is working
machine.succeed("curl http://localhost:8081 --compressed | grep -o myMPD")
'';
})

View file

@ -63,5 +63,6 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = [ lib.maintainers.doronbehar ];
platforms = lib.platforms.linux;
license = lib.licenses.gpl2Plus;
mainProgram = "mympd";
};
})

File diff suppressed because it is too large Load diff

View file

@ -39,12 +39,12 @@
};
apex = buildGrammar {
language = "apex";
version = "0.0.0+rev=82ee140";
version = "0.0.0+rev=ca70b23";
src = fetchFromGitHub {
owner = "aheber";
repo = "tree-sitter-sfapex";
rev = "82ee140f4ee7652a4915ac9e9f60c4d66f7637d7";
hash = "sha256-fNKLvE9uXQlsCqO2F8ahxWigTmYu6f2TgRBgGbXvszk=";
rev = "ca70b2347a79615cd749517f6c6c2352e50a7ce9";
hash = "sha256-7gVA5aFGw2DSFmmlv6HMLcfSki4aDPB05llfHFSaYME=";
};
location = "apex";
meta.homepage = "https://github.com/aheber/tree-sitter-sfapex";
@ -117,12 +117,12 @@
};
beancount = buildGrammar {
language = "beancount";
version = "0.0.0+rev=484f508";
version = "0.0.0+rev=cd08aef";
src = fetchFromGitHub {
owner = "polarmutex";
repo = "tree-sitter-beancount";
rev = "484f50849bcce887c86451f532bf778689ca8523";
hash = "sha256-5k5sHW9xabbCFJXHJfs8oBlCjIBa6L3OtDdKEVXLgOc=";
rev = "cd08aefa20dc0f3d5984b08b5d468f75bf4fd096";
hash = "sha256-39TnAM/urE0slFtqGykkmBlZPg0OFdkDU+p1WAAjl5c=";
};
meta.homepage = "https://github.com/polarmutex/tree-sitter-beancount";
};
@ -506,12 +506,12 @@
};
elm = buildGrammar {
language = "elm";
version = "0.0.0+rev=44ffae4";
version = "0.0.0+rev=c26afd7";
src = fetchFromGitHub {
owner = "elm-tooling";
repo = "tree-sitter-elm";
rev = "44ffae46bb460820c3c3d6fde20378202bd4b0ab";
hash = "sha256-pPu0bkctiSXmGHMQMsOYEoDyEiX71+/VKGKNZC/o+eU=";
rev = "c26afd7f2316f689410a1622f1780eff054994b1";
hash = "sha256-vYN1E49IpsvTUmxuzRyydCmhYZYGndcZPMBYgSMudrE=";
};
meta.homepage = "https://github.com/elm-tooling/tree-sitter-elm";
};
@ -902,12 +902,12 @@
};
haskell = buildGrammar {
language = "haskell";
version = "0.0.0+rev=5260f60";
version = "0.0.0+rev=dd924b8";
src = fetchFromGitHub {
owner = "tree-sitter";
repo = "tree-sitter-haskell";
rev = "5260f606ec353f156751473a0c203d67167c0ebe";
hash = "sha256-id64ir/HZl6okR+Hbnl3tYM9ol3ObqigzntsP/8hfLE=";
rev = "dd924b8df1eb76261f009e149fc6f3291c5081c2";
hash = "sha256-rm9EeoZ5mO4bHAB0+E+6teKCicghQ46W7VvLfv3Za7I=";
};
meta.homepage = "https://github.com/tree-sitter/tree-sitter-haskell";
};
@ -2042,12 +2042,12 @@
};
scala = buildGrammar {
language = "scala";
version = "0.0.0+rev=1b4c2fa";
version = "0.0.0+rev=866f945";
src = fetchFromGitHub {
owner = "tree-sitter";
repo = "tree-sitter-scala";
rev = "1b4c2fa5c55c5fd83cbb0d2f818f916aba221a42";
hash = "sha256-93uWT5KMqCUwntdL5U2Vc71ci+uP3OdP9y6kVZ3bYLo=";
rev = "866f94551cd03f9055d04dba20465b84e7e693f3";
hash = "sha256-BvZdA972p6ks988z1Che9EN97ukjCC9AVUbhaxUx0Qc=";
};
meta.homepage = "https://github.com/tree-sitter/tree-sitter-scala";
};
@ -2153,24 +2153,24 @@
};
soql = buildGrammar {
language = "soql";
version = "0.0.0+rev=82ee140";
version = "0.0.0+rev=ca70b23";
src = fetchFromGitHub {
owner = "aheber";
repo = "tree-sitter-sfapex";
rev = "82ee140f4ee7652a4915ac9e9f60c4d66f7637d7";
hash = "sha256-fNKLvE9uXQlsCqO2F8ahxWigTmYu6f2TgRBgGbXvszk=";
rev = "ca70b2347a79615cd749517f6c6c2352e50a7ce9";
hash = "sha256-7gVA5aFGw2DSFmmlv6HMLcfSki4aDPB05llfHFSaYME=";
};
location = "soql";
meta.homepage = "https://github.com/aheber/tree-sitter-sfapex";
};
sosl = buildGrammar {
language = "sosl";
version = "0.0.0+rev=82ee140";
version = "0.0.0+rev=ca70b23";
src = fetchFromGitHub {
owner = "aheber";
repo = "tree-sitter-sfapex";
rev = "82ee140f4ee7652a4915ac9e9f60c4d66f7637d7";
hash = "sha256-fNKLvE9uXQlsCqO2F8ahxWigTmYu6f2TgRBgGbXvszk=";
rev = "ca70b2347a79615cd749517f6c6c2352e50a7ce9";
hash = "sha256-7gVA5aFGw2DSFmmlv6HMLcfSki4aDPB05llfHFSaYME=";
};
location = "sosl";
meta.homepage = "https://github.com/aheber/tree-sitter-sfapex";
@ -2355,12 +2355,12 @@
};
templ = buildGrammar {
language = "templ";
version = "0.0.0+rev=671e9a9";
version = "0.0.0+rev=8793137";
src = fetchFromGitHub {
owner = "vrischmann";
repo = "tree-sitter-templ";
rev = "671e9a957acd40088919ca17b30f4a39870784d4";
hash = "sha256-ugBu/05WLmCL1D5bzzaLND/nIQIWXXSurouBewOte8A=";
rev = "8793137e669949e72ac1d877ba9cadfbb5062fc0";
hash = "sha256-SLj4IrqLgNhkeErsWcAfPeUzpAcub00yqhBeeHi18wY=";
};
meta.homepage = "https://github.com/vrischmann/tree-sitter-templ";
};
@ -2411,12 +2411,12 @@
};
tlaplus = buildGrammar {
language = "tlaplus";
version = "0.0.0+rev=c5fae9e";
version = "0.0.0+rev=aeb2e8f";
src = fetchFromGitHub {
owner = "tlaplus-community";
repo = "tree-sitter-tlaplus";
rev = "c5fae9e4ad9f483fb6232a8688a2c940be6b496b";
hash = "sha256-k2NN7vRIDsq/J4J6T9KEAwSht7JBtU9Ul7tUL/TrU58=";
rev = "aeb2e8fdc417c32ae7d1149cfa2a8ddc3b293600";
hash = "sha256-fETWuo/mZA6tCux0Hsdbg/vTxo/cdtIES9VIp75twMw=";
};
meta.homepage = "https://github.com/tlaplus-community/tree-sitter-tlaplus";
};
@ -2625,12 +2625,12 @@
};
vimdoc = buildGrammar {
language = "vimdoc";
version = "0.0.0+rev=60045f7";
version = "0.0.0+rev=4f8ba9e";
src = fetchFromGitHub {
owner = "neovim";
repo = "tree-sitter-vimdoc";
rev = "60045f7d717eba85fa8abd996e0bb50eed5a3d8e";
hash = "sha256-FW+sPrzFQxKkWkyX2q+s+RBIMCOUWOt38vj2DzAaJ4I=";
rev = "4f8ba9e39c8b3fbaf0bb5f70ac255474a9099359";
hash = "sha256-WSDz3vP/qNW1VGmXd5aGjO9PrJpjBNN4wdBohSbh9co=";
};
meta.homepage = "https://github.com/neovim/tree-sitter-vimdoc";
};
@ -2669,12 +2669,12 @@
};
wing = buildGrammar {
language = "wing";
version = "0.0.0+rev=e6e06a0";
version = "0.0.0+rev=785c54e";
src = fetchFromGitHub {
owner = "winglang";
repo = "wing";
rev = "e6e06a05eeb894001d3c24e1db72f5cd2f35bdae";
hash = "sha256-/a1cXTwEyHTv0mzXvZIvD0V9HBL8NyeMMWI1O+Fp5Fs=";
rev = "785c54e35a6a45826ff7228aa9662c19ca92ad57";
hash = "sha256-oNmbm8utc9wPqvhvVyfg5fbvku1QFpmcfxdk8vqSTf4=";
};
location = "libs/tree-sitter-wing";
generate = true;

View file

@ -57,6 +57,8 @@
, xxd
, zathura
, zsh
, # codeium-nvim dependencies
codeium
, # command-t dependencies
getconf
, ruby
@ -313,6 +315,19 @@
src = "${nodePackages."@yaegassy/coc-nginx"}/lib/node_modules/@yaegassy/coc-nginx";
};
codeium-nvim = super.codeium-nvim.overrideAttrs {
dependencies = with self; [ nvim-cmp plenary-nvim ];
buildPhase = ''
cat << EOF > lua/codeium/installation_defaults.lua
return {
tools = {
language_server = "${codeium}/bin/codeium_language_server"
};
};
EOF
'';
};
command-t = super.command-t.overrideAttrs {
nativeBuildInputs = [ getconf ruby ];
buildPhase = ''

View file

@ -170,6 +170,7 @@ https://github.com/coc-extensions/coc-svelte/,,
https://github.com/iamcco/coc-tailwindcss/,,
https://github.com/neoclide/coc.nvim/,release,
https://github.com/manicmaniac/coconut.vim/,HEAD,
https://github.com/Exafunction/codeium.nvim/,HEAD,
https://github.com/Exafunction/codeium.vim/,HEAD,
https://github.com/gorbit99/codewindow.nvim/,HEAD,
https://github.com/metakirby5/codi.vim/,,

View file

@ -10,7 +10,7 @@
stdenv.mkDerivation rec {
pname = "structorizer";
version = "3.32-14";
version = "3.32-15";
desktopItems = [
(makeDesktopItem {
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
owner = "fesch";
repo = "Structorizer.Desktop";
rev = version;
hash = "sha256-pnzvfXH4KC067aqqH9h1+T3K+6IzIYw8IJCMdmGrN6c=";
hash = "sha256-ZCVvMvbXMQIcZRk1F7QiRtNeuLicHe/aEvwp4FvhwoM=";
};
patches = [ ./makeStructorizer.patch ./makeBigJar.patch ];

View file

@ -1,17 +1,17 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, testers, kubent }:
buildGoModule rec {
pname = "kubent";
version = "0.7.0";
version = "0.7.1";
src = fetchFromGitHub {
owner = "doitintl";
repo = "kube-no-trouble";
rev = version;
sha256 = "sha256-QIvMhKAo30gInqJBpHvhcyjgVkdRqgBKwLQ80ng/75U=";
sha256 = "sha256-fJRaahK/tDns+edi1GIdYRk4+h2vbY2LltZN2hxvKGI=";
};
vendorHash = "sha256-XXf6CPPHVvCTZA4Ve5/wmlgXQ/gZZUW0W/jXA0bJgLA=";
vendorHash = "sha256-nEc0fngop+0ju8hDu7nowBsioqCye15Jo1mRlM0TtlQ=";
ldflags = [
"-w" "-s"
@ -20,6 +20,12 @@ buildGoModule rec {
subPackages = [ "cmd/kubent" ];
passthru.tests.version = testers.testVersion {
package = kubent;
command = "kubent --version";
version = "v${version}";
};
meta = with lib; {
homepage = "https://github.com/doitintl/kube-no-trouble";
description = "Easily check your cluster for use of deprecated APIs";

View file

@ -17,16 +17,16 @@ let
tctl-next = buildGoModule rec {
pname = "tctl-next";
version = "0.10.6";
version = "0.10.7";
src = fetchFromGitHub {
owner = "temporalio";
repo = "cli";
rev = "v${version}";
hash = "sha256-4kNuudnYBD6rgIkysP7dEjsRu/dFvTm3hkbBYZ6+Zh4=";
hash = "sha256-pFVCy6xB7Fhj4OatyNQdjkDpDGtod2nJsg2vdl5ED9s=";
};
vendorHash = "sha256-ZECwF/avHKE4L9GHa2w5Lx71wD6UIAaPpRkUtpEVafI=";
vendorHash = "sha256-mauaavG3oeUzMrBEiK85Tws++6V1WViczRFhyovUpB4=";
inherit overrideModAttrs;

View file

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "temporal";
version = "1.22.0";
version = "1.22.3";
src = fetchFromGitHub {
owner = "temporalio";
repo = "temporal";
rev = "v${version}";
hash = "sha256-7AdbGsgdDsSUtj8TkZl4CcvF2Xk1l9W9Vdos+fEsIVI=";
hash = "sha256-iqJzvnueUnIyu3Z6a5Ht90arHaHgM4COCDdZo7Qvzuk=";
};
vendorHash = "sha256-gDiVB34fICaS6IyQCAa4ePff/vsT7/7HnJM9ZjiOh4k=";
vendorHash = "sha256-Aum5OsdJ69MkP8tXXGWa6IdouX6F4xKjD/ndAqShMhw=";
excludedPackages = [ "./build" ];

View file

@ -415,7 +415,7 @@ in stdenv.mkDerivation (finalAttrs: {
dontWrapQtApps = true;
configureFlags = [
(lib.optionalString (!withHelp) "--without-help")
(lib.withFeature withHelp "help")
"--with-boost=${getDev boost}"
"--with-boost-libdir=${getLib boost}/lib"
"--with-beanshell-jar=${bsh}"

View file

@ -30,12 +30,14 @@ npmInstallHook() {
done < <(@jq@ --raw-output '(.bin | type) as $typ | if $typ == "string" then
.name + " " + .bin
elif $typ == "object" then .bin | to_entries | map(.key + " " + .value) | join("\n")
elif $typ == "null" then empty
else "invalid type " + $typ | halt_error end' "${npmWorkspace-.}/package.json")
while IFS= read -r man; do
installManPage "$packageOut/$man"
done < <(@jq@ --raw-output '(.man | type) as $typ | if $typ == "string" then .man
elif $typ == "list" then .man | join("\n")
elif $typ == "null" then empty
else "invalid type " + $typ | halt_error end' "${npmWorkspace-.}/package.json")
local -r nodeModulesPath="$packageOut/node_modules"

View file

@ -2,17 +2,19 @@
, buildGoModule
, fetchFromGitHub
, nix-update-script
, testers
, crossplane-cli
}:
buildGoModule rec {
pname = "crossplane-cli";
version = "1.14.3";
version = "1.14.5";
src = fetchFromGitHub {
owner = "crossplane";
repo = "crossplane";
rev = "v${version}";
hash = "sha256-rxN0Zi1UgQjDOkY2OJlG6826ARBzlEObJk4nDEc9784=";
hash = "sha256-P7zfkrE+r/pQEEu0GK7v+bJ4ONeejZLXq2sYmU/V110=";
};
vendorHash = "sha256-vkXvnEstD/czBDxmI96TIQB/L4jxhMwIS1XpHqVtxqY=";
@ -29,6 +31,12 @@ buildGoModule rec {
mv $out/bin/crank $out/bin/crossplane
'';
passthru.tests.version = testers.testVersion {
package = crossplane-cli;
command = "crossplane --version";
version = "v${version}";
};
passthru.updateScript = nix-update-script { };
meta = with lib; {

View file

@ -4,16 +4,16 @@
}:
buildGoModule rec {
pname = "drone-scp";
version = "1.6.11";
version = "1.6.12";
src = fetchFromGitHub {
owner = "appleboy";
repo = "drone-scp";
rev = "v${version}";
hash = "sha256-JCqiYPhuPKDcbg8eo4DFuUVazu+0e0YTnG87NZRARMU=";
hash = "sha256-pdVSb+hOW38LMP6fwAxVy/8SyfwKcMe4SgemPZ1PlSg=";
};
vendorHash = "sha256-zPpwvU/shSK1bfm0Qc2VjifSzDTpFnsUiogQfQcdY7I=";
vendorHash = "sha256-HQeWj5MmVfR6PkL2FEnaptMH+4nSh7T2wfOaZyUZvbM=";
# Needs a specific user...
doCheck = false;

View file

@ -1,31 +1,60 @@
{ lib
, stdenv
, fetchFromGitHub
, nix
}:
stdenv.mkDerivation (finalAttrs:{
{ resholve, lib, coreutils, direnv, nix, fetchFromGitHub }:
# resholve does not yet support `finalAttrs` call pattern hence `rec`
# https://github.com/abathur/resholve/issues/107
resholve.mkDerivation rec {
pname = "nix-direnv";
version = "3.0.1";
version = "3.0.3";
src = fetchFromGitHub {
owner = "nix-community";
repo = "nix-direnv";
rev = finalAttrs.version;
hash = "sha256-bfcQYZViFuo7WsEl47pM7Iclg/paf+cLciX9NgaG01U=";
rev = version;
hash = "sha256-dwSICqFshBI9/4u40fkEqOuhTndnAx/w88zsnIzEcBk=";
};
# Substitute instead of wrapping because the resulting file is
# getting sourced, not executed:
# skip min version checks which are redundant when built with nix
postPatch = ''
sed -i "1a NIX_BIN_PREFIX=${nix}/bin/" direnvrc
sed -i 1iNIX_DIRENV_SKIP_VERSION_CHECK=1 direnvrc
'';
installPhase = ''
runHook preInstall
install -m500 -D direnvrc $out/share/nix-direnv/direnvrc
install -m400 -D direnvrc $out/share/nix-direnv/direnvrc
runHook postInstall
'';
solutions = {
default = {
scripts = [ "share/nix-direnv/direnvrc" ];
interpreter = "none";
inputs = [ coreutils nix ];
fake = {
builtin = [
"PATH_add"
"direnv_layout_dir"
"has"
"log_error"
"log_status"
"watch_file"
];
function = [
# not really a function - this is in an else branch for macOS/homebrew that
# cannot be reached when built with nix
"shasum"
];
};
keep = {
"$cmd" = true;
"$direnv" = true;
};
execer = [
"cannot:${direnv}/bin/direnv"
"cannot:${nix}/bin/nix"
];
};
};
meta = {
description = "A fast, persistent use_nix implementation for direnv";
homepage = "https://github.com/nix-community/nix-direnv";
@ -33,4 +62,4 @@ stdenv.mkDerivation (finalAttrs:{
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ mic92 bbenne10 ];
};
})
}

View file

@ -0,0 +1,38 @@
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, cmake
, libebur128
, taglib
, ffmpeg
, inih
, fmt
, zlib
}:
stdenv.mkDerivation rec {
pname = "rsgain";
version = "3.4";
src = fetchFromGitHub {
owner = "complexlogic";
repo = "rsgain";
rev = "v${version}";
sha256 = "sha256-AiNjsrwTF6emcwXo2TPMbs8mLavGS7NsvytAppMGKfY=";
};
cmakeFlags = ["-DCMAKE_BUILD_TYPE='Release'"];
nativeBuildInputs = [pkg-config cmake];
buildInputs = [libebur128 taglib ffmpeg inih fmt zlib];
meta = with lib; {
description = "A simple, but powerful ReplayGain 2.0 tagging utility";
homepage = "https://github.com/complexlogic/rsgain";
changelog = "https://github.com/complexlogic/rsgain/blob/v${version}/CHANGELOG";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = [maintainers.felipeqq2];
};
}

View file

@ -0,0 +1,49 @@
{ lib
, rustPlatform
, fetchFromGitHub
, sudachidict
, runCommand
, sudachi-rs
}:
rustPlatform.buildRustPackage rec {
pname = "sudachi-rs";
version = "0.6.7";
src = fetchFromGitHub {
owner = "WorksApplications";
repo = "sudachi.rs";
rev = "refs/tags/v${version}";
hash = "sha256-VzNOI6PP9sKBsNfB5yIxAI8jI8TEdM4tD49Jl/2tkSE=";
};
postPatch = ''
substituteInPlace sudachi/src/config.rs \
--replace '"resources"' '"${placeholder "out"}/share/resources"'
'';
cargoHash = "sha256-b2NtgHcMkimzFFuqohAo9KdSaIq6oi3qo/k8/VugyFs=";
# prepare the resources before the build so that the binary can find sudachidict
preBuild = ''
install -Dm644 ${sudachidict}/share/system.dic resources/system.dic
install -Dm644 resources/* -t $out/share/resources
'';
passthru.tests = {
# detects an error that sudachidict is not found
cli = runCommand "${pname}-cli-test" { } ''
mkdir $out
echo "" | ${lib.getExe sudachi-rs} > $out/result
'';
};
meta = with lib; {
description = "A Japanese morphological analyzer";
homepage = "https://github.com/WorksApplications/sudachi.rs";
changelog = "https://github.com/WorksApplications/sudachi.rs/blob/${src.rev}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ natsukium ];
mainProgram = "sudachi";
};
}

View file

@ -0,0 +1,60 @@
{ lib
, stdenvNoCC
, fetchzip
, dict-type ? "core"
}:
let
pname = "sudachidict";
version = "20230927";
srcs = {
core = fetchzip {
url = "https://github.com/WorksApplications/SudachiDict/releases/download/v${version}/sudachi-dictionary-${version}-core.zip";
hash = "sha256-c88FfC03AU8eP37RVu9M3BAIlwFlTJqQJ60PK94mHOc=";
};
small = fetchzip {
url = "https://github.com/WorksApplications/SudachiDict/releases/download/v${version}/sudachi-dictionary-${version}-small.zip";
hash = "sha256-eaYD2C/qPeZJvmOeqH307a6OXtYfuksf6VZt+9kM7eM=";
};
full = fetchzip {
url = "https://github.com/WorksApplications/SudachiDict/releases/download/v${version}/sudachi-dictionary-${version}-full.zip";
hash = "sha256-yiO33UUQHcf6LvHJ1Is4MJtI5GSHuIP/tsE9m/KZ01o=";
};
};
in
lib.checkListOfEnum "${pname}: dict-type" [ "core" "full" "small" ] [ dict-type ]
stdenvNoCC.mkDerivation {
inherit pname version;
src = srcs.${dict-type};
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -Dm644 system_${dict-type}.dic $out/share/system.dic
runHook postInstall
'';
passthru = {
dict-type = dict-type;
};
meta = with lib; {
description = "A lexicon for Sudachi";
homepage = "https://github.com/WorksApplications/SudachiDict";
changelog = "https://github.com/WorksApplications/SudachiDict/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ natsukium ];
platforms = platforms.all;
# it is a waste of space and time to build this package in hydra since it is just data
hydraPlatforms = [];
};
}

View file

@ -20,16 +20,16 @@ assert waylandSupport -> stdenv.isLinux;
buildGoModule rec {
pname = "supersonic" + lib.optionalString waylandSupport "-wayland";
version = "0.8.1";
version = "0.8.2";
src = fetchFromGitHub {
owner = "dweymouth";
repo = "supersonic";
rev = "v${version}";
hash = "sha256-tx0IlPqFb5ZPxd6GLlJIWVN4axqnzcuyxUMNI8WSJYk=";
hash = "sha256-hhFnOxWXR91WpB51c4fvIENoAtqPj+VmPImGcXwTH0o=";
};
vendorHash = "sha256-HBvLs/OOp6AAd6mP2QsonP7HBvdbo3JHszBsVvoB0Dk=";
vendorHash = "sha256-oAp3paXWXtTB+1UU/KGewCDQWye16rxNnNWQMdrhgP0=";
nativeBuildInputs = [
copyDesktopItems

View file

@ -1,7 +1,7 @@
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
let
version = "1.48.2";
version = "1.56.1";
in
buildGoModule {
pname = "tailscale-nginx-auth";
@ -11,9 +11,9 @@ buildGoModule {
owner = "tailscale";
repo = "tailscale";
rev = "v${version}";
hash = "sha256-5Usi7W4y6JniyxBIfQid1XjDIZRS5oIw+KUMMiFRBwk=";
hash = "sha256-kMk5Q/KvNcsohHNLDMmpBm+gUxQEOeO8o/odukcJi0A=";
};
vendorHash = "sha256-Fr4VZcKrXnT1PZuEG110KBefjcZzRsQRBSvByELKAy4=";
vendorHash = "sha256-bG/ydsJf2UncOcDo8/BXdvQJO3Mk0tl8JGje1b6kto4=";
CGO_ENABLED = 0;

View file

@ -2,16 +2,16 @@
buildNpmPackage rec {
pname = "whistle";
version = "2.9.59";
version = "2.9.61";
src = fetchFromGitHub {
owner = "avwo";
repo = "whistle";
rev = "v${version}";
hash = "sha256-2eb31qV49r8U4arj4TuA+lyi9HTBPRgmW3vR+qF6QfE=";
hash = "sha256-q1uCN+DxYNTH2riWjnllWtiSewvYb+SRG4gh4o5Wqxg=";
};
npmDepsHash = "sha256-HkBcizAao4uV+EDJc3z8P97ivMhbYr27hwY7x2jqEIc=";
npmDepsHash = "sha256-ftBJ2ZkJOMdYXRWi2APhAoxju2tOQvLpanHLv4XMjeY=";
dontNpmBuild = true;

View file

@ -19,11 +19,11 @@
stdenv.mkDerivation rec {
pname = "ecl";
version = "21.2.1";
version = "23.9.9";
src = fetchurl {
url = "https://common-lisp.net/project/ecl/static/files/release/ecl-${version}.tgz";
sha256 = "sha256-sVp13PhLj2LmhyDMqxOT+WEcB4/NOv3WOaEIbK0BCQA=";
sha256 = "107q6gmxlsya4yv38r1x1axrgyyfgdrfkkz97zfp64bcrasdl6y5";
};
nativeBuildInputs = [

View file

@ -219,7 +219,7 @@ let
isJetsonBuild =
let
requestedJetsonDevices =
lists.filter (cap: cudaComputeCapabilityToIsJetson.${cap})
lists.filter (cap: cudaComputeCapabilityToIsJetson.${cap} or false)
cudaCapabilities;
requestedNonJetsonDevices =
lists.filter (cap: !(builtins.elem cap requestedJetsonDevices))

View file

@ -29,7 +29,7 @@
buildPythonPackage rec {
pname = "glueviz";
version = "1.16.0";
version = "1.17.1";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -38,7 +38,7 @@ buildPythonPackage rec {
owner = "glue-viz";
repo = "glue";
rev = "refs/tags/v${version}";
sha256 = "sha256-jjDa0DxB5AJm+x8P7FiH2kqhhc/bbzjzvdC9INs69Ro=";
sha256 = "sha256-nr84GJAGnpKzjZEFNsQujPysSQENwGxdNfPIYUCJkK4=";
};
buildInputs = [ pyqt-builder ];

View file

@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "rapidgzip";
version = "0.11.0";
version = "0.11.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-gt3Za6ZtJa4hwqeiIrixSIbM0LZYKqegeCxdUhXhs/E=";
hash = "sha256-pcKO9BovkUDlRjE8MZQEfTSutVMB/9beyAyP3vChMUE=";
};
nativeBuildInputs = [ nasm ];

View file

@ -0,0 +1,42 @@
{ buildPythonPackage
, fetchFromGitHub
, sudachidict
, setuptools
}:
buildPythonPackage rec {
pname = "sudachidict-${sudachidict.dict-type}";
inherit (sudachidict) version meta;
pyproject = true;
src = fetchFromGitHub {
owner = "WorksApplications";
repo = "SudachiDict";
rev = "refs/tags/v${version}";
hash = "sha256-xJ/iPywOZA2kzHaVU43Bc8TUboj3OpDg1kLFMIc/T90=";
};
sourceRoot = "source/python";
# setup script tries to get data from the network but we use the nixpkgs' one
postPatch = ''
substituteInPlace setup.py \
--replace 'ZIP_NAME = urlparse(ZIP_URL).path.split("/")[-1]' "" \
--replace "not os.path.exists(RESOURCE_DIR)" "False"
substituteInPlace INFO.json \
--replace "%%VERSION%%" ${version} \
--replace "%%DICT_VERSION%%" ${version} \
--replace "%%DICT_TYPE%%" ${sudachidict.dict-type}
'';
nativeBuildInputs = [
setuptools
];
# we need to prepare some files before the build
# https://github.com/WorksApplications/SudachiDict/blob/develop/package_python.sh
preBuild = ''
install -Dm644 ${sudachidict}/share/system.dic -t sudachidict_${sudachidict.dict-type}/resources
touch sudachidict_${sudachidict.dict-type}/__init__.py
'';
}

View file

@ -0,0 +1,54 @@
{ lib
, stdenv
, buildPythonPackage
, cargo
, libiconv
, rustPlatform
, rustc
, sudachi-rs
, setuptools-rust
, pytestCheckHook
, sudachidict-core
, tokenizers
}:
buildPythonPackage rec {
pname = "sudachipy";
inherit (sudachi-rs) src version;
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-Am+ae2lgnndSDzf0GF8R1i6OPLdIlm2dLThqYqXbscA=";
};
nativeBuildInputs = [
cargo
rustPlatform.cargoSetupHook
rustc
setuptools-rust
];
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
];
preBuild = ''
cd python
'';
nativeCheckInputs = [
pytestCheckHook
sudachidict-core
tokenizers
];
pythonImportsCheck = [
"sudachipy"
];
meta = sudachi-rs.meta // {
homepage = "https://github.com/WorksApplications/sudachi.rs/tree/develop/python";
mainProgram = "sudachipy";
};
}

View file

@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
pname = "trino-cli";
version = "434";
version = "435";
jarfilename = "${pname}-${version}-executable.jar";
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "mirror://maven/io/trino/${pname}/${version}/${jarfilename}";
sha256 = "sha256-lu6qx6AhYtNWwkIydZV332Z5HqIh0uG1WIJZiYXI5Ao=";
sha256 = "sha256-X+G75KtlQus9mYcGtAMm7MDo7reN2ZTlVvhGhzEu5W4=";
};
dontUnpack = true;

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "ktlint";
version = "1.0.1";
version = "1.1.0";
src = fetchurl {
url = "https://github.com/pinterest/ktlint/releases/download/${version}/ktlint";
sha256 = "15bvk6sv6fjvfq2a5yyxh3kvpkyws0pxdqbygkkrxxsl8bnr3409";
sha256 = "sha256-ZyMaiirHJOLvQRq+lQQ+tz+LnugD21WaM4IeU2HgGK8=";
};
nativeBuildInputs = [ makeWrapper ];

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "uncrustify";
version = "0.78.0";
version = "0.78.1";
src = fetchFromGitHub {
owner = "uncrustify";
repo = "uncrustify";
rev = "uncrustify-${version}";
sha256 = "sha256-wuwZFTa8XGMN3dlpdaMYiKvyS3DJMUgqRgaDtj/s7vI=";
sha256 = "sha256-L+YEVZC7sIDYuCM3xpSfZLjA3B8XsW5hi+zV2NEgXTs=";
};
nativeBuildInputs = [ cmake python3 ];

View file

@ -2,11 +2,11 @@
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "twilio-cli";
version = "5.16.3";
version = "5.17.0";
src = fetchzip {
url = "https://twilio-cli-prod.s3.amazonaws.com/twilio-v${finalAttrs.version}/twilio-v${finalAttrs.version}.tar.gz";
hash = "sha256-CaH0NRK0KvR2F8/Fov16uzig5BvwRuUNf4SDFDu/SLs=";
hash = "sha256-7BJ/9dqEKBjH89XDyIonRbfCn8cyjvgtV2PwdzGIUro=";
};
buildInputs = [ nodejs-slim ];

View file

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec {
pname = "typos";
version = "1.16.24";
version = "1.16.25";
src = fetchFromGitHub {
owner = "crate-ci";
repo = pname;
rev = "v${version}";
hash = "sha256-3MClDt1ttTfhD3OLXIt1OUE6JOyKcozEMn9by1WPsPw=";
hash = "sha256-prmMj8tVOm9P5EKkenero4YM9ccVU3JskTiHjup0oeQ=";
};
cargoHash = "sha256-P4NDgWA0+jclu0S/gQ+/pkaPE7hjBNMzG3ZQZo1ZwZ8=";
cargoHash = "sha256-OBbLWsG22Rs4veQRDUgoFKcMnOKNOxK6rqBah8y3CnY=";
meta = with lib; {
description = "Source code spell checker";

View file

@ -7,22 +7,22 @@
let
pname = "osu-lazer-bin";
version = "2023.1221.0";
version = "2023.1224.0";
src = {
aarch64-darwin = fetchzip {
url = "https://github.com/ppy/osu/releases/download/${version}/osu.app.Apple.Silicon.zip";
hash = "sha256-viurUlCdPU2Jo5IzEfq+As1mW6GI6LZsKocnkgMvsGU=";
hash = "sha256-6+Ddar9uu/0U0H/rvs0J3v+BfNHtDnJbnjmzRt5zYlc=";
stripRoot = false;
};
x86_64-darwin = fetchzip {
url = "https://github.com/ppy/osu/releases/download/${version}/osu.app.Intel.zip";
hash = "sha256-fbOqySfBomVoWZvMFWhPAi/cWaH5akRdeMIxBJcFXdg=";
hash = "sha256-TJR0GpMEL3Gu+cQZMI7rwdeY0rm5CIbhIJ1AG653csg=";
stripRoot = false;
};
x86_64-linux = fetchurl {
url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
hash = "sha256-Flxwh4Jlb60joJ/VYVevw4So612Cnyy1gPnJ7tTKxV0=";
hash = "sha256-4kwRTgkiLWbDxR+KTc6pyULKLS2wDKNC4BO6OhysijI=";
};
}.${stdenv.system} or (throw "${pname}-${version}: ${stdenv.system} is unsupported.");

View file

@ -16,13 +16,13 @@
buildDotnetModule rec {
pname = "osu-lazer";
version = "2023.1221.0";
version = "2023.1224.0";
src = fetchFromGitHub {
owner = "ppy";
repo = "osu";
rev = version;
sha256 = "sha256-iIyJQCi16Gf4knej+tZq5f92G9NX0ZLC6q/llAYwlLU=";
sha256 = "sha256-o/I8f0aYM9FnMuRF6+Yk2DH20EwgzbLwvl4lqPPPJUk=";
};
projectFile = "osu.Desktop/osu.Desktop.csproj";

View file

@ -23,11 +23,11 @@
stdenv.mkDerivation (finalAttrs: {
pname = "pdns";
version = "4.8.3";
version = "4.8.4";
src = fetchurl {
url = "https://downloads.powerdns.com/releases/pdns-${finalAttrs.version}.tar.bz2";
hash = "sha256-d7kRmb33GHQzRQHGfiZGnCZno3PYQjgD/mV0Fylcd7o=";
hash = "sha256-f0DIy8RlDQb+Sau6eZAuurs4Q2Pau9XO8nGWSgfDZFw=";
};
# redact configure flags from version output to reduce closure size
patches = [ ./version.patch ];

View file

@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, postgresql }:
{ lib, stdenv, fetchFromGitHub, postgresql, postgresqlTestHook }:
stdenv.mkDerivation rec {
pname = "plpgsql_check";
version = "2.7.0";
pname = "plpgsql-check";
version = "2.7.1";
src = fetchFromGitHub {
owner = "okbob";
repo = pname;
repo = "plpgsql_check";
rev = "v${version}";
hash = "sha256-DSBr2pmJD/kW1b4nqCTS4KwAAH6eojDmE/RVwvSIAa0=";
hash = "sha256-2SOBisIElNqqg5NwFk+pp7sE/+OvTifJUKMWOaOvO3k=";
};
buildInputs = [ postgresql ];
@ -19,6 +19,22 @@ stdenv.mkDerivation rec {
install -D -t $out/share/postgresql/extension *.control
'';
passthru.tests.extension = stdenv.mkDerivation {
name = "plpgsql-check-test";
dontUnpack = true;
doCheck = true;
buildInputs = [ postgresqlTestHook ];
nativeCheckInputs = [ (postgresql.withPackages (ps: [ ps.plpgsql_check ])) ];
postgresqlTestUserOptions = "LOGIN SUPERUSER";
failureHook = "postgresqlStop";
checkPhase = ''
runHook preCheck
psql -a -v ON_ERROR_STOP=1 -c "CREATE EXTENSION plpgsql_check;"
runHook postCheck
'';
installPhase = "touch $out";
};
meta = with lib; {
description = "Linter tool for language PL/pgSQL";
homepage = "https://github.com/okbob/plpgsql_check";

View file

@ -12,13 +12,13 @@
stdenv.mkDerivation rec {
pname = "whisper-cpp";
version = "1.4.2";
version = "1.5.2";
src = fetchFromGitHub {
owner = "ggerganov";
repo = "whisper.cpp";
rev = "refs/tags/v${version}" ;
hash = "sha256-Qea9zGLJ41D+l8h1Sg/KJI6Ou02jtbRIxYPGoabM8nY=";
hash = "sha256-7pJbROifDajBJUE07Nz8tARB901fWCB+TS4okcnEsvc=";
};
# The upstream download script tries to download the models to the
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
WHISPER_COREML_ALLOW_FALLBACK = "1";
};
makeFlags = [ "main" "stream" ];
makeFlags = [ "main" "stream" "command" ];
installPhase = ''
runHook preInstall
@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp ./main $out/bin/whisper-cpp
cp ./stream $out/bin/whisper-cpp-stream
cp ./command $out/bin/whisper-cpp-command
cp models/download-ggml-model.sh $out/bin/whisper-cpp-download-ggml-model

View file

@ -19,18 +19,18 @@ index 749b409..831f4c0 100755
-models_path="$(get_script_path)"
-
# Whisper models
models=( "tiny.en" "tiny" "base.en" "base" "small.en" "small" "medium.en" "medium" "large-v1" "large" )
@@ -54,8 +42,6 @@ fi
models=(
"tiny.en"
@@ -82,8 +70,6 @@ fi
printf "Downloading ggml model $model from '$src' ...\n"
-cd $models_path
-cd "$models_path"
-
if [ -f "ggml-$model.bin" ]; then
printf "Model $model already exists. Skipping download.\n"
exit 0
@@ -77,7 +63,7 @@ if [ $? -ne 0 ]; then
@@ -105,7 +91,7 @@ if [ $? -ne 0 ]; then
exit 1
fi

View file

@ -19,6 +19,10 @@ stdenv.mkDerivation rec {
installManPage gen6dns.1
'';
configureFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"ac_cv_func_malloc_0_nonnull=yes"
];
makeFlags = [ "INSTALL_DIR=$(out)/bin" ];
meta = with lib; {

View file

@ -5,11 +5,11 @@
stdenv.mkDerivation rec {
pname = "traceroute";
version = "2.1.3";
version = "2.1.5";
src = fetchurl {
url = "mirror://sourceforge/traceroute/${pname}-${version}.tar.gz";
sha256 = "sha256-BevHq6KKkQD5u65Uzuy/dcgsz0a9/Oi11kgGRZp+BBI=";
sha256 = "sha256-nGwmDZbqq1HjzkYbCoT+hxI+vG3WyaWfq4A/lbNahZ4=";
};
makeFlags = [

View file

@ -19,13 +19,13 @@ let
libtokencap = callPackage ./libtokencap.nix { inherit aflplusplus; };
aflplusplus = stdenvNoCC.mkDerivation rec {
pname = "aflplusplus";
version = "4.08c";
version = "4.09c";
src = fetchFromGitHub {
owner = "AFLplusplus";
repo = "AFLplusplus";
rev = "v${version}";
sha256 = "sha256-r1elJlvGuVrMFLECYCfMsZVEJcCPYRdkljMbF4uRHQY=";
sha256 = "sha256-SQQJpR3+thi4iyrowkOD878nRHNgBJqqUdRFhtqld4k=";
};
enableParallelBuilding = true;

View file

@ -5,20 +5,16 @@
buildGoModule rec {
pname = "earlybird";
version = "3.16.0";
version = "4.0.0";
src = fetchFromGitHub {
owner = "americanexpress";
repo = "earlybird";
rev = "v${version}";
hash = "sha256-qSW8O13UW5L2eVsqIuqOguhCyZBPqevZ9fJ7qkraa7M=";
hash = "sha256-guSm/ha4ICaOcoynvAwFeojE6ikaCykMcdfskD/ehTw=";
};
patches = [
./fix-go.mod-dependency.patch
];
vendorHash = "sha256-ktsQvWc0CTnqOer+9cc0BddrQp0F3Xk7YJP3jxfuw1w=";
vendorHash = "sha256-39jXqCXAwg/C+9gEXiS1X58OD61nMNQifnhgVGEF6ck=";
ldflags = [ "-s" "-w" ];

View file

@ -1,13 +0,0 @@
--- a/go.mod
+++ b/go.mod
@@ -42,8 +42,9 @@ require (
github.com/src-d/gcfg v1.4.0 // indirect
github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf // indirect
github.com/xanzy/ssh-agent v0.2.1 // indirect
- golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 // indirect
+ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
golang.org/x/sys v0.0.0-20220906165534-d0df966e6959 // indirect
+ golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
google.golang.org/protobuf v1.23.0 // indirect
gopkg.in/src-d/go-billy.v4 v4.3.2 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect

View file

@ -13830,6 +13830,18 @@ self: super: with self; {
succulent = callPackage ../development/python-modules/succulent { };
sudachidict-core = callPackage ../development/python-modules/sudachidict { };
sudachidict-full = callPackage ../development/python-modules/sudachidict {
sudachidict = pkgs.sudachidict.override { dict-type = "full"; };
};
sudachidict-small = callPackage ../development/python-modules/sudachidict {
sudachidict = pkgs.sudachidict.override { dict-type = "small"; };
};
sudachipy = callPackage ../development/python-modules/sudachipy { };
sumo = callPackage ../development/python-modules/sumo { };
sumtypes = callPackage ../development/python-modules/sumtypes { };