Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2024-09-24 12:05:42 +00:00 committed by GitHub
commit 6ef8ec38ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
137 changed files with 3897 additions and 1898 deletions

View File

@ -114,6 +114,7 @@ middleclass,,,,,,
mimetypes,,,,,,
mpack,,,,,,
moonscript,https://raw.githubusercontent.com/leafo/moonscript/master/moonscript-dev-1.rockspec,,,,,arobyn
neorg,,,,,,GaetanLepage
neotest,,,,,,mrcjkb
nlua,,,,,,teto
nui.nvim,,,,,,mrcjkb

1 name rockspec ref server version luaversion maintainers
114 mimetypes
115 mpack
116 moonscript https://raw.githubusercontent.com/leafo/moonscript/master/moonscript-dev-1.rockspec arobyn
117 neorg GaetanLepage
118 neotest mrcjkb
119 nlua teto
120 nui.nvim mrcjkb

View File

@ -565,6 +565,7 @@ with lib.maintainers;
linux-kernel = {
members = [
TredwellGit
k900
ma27
nequissimus
qyliss

View File

@ -153,6 +153,8 @@
- [Dependency Track](https://dependencytrack.org/), an intelligent Component Analysis platform that allows organizations to identify and reduce risk in the software supply chain. Available as [services.dependency-track](option.html#opt-services.dependency-track).
- [Immich](https://github.com/immich-app/immich), a self-hosted photo and video backup solution. Available as [services.immich](#opt-services.immich.enable).
## Backward Incompatibilities {#sec-release-24.11-incompatibilities}
- `transmission` package has been aliased with a `trace` warning to `transmission_3`. Since [Transmission 4 has been released last year](https://github.com/transmission/transmission/releases/tag/4.0.0), and Transmission 3 will eventually go away, it was decided perform this warning alias to make people aware of the new version. The `services.transmission.package` defaults to `transmission_3` as well because the upgrade can cause data loss in certain specific usage patterns (examples: [#5153](https://github.com/transmission/transmission/issues/5153), [#6796](https://github.com/transmission/transmission/issues/6796)). Please make sure to back up to your data directory per your usage:
@ -499,6 +501,8 @@
place. The GUI components related to the project are non-free and not
packaged.
- Compatible string matching for `hardware.deviceTree.overlays` has been changed to a more correct behavior. See [below](#sec-release-24.11-migration-dto-compatible) for details.
## Other Notable Changes {#sec-release-24.11-notable-changes}
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
@ -623,3 +627,22 @@ in {
];
};
```
### `hardware.deviceTree.overlays` compatible string matching {#sec-release-24.11-migration-dto-compatible}
The original compatible string implementation in older NixOS versions relied on substring matching,
which is incorrect for overlays with multiple compatible strings and other cases.
The new behavior is consistent with what other tools already do - the overlay is considered applicable if,
and only if, _any_ of the compatible strings in the overlay match _any_ of the compatible strings in the DT.
To provide some examples:
| Overlay `compatible` | DT `compatible` | Pre-24.11 behavior | Correct behavior | Notes |
|----------------------|-----------------|--------------------|------------------|--------------------------------------------|
| `"foo"` | `"foo", "bar"` | match | match | Most common use case does not change |
| `"foo"` | `"foobar"` | match | no match | Substrings should not be matched |
| `"foo bar"` | `"foo", "bar"` | match | no match | Separators should not be matched to spaces |
| `"foo", "bar"` | `"baz", "bar"` | no match | match | One compatible string matching is enough |
Note that this also allows writing overlays that explicitly apply to multiple boards.

View File

@ -216,7 +216,7 @@ in
imports = let
mkToolModule = { name, package ? pkgs.${name} }: { config, ... }: {
options.system.tools.${name}.enable = lib.mkEnableOption "${name} script" // {
default = true;
default = config.nix.enable;
internal = true;
};

View File

@ -1430,6 +1430,7 @@
./services/web-apps/icingaweb2/icingaweb2.nix
./services/web-apps/icingaweb2/module-monitoring.nix
./services/web-apps/ifm.nix
./services/web-apps/immich.nix
./services/web-apps/invidious.nix
./services/web-apps/invoiceplane.nix
./services/web-apps/isso.nix

View File

@ -0,0 +1,311 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.services.immich;
isPostgresUnixSocket = lib.hasPrefix "/" cfg.database.host;
isRedisUnixSocket = lib.hasPrefix "/" cfg.redis.host;
commonServiceConfig = {
Type = "simple";
Restart = "on-failure";
RestartSec = 3;
# Hardening
CapabilityBoundingSet = "";
NoNewPrivileges = true;
PrivateUsers = true;
PrivateTmp = true;
PrivateDevices = true;
PrivateMounts = true;
ProtectClock = true;
ProtectControlGroups = true;
ProtectHome = true;
ProtectHostname = true;
ProtectKernelLogs = true;
ProtectKernelModules = true;
ProtectKernelTunables = true;
RestrictAddressFamilies = [
"AF_INET"
"AF_INET6"
"AF_UNIX"
];
RestrictNamespaces = true;
RestrictRealtime = true;
RestrictSUIDSGID = true;
};
inherit (lib)
types
mkIf
mkOption
mkEnableOption
;
in
{
options.services.immich = {
enable = mkEnableOption "Immich";
package = lib.mkPackageOption pkgs "immich" { };
mediaLocation = mkOption {
type = types.path;
default = "/var/lib/immich";
description = "Directory used to store media files. If it is not the default, the directory has to be created manually such that the immich user is able to read and write to it.";
};
environment = mkOption {
type = types.submodule { freeformType = types.attrsOf types.str; };
default = { };
example = {
IMMICH_LOG_LEVEL = "verbose";
};
description = ''
Extra configuration environment variables. Refer to the [documentation](https://immich.app/docs/install/environment-variables) for options tagged with 'server', 'api' or 'microservices'.
'';
};
secretsFile = mkOption {
type = types.nullOr (
types.str
// {
# We don't want users to be able to pass a path literal here but
# it should look like a path.
check = it: lib.isString it && lib.types.path.check it;
}
);
default = null;
example = "/run/secrets/immich";
description = ''
Path of a file with extra environment variables to be loaded from disk. This file is not added to the nix store, so it can be used to pass secrets to immich. Refer to the [documentation](https://immich.app/docs/install/environment-variables) for options.
To set a database password set this to a file containing:
```
DB_PASSWORD=<pass>
```
'';
};
host = mkOption {
type = types.str;
default = "localhost";
description = "The host that immich will listen on.";
};
port = mkOption {
type = types.port;
default = 3001;
description = "The port that immich will listen on.";
};
openFirewall = mkOption {
type = types.bool;
default = false;
description = "Whether to open the immich port in the firewall";
};
user = mkOption {
type = types.str;
default = "immich";
description = "The user immich should run as.";
};
group = mkOption {
type = types.str;
default = "immich";
description = "The group immich should run as.";
};
machine-learning = {
enable =
mkEnableOption "immich's machine-learning functionality to detect faces and search for objects"
// {
default = true;
};
environment = mkOption {
type = types.submodule { freeformType = types.attrsOf types.str; };
default = { };
example = {
MACHINE_LEARNING_MODEL_TTL = "600";
};
description = ''
Extra configuration environment variables. Refer to the [documentation](https://immich.app/docs/install/environment-variables) for options tagged with 'machine-learning'.
'';
};
};
database = {
enable =
mkEnableOption "the postgresql database for use with immich. See {option}`services.postgresql`"
// {
default = true;
};
createDB = mkEnableOption "the automatic creation of the database for immich." // {
default = true;
};
name = mkOption {
type = types.str;
default = "immich";
description = "The name of the immich database.";
};
host = mkOption {
type = types.str;
default = "/run/postgresql";
example = "127.0.0.1";
description = "Hostname or address of the postgresql server. If an absolute path is given here, it will be interpreted as a unix socket path.";
};
user = mkOption {
type = types.str;
default = "immich";
description = "The database user for immich.";
};
};
redis = {
enable = mkEnableOption "a redis cache for use with immich" // {
default = true;
};
host = mkOption {
type = types.str;
default = config.services.redis.servers.immich.unixSocket;
defaultText = lib.literalExpression "config.services.redis.servers.immich.unixSocket";
description = "The host that redis will listen on.";
};
port = mkOption {
type = types.port;
default = 0;
description = "The port that redis will listen on. Set to zero to disable TCP.";
};
};
};
config = mkIf cfg.enable {
assertions = [
{
assertion = !isPostgresUnixSocket -> cfg.secretsFile != null;
message = "A secrets file containing at least the database password must be provided when unix sockets are not used.";
}
];
services.postgresql = mkIf cfg.database.enable {
enable = true;
ensureDatabases = mkIf cfg.database.createDB [ cfg.database.name ];
ensureUsers = mkIf cfg.database.createDB [
{
name = cfg.database.user;
ensureDBOwnership = true;
ensureClauses.login = true;
}
];
extraPlugins = ps: with ps; [ pgvecto-rs ];
settings = {
shared_preload_libraries = [ "vectors.so" ];
search_path = "\"$user\", public, vectors";
};
};
systemd.services.postgresql.serviceConfig.ExecStartPost =
let
sqlFile = pkgs.writeText "immich-pgvectors-setup.sql" ''
CREATE EXTENSION IF NOT EXISTS unaccent;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS vectors;
CREATE EXTENSION IF NOT EXISTS cube;
CREATE EXTENSION IF NOT EXISTS earthdistance;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
ALTER SCHEMA public OWNER TO ${cfg.database.user};
ALTER SCHEMA vectors OWNER TO ${cfg.database.user};
GRANT SELECT ON TABLE pg_vector_index_stat TO ${cfg.database.user};
ALTER EXTENSION vectors UPDATE;
'';
in
[
''
${lib.getExe' config.services.postgresql.package "psql"} -d "${cfg.database.name}" -f "${sqlFile}"
''
];
services.redis.servers = mkIf cfg.redis.enable {
immich = {
enable = true;
user = cfg.user;
port = cfg.redis.port;
bind = mkIf (!isRedisUnixSocket) cfg.redis.host;
};
};
networking.firewall.allowedTCPPorts = mkIf cfg.openFirewall [ cfg.port ];
services.immich.environment =
let
postgresEnv =
if isPostgresUnixSocket then
{ DB_URL = "socket://${cfg.database.host}?dbname=${cfg.database.name}"; }
else
{
DB_HOSTNAME = cfg.database.host;
DB_PORT = toString cfg.database.port;
DB_DATABASE_NAME = cfg.database.name;
DB_USERNAME = cfg.database.user;
};
redisEnv =
if isRedisUnixSocket then
{ REDIS_SOCKET = cfg.redis.host; }
else
{
REDIS_PORT = toString cfg.redis.port;
REDIS_HOSTNAME = cfg.redis.host;
};
in
postgresEnv
// redisEnv
// {
HOST = cfg.host;
IMMICH_PORT = toString cfg.port;
IMMICH_MEDIA_LOCATION = cfg.mediaLocation;
IMMICH_MACHINE_LEARNING_URL = "http://localhost:3003";
};
services.immich.machine-learning.environment = {
MACHINE_LEARNING_WORKERS = "1";
MACHINE_LEARNING_WORKER_TIMEOUT = "120";
MACHINE_LEARNING_CACHE_FOLDER = "/var/cache/immich";
IMMICH_HOST = "localhost";
IMMICH_PORT = "3003";
};
systemd.services.immich-server = {
description = "Immich backend server (Self-hosted photo and video backup solution)";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
inherit (cfg) environment;
serviceConfig = commonServiceConfig // {
ExecStart = lib.getExe cfg.package;
EnvironmentFile = mkIf (cfg.secretsFile != null) cfg.secretsFile;
StateDirectory = "immich";
RuntimeDirectory = "immich";
User = cfg.user;
Group = cfg.group;
};
};
systemd.services.immich-machine-learning = mkIf cfg.machine-learning.enable {
description = "immich machine learning";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
inherit (cfg.machine-learning) environment;
serviceConfig = commonServiceConfig // {
ExecStart = lib.getExe cfg.package.machine-learning;
CacheDirectory = "immich";
User = cfg.user;
Group = cfg.group;
};
};
users.users = mkIf (cfg.user == "immich") {
immich = {
name = "immich";
group = cfg.group;
isSystemUser = true;
};
};
users.groups = mkIf (cfg.group == "immich") { immich = { }; };
meta.maintainers = with lib.maintainers; [ jvanbruegge ];
};
}

View File

@ -68,9 +68,19 @@ let
else showWarnings config.warnings baseSystem;
# Replace runtime dependencies
system = foldr ({ oldDependency, newDependency }: drv:
pkgs.replaceDependency { inherit oldDependency newDependency drv; }
) baseSystemAssertWarn config.system.replaceRuntimeDependencies;
system = let inherit (config.system.replaceDependencies) replacements cutoffPackages; in
if replacements == [] then
# Avoid IFD if possible, by sidestepping replaceDependencies if no replacements are specified.
baseSystemAssertWarn
else
(pkgs.replaceDependencies.override {
replaceDirectDependencies = pkgs.replaceDirectDependencies.override {
nix = config.nix.package;
};
}) {
drv = baseSystemAssertWarn;
inherit replacements cutoffPackages;
};
systemWithBuildDeps = system.overrideAttrs (o: {
systemBuildClosure = pkgs.closureInfo { rootPaths = [ system.drvPath ]; };
@ -87,6 +97,7 @@ in
(mkRemovedOptionModule [ "nesting" "clone" ] "Use `specialisation.«name» = { inheritParentConfig = true; configuration = { ... }; }` instead.")
(mkRemovedOptionModule [ "nesting" "children" ] "Use `specialisation.«name».configuration = { ... }` instead.")
(mkRenamedOptionModule [ "system" "forbiddenDependenciesRegex" ] [ "system" "forbiddenDependenciesRegexes" ])
(mkRenamedOptionModule [ "system" "replaceRuntimeDependencies" ] [ "system" "replaceDependencies" "replacements" ])
];
options = {
@ -205,31 +216,47 @@ in
'';
};
system.replaceRuntimeDependencies = mkOption {
default = [];
example = lib.literalExpression "[ ({ original = pkgs.openssl; replacement = pkgs.callPackage /path/to/openssl { }; }) ]";
type = types.listOf (types.submodule (
{ ... }: {
options.original = mkOption {
type = types.package;
description = "The original package to override.";
};
system.replaceDependencies = {
replacements = mkOption {
default = [];
example = lib.literalExpression "[ ({ oldDependency = pkgs.openssl; newDependency = pkgs.callPackage /path/to/openssl { }; }) ]";
type = types.listOf (types.submodule (
{ ... }: {
imports = [
(mkRenamedOptionModule [ "original" ] [ "oldDependency" ])
(mkRenamedOptionModule [ "replacement" ] [ "newDependency" ])
];
options.replacement = mkOption {
type = types.package;
description = "The replacement package.";
};
})
);
apply = map ({ original, replacement, ... }: {
oldDependency = original;
newDependency = replacement;
});
description = ''
List of packages to override without doing a full rebuild.
The original derivation and replacement derivation must have the same
name length, and ideally should have close-to-identical directory layout.
'';
options.oldDependency = mkOption {
type = types.package;
description = "The original package to override.";
};
options.newDependency = mkOption {
type = types.package;
description = "The replacement package.";
};
})
);
apply = map ({ oldDependency, newDependency, ... }: {
inherit oldDependency newDependency;
});
description = ''
List of packages to override without doing a full rebuild.
The original derivation and replacement derivation must have the same
name length, and ideally should have close-to-identical directory layout.
'';
};
cutoffPackages = mkOption {
default = [ config.system.build.initialRamdisk ];
defaultText = literalExpression "[ config.system.build.initialRamdisk ]";
type = types.listOf types.package;
description = ''
Packages to which no replacements should be applied.
The initrd is matched by default, because its structure renders the replacement process ineffective and prone to breakage.
'';
};
};
system.name = mkOption {

View File

@ -455,6 +455,7 @@ in {
icingaweb2 = handleTest ./icingaweb2.nix {};
ifm = handleTest ./ifm.nix {};
iftop = handleTest ./iftop.nix {};
immich = handleTest ./web-apps/immich.nix {};
incron = handleTest ./incron.nix {};
incus = pkgs.recurseIntoAttrs (handleTest ./incus { inherit handleTestOn; inherit (pkgs) incus; });
incus-lts = pkgs.recurseIntoAttrs (handleTest ./incus { inherit handleTestOn; });
@ -856,6 +857,7 @@ in {
redlib = handleTest ./redlib.nix {};
redmine = handleTest ./redmine.nix {};
renovate = handleTest ./renovate.nix {};
replace-dependencies = handleTest ./replace-dependencies {};
restartByActivationScript = handleTest ./restart-by-activation-script.nix {};
restic-rest-server = handleTest ./restic-rest-server.nix {};
restic = handleTest ./restic.nix {};

View File

@ -0,0 +1,19 @@
import ../make-test-python.nix (
{ pkgs, ... }:
{
name = "replace-dependencies";
meta.maintainers = with pkgs.lib.maintainers; [ alois31 ];
nodes.machine =
{ ... }:
{
nix.settings.experimental-features = [ "ca-derivations" ];
system.extraDependencies = [ pkgs.stdenvNoCC ];
};
testScript = ''
start_all()
machine.succeed("nix-build --option substitute false ${pkgs.path}/nixos/tests/replace-dependencies/guest.nix")
'';
}
)

View File

@ -0,0 +1,149 @@
# This needs to be run in a NixOS test, because Hydra cannot do IFD.
let
pkgs = import ../../.. { };
inherit (pkgs)
runCommand
writeShellScriptBin
replaceDependency
replaceDependencies
;
inherit (pkgs.lib) escapeShellArg;
mkCheckOutput =
name: test: output:
runCommand name { } ''
actualOutput="$(${escapeShellArg "${test}/bin/test"})"
if [ "$(${escapeShellArg "${test}/bin/test"})" != ${escapeShellArg output} ]; then
echo >&2 "mismatched output: expected \""${escapeShellArg output}"\", got \"$actualOutput\""
exit 1
fi
touch "$out"
'';
oldDependency = writeShellScriptBin "dependency" ''
echo "got old dependency"
'';
oldDependency-ca = oldDependency.overrideAttrs { __contentAddressed = true; };
newDependency = writeShellScriptBin "dependency" ''
echo "got new dependency"
'';
newDependency-ca = newDependency.overrideAttrs { __contentAddressed = true; };
basic = writeShellScriptBin "test" ''
${oldDependency}/bin/dependency
'';
basic-ca = writeShellScriptBin "test" ''
${oldDependency-ca}/bin/dependency
'';
transitive = writeShellScriptBin "test" ''
${basic}/bin/test
'';
weirdDependency = writeShellScriptBin "dependency" ''
echo "got weird dependency"
${basic}/bin/test
'';
oldDependency1 = writeShellScriptBin "dependency1" ''
echo "got old dependency 1"
'';
newDependency1 = writeShellScriptBin "dependency1" ''
echo "got new dependency 1"
'';
oldDependency2 = writeShellScriptBin "dependency2" ''
${oldDependency1}/bin/dependency1
echo "got old dependency 2"
'';
newDependency2 = writeShellScriptBin "dependency2" ''
${oldDependency1}/bin/dependency1
echo "got new dependency 2"
'';
deep = writeShellScriptBin "test" ''
${oldDependency2}/bin/dependency2
'';
in
{
replacedependency-basic = mkCheckOutput "replacedependency-basic" (replaceDependency {
drv = basic;
inherit oldDependency newDependency;
}) "got new dependency";
replacedependency-basic-old-ca = mkCheckOutput "replacedependency-basic" (replaceDependency {
drv = basic-ca;
oldDependency = oldDependency-ca;
inherit newDependency;
}) "got new dependency";
replacedependency-basic-new-ca = mkCheckOutput "replacedependency-basic" (replaceDependency {
drv = basic;
inherit oldDependency;
newDependency = newDependency-ca;
}) "got new dependency";
replacedependency-transitive = mkCheckOutput "replacedependency-transitive" (replaceDependency {
drv = transitive;
inherit oldDependency newDependency;
}) "got new dependency";
replacedependency-weird =
mkCheckOutput "replacedependency-weird"
(replaceDependency {
drv = basic;
inherit oldDependency;
newDependency = weirdDependency;
})
''
got weird dependency
got old dependency'';
replacedependencies-precedence = mkCheckOutput "replacedependencies-precedence" (replaceDependencies
{
drv = basic;
replacements = [ { inherit oldDependency newDependency; } ];
cutoffPackages = [ oldDependency ];
}
) "got new dependency";
replacedependencies-self = mkCheckOutput "replacedependencies-self" (replaceDependencies {
drv = basic;
replacements = [
{
inherit oldDependency;
newDependency = oldDependency;
}
];
}) "got old dependency";
replacedependencies-deep-order1 =
mkCheckOutput "replacedependencies-deep-order1"
(replaceDependencies {
drv = deep;
replacements = [
{
oldDependency = oldDependency1;
newDependency = newDependency1;
}
{
oldDependency = oldDependency2;
newDependency = newDependency2;
}
];
})
''
got new dependency 1
got new dependency 2'';
replacedependencies-deep-order2 =
mkCheckOutput "replacedependencies-deep-order2"
(replaceDependencies {
drv = deep;
replacements = [
{
oldDependency = oldDependency2;
newDependency = newDependency2;
}
{
oldDependency = oldDependency1;
newDependency = newDependency1;
}
];
})
''
got new dependency 1
got new dependency 2'';
}

View File

@ -0,0 +1,51 @@
import ../make-test-python.nix (
{ ... }:
{
name = "immich-nixos";
nodes.machine =
{ pkgs, ... }:
{
# These tests need a little more juice
virtualisation = {
cores = 2;
memorySize = 2048;
diskSize = 4096;
};
environment.systemPackages = with pkgs; [ immich-cli ];
services.immich = {
enable = true;
environment.IMMICH_LOG_LEVEL = "verbose";
};
};
testScript = ''
import json
machine.wait_for_unit("immich-server.service")
machine.wait_for_open_port(3001) # Server
machine.wait_for_open_port(3003) # Machine learning
machine.succeed("curl --fail http://localhost:3001/")
machine.succeed("""
curl -H 'Content-Type: application/json' --data '{ "email": "test@example.com", "name": "Admin", "password": "admin" }' -X POST http://localhost:3001/api/auth/admin-sign-up
""")
res = machine.succeed("""
curl -H 'Content-Type: application/json' --data '{ "email": "test@example.com", "password": "admin" }' -X POST http://localhost:3001/api/auth/login
""")
token = json.loads(res)['accessToken']
res = machine.succeed("""
curl -H 'Content-Type: application/json' -H 'Cookie: immich_access_token=%s' --data '{ "name": "API Key", "permissions": ["all"] }' -X POST http://localhost:3001/api/api-keys
""" % token)
key = json.loads(res)['secret']
machine.succeed(f"immich login http://localhost:3001/api {key}")
res = machine.succeed("immich server-info")
print(res)
'';
}
)

View File

@ -31,3 +31,12 @@ The file can either be a tar file or an Emacs Lisp file."
;; Allow installing package tarfiles larger than 10MB
(setq large-file-warning-threshold nil)
(let ((flag (getenv "turnCompilationWarningToError")))
(when (and flag
(not (string-empty-p flag)))
(setq byte-compile-error-on-warn t)))
(let ((flag (getenv "ignoreCompilationError")))
(when (string-empty-p flag)
(setq byte-compile-debug t)))

View File

@ -64,6 +64,8 @@ libBuildHelper.extendMkDerivation' stdenv.mkDerivation (finalAttrs:
setupHook = args.setupHook or setupHook;
inherit turnCompilationWarningToError ignoreCompilationError;
meta = {
broken = false;
platforms = emacs.meta.platforms;
@ -76,8 +78,6 @@ libBuildHelper.extendMkDerivation' stdenv.mkDerivation (finalAttrs:
addEmacsNativeLoadPath = args.addEmacsNativeLoadPath or true;
inherit turnCompilationWarningToError ignoreCompilationError;
postInstall = ''
# Besides adding the output directory to the native load path, make sure
# the current package's elisp files are in the load path, otherwise

View File

@ -4,6 +4,14 @@ self: super:
let
libExt = pkgs.stdenv.hostPlatform.extensions.sharedLibrary;
inherit (import ./lib-override-helper.nix pkgs lib)
addPackageRequires
addPackageRequiresIfOlder
ignoreCompilationError
ignoreCompilationErrorIfOlder
mkHome
mkHomeIfOlder
;
in
{
cl-lib = null; # builtin
@ -54,6 +62,64 @@ in
}
);
# native-compiler-error-empty-byte in old versions
ada-ref-man = ignoreCompilationErrorIfOlder super.ada-ref-man "2020.1.0.20201129.190419";
# elisp error in old versions
ampc = ignoreCompilationErrorIfOlder super.ampc "0.2.0.20240220.181558";
auctex = mkHome super.auctex;
auctex-cont-latexmk = mkHome super.auctex-cont-latexmk;
auctex-label-numbers = mkHome super.auctex-label-numbers;
# missing optional dependencies https://codeberg.org/rahguzar/consult-hoogle/issues/4
consult-hoogle = addPackageRequiresIfOlder super.consult-hoogle [ self.consult ] "0.2.2";
# missing optional dependencies https://github.com/jacksonrayhamilton/context-coloring/issues/10
context-coloring = addPackageRequires super.context-coloring [ self.js2-mode ];
cpio-mode = ignoreCompilationError super.cpio-mode; # elisp error
# fixed in https://git.savannah.gnu.org/cgit/emacs/elpa.git/commit/?h=externals/dbus-codegen&id=cfc46758c6252a602eea3dbc179f8094ea2a1a85
dbus-codegen = ignoreCompilationErrorIfOlder super.dbus-codegen "0.1.0.20201127.221326"; # elisp error
ebdb = super.ebdb.overrideAttrs (
finalAttrs: previousAttrs:
let
applyOrgRoamMissingPatch = lib.versionOlder finalAttrs.version "0.8.22.0.20240205.070828";
in
{
dontUnpack = !applyOrgRoamMissingPatch;
patches =
if applyOrgRoamMissingPatch then
previousAttrs.patches or [ ]
++ [
(pkgs.fetchpatch {
name = "fix-comilation-error-about-missing-org-roam.patch";
url = "https://github.com/girzel/ebdb/commit/058f30a996eb9074feac8f94db4eb49e85ae08f1.patch";
hash = "sha256-UI72N3lCgro6bG75sWnbw9truREToQHEzZ1TeQAIMjo=";
})
]
else
previousAttrs.patches or null;
preBuild =
if applyOrgRoamMissingPatch then
previousAttrs.preBuild or ""
+ "\n"
+ ''
pushd ..
local content_directory=$ename-$version
src=$PWD/$content_directory.tar
tar --create --verbose --file=$src $content_directory
popd
''
else
previousAttrs.preBuild or null;
}
);
eglot = super.eglot.overrideAttrs (
finalAttrs: previousAttrs: {
postInstall =
@ -99,6 +165,29 @@ in
};
});
notes-mode = (mkHome super.notes-mode).overrideAttrs (old: {
dontUnpack = false;
buildInputs = old.buildInputs or [ ] ++ [ pkgs.perl ];
nativeBuildInputs = old.nativeBuildInputs or [ ] ++ [ pkgs.perl ];
preInstall =
old.preInstall or ""
+ "\n"
+ ''
patchShebangs --build mkconfig
pushd ..
local content_directory=$ename-$version
src=$PWD/$content_directory.tar
tar --create --verbose --file=$src $content_directory
popd
'';
postFixup =
old.postFixup or ""
+ "\n"
+ ''
patchShebangs --host --update $out/share/emacs/site-lisp/elpa/$ename-$version/mkconfig
'';
});
plz = super.plz.overrideAttrs (old: {
dontUnpack = false;
postPatch =
@ -117,10 +206,24 @@ in
'';
});
# https://sourceware.org/bugzilla/show_bug.cgi?id=32185
poke = addPackageRequires super.poke [ self.poke-mode ];
pq = super.pq.overrideAttrs (old: {
buildInputs = old.buildInputs or [ ] ++ [ pkgs.postgresql ];
});
preview-auto = mkHome super.preview-auto;
preview-tailor = mkHome super.preview-tailor;
psgml = ignoreCompilationError super.psgml; # elisp error
# native-ice https://github.com/mattiase/relint/issues/15
relint = ignoreCompilationError super.relint;
shen-mode = ignoreCompilationErrorIfOlder super.shen-mode "0.1.0.20221221.82050"; # elisp error
# native compilation for tests/seq-tests.el never ends
# delete tests/seq-tests.el to workaround this
seq = super.seq.overrideAttrs (old: {
@ -136,6 +239,26 @@ in
'';
});
# https://github.com/alphapapa/taxy.el/issues/3
taxy = super.taxy.overrideAttrs (old: {
dontUnpack = false;
postUnpack =
old.postUnpack or ""
+ "\n"
+ ''
local content_directory=$ename-$version
rm --verbose --recursive $content_directory/examples
src=$PWD/$content_directory.tar
tar --create --verbose --file=$src $content_directory
'';
});
tex-parens = mkHomeIfOlder super.tex-parens "0.4.0.20240630.70456";
timerfunctions = ignoreCompilationErrorIfOlder super.timerfunctions "1.4.2.0.20201129.225252";
wisitoken-grammar-mode = ignoreCompilationError super.wisitoken-grammar-mode; # elisp error
xeft = super.xeft.overrideAttrs (old: {
dontUnpack = false;
buildInputs = old.buildInputs or [ ] ++ [ pkgs.xapian ];
@ -153,4 +276,7 @@ in
rm $outd/xapian-lite.cc $outd/emacs-module.h $outd/emacs-module-prelude.h $outd/demo.gif $outd/Makefile
'';
});
# native-ice https://github.com/mattiase/xr/issues/9
xr = ignoreCompilationError super.xr;
}

View File

@ -26,7 +26,7 @@ formats commits for you.
self: let
inherit (import ./lib-override-helper.nix pkgs)
inherit (import ./lib-override-helper.nix pkgs lib)
markBroken
;

View File

@ -26,7 +26,7 @@ formats commits for you.
self: let
inherit (import ./lib-override-helper.nix pkgs)
inherit (import ./lib-override-helper.nix pkgs lib)
markBroken
;

View File

@ -1,6 +1,27 @@
pkgs:
pkgs: lib:
rec {
addPackageRequires =
pkg: packageRequires: addPackageRequiresWhen pkg packageRequires (finalAttrs: previousAttrs: true);
addPackageRequiresIfOlder =
pkg: packageRequires: version:
addPackageRequiresWhen pkg packageRequires (
finalAttrs: previousAttrs: lib.versionOlder finalAttrs.version version
);
addPackageRequiresWhen =
pkg: packageRequires: predicate:
pkg.overrideAttrs (
finalAttrs: previousAttrs: {
packageRequires =
if predicate finalAttrs previousAttrs then
previousAttrs.packageRequires or [ ] ++ packageRequires
else
previousAttrs.packageRequires or null;
}
);
buildWithGit =
pkg:
pkg.overrideAttrs (previousAttrs: {
@ -18,6 +39,34 @@ rec {
fix-rtags = pkg: dontConfigure (externalSrc pkg pkgs.rtags);
fixRequireHelmCore =
pkg:
pkg.overrideAttrs (previousAttrs: {
postPatch =
previousAttrs.postPatch or ""
+ "\n"
+ ''
substituteInPlace $ename.el \
--replace-fail "(require 'helm)" "(require 'helm-core)"
'';
});
ignoreCompilationError = pkg: ignoreCompilationErrorWhen pkg (finalAttrs: previousAttrs: true);
ignoreCompilationErrorIfOlder =
pkg: version:
ignoreCompilationErrorWhen pkg (
finalAttrs: previousAttrs: lib.versionOlder finalAttrs.version version
);
ignoreCompilationErrorWhen =
pkg: predicate:
pkg.overrideAttrs (
finalAttrs: previousAttrs: {
ignoreCompilationError = predicate finalAttrs previousAttrs;
}
);
markBroken =
pkg:
pkg.overrideAttrs (previousAttrs: {
@ -26,13 +75,24 @@ rec {
};
});
mkHome =
pkg:
pkg.overrideAttrs (previousAttrs: {
preInstall =
''
HOME=$(mktemp -d)
''
+ previousAttrs.preInstall or "";
});
mkHome = pkg: mkHomeWhen pkg (finalAttrs: previousAttrs: true);
mkHomeIfOlder =
pkg: version:
mkHomeWhen pkg (finalAttrs: previousAttrs: lib.versionOlder finalAttrs.version version);
mkHomeWhen =
pkg: predicate:
pkg.overrideAttrs (
finalAttrs: previousAttrs: {
preInstall =
if predicate finalAttrs previousAttrs then
''
HOME=$(mktemp -d)
''
+ previousAttrs.preInstall or ""
else
previousAttrs.preInstall or null;
}
);
}

View File

@ -23,8 +23,6 @@ melpaBuild {
popon
];
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -15,8 +15,6 @@ melpaBuild {
files = ''("acm/*.el" "acm/icons")'';
ignoreCompilationError = false;
meta = {
description = "Asynchronous Completion Menu";
homepage = "https://github.com/manateelazycat/lsp-bridge";

View File

@ -8,8 +8,6 @@ melpaBuild {
files = ''("src/data/emacs-mode/*.el")'';
ignoreCompilationError = false;
meta = {
inherit (Agda.meta) homepage license;
description = "Agda2-mode for Emacs extracted from Agda package";

View File

@ -46,8 +46,6 @@ melpaBuild (finalAttrs: {
shut-up
];
ignoreCompilationError = false;
strictDeps = true;
# use melpaVersion so that it works for unstable releases too

View File

@ -25,8 +25,6 @@ melpaBuild {
})
];
ignoreCompilationError = false;
passthru.updateScript = gitUpdater { };
meta = {

View File

@ -16,6 +16,9 @@ melpaBuild {
hash = "sha256-7E8r56dzfD06tsQEnqU5mWSbwz9x9QPbzken2J/fhlg=";
};
# https://github.com/NixOS/nixpkgs/issues/335408
ignoreCompilationError = true;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -30,8 +30,6 @@ melpaBuild {
propagatedUserEnvPkgs = [ gh ];
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { };
meta = {

View File

@ -13,8 +13,6 @@ melpaBuild {
hash = "sha256-JCrmS3FSGDHSR+eAR0X/uO0nAgd3TUmFxwEVH5+KV+4=";
};
ignoreCompilationError = false;
meta = {
homepage = "https://www.emacswiki.org/emacs/control-lock.el";
description = "Like caps-lock, but for your control key";

View File

@ -30,8 +30,6 @@ melpaBuild {
propagatedUserEnvPkgs = [ nodejs ];
ignoreCompilationError = false;
meta = {
description = "Unofficial copilot plugin for Emacs";
homepage = "https://github.com/copilot-emacs/copilot.el";

View File

@ -13,8 +13,6 @@ melpaBuild rec {
hash = "sha256-GFEDWT88Boz/DxEcmFgf7u2NOoMjAN05yRiYwoYtvXc=";
};
ignoreCompilationError = false;
meta = {
homepage = "https://gitweb.gentoo.org/proj/ebuild-mode.git/";
description = "Major modes for Gentoo package files";

View File

@ -21,8 +21,6 @@ melpaBuild {
files = ''(:defaults "msg")'';
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { tagPrefix = "v"; };
meta = {

View File

@ -29,8 +29,6 @@ melpaBuild {
make CXX=$CXX
'';
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { };
meta = {

View File

@ -16,8 +16,6 @@ melpaBuild {
hash = "sha256-DIGvnotSQYIgHxGxtyCALHd8ZbrfkmdvjLXlkcqQ6v4=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -23,8 +23,6 @@ melpaBuild {
markdown-mode
];
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -17,8 +17,6 @@ melpaBuild {
hash = "sha256-er+knxqAejgKAtOnhqHfsGN286biHFdeMIUlbW7JyYw=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { };
meta = {

View File

@ -16,8 +16,6 @@ melpaBuild {
hash = "sha256-xwVCAdxnIRHrFNWvtlM3u6CShsUiGgl1CiBTsp2x7IM=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -18,8 +18,6 @@ melpaBuild {
--replace-fail ";;; gn-mode.el - " ";;; gn-mode.el --- "
'';
ignoreCompilationError = false;
meta = {
inherit (gn.meta) homepage license;
maintainers = with lib.maintainers; [ rennsax ];

View File

@ -16,8 +16,6 @@ melpaBuild {
hash = "sha256-3QDw4W3FbFvb2zpkDHAo9BJKxs3LaehyvUVJPKqS9RE=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -22,8 +22,6 @@ melpaBuild {
helm
];
ignoreCompilationError = false;
meta = {
homepage = "https://github.com/emacsmirror/helm-words";
description = "Helm extension for looking up words in dictionaries and thesauri";

View File

@ -16,8 +16,6 @@ melpaBuild {
packageRequires = [ haskell-mode ];
ignoreCompilationError = false;
meta = {
inherit (hsc3.meta) homepage license;
description = "Emacs mode for hsc3";

View File

@ -16,8 +16,6 @@ melpaBuild {
hash = "sha256-Xbt0D9EgmvN1hDTeLbdxq1ARHObj8M4GfH2sbFILRTI=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -24,8 +24,6 @@ melpaBuild {
prop-menu
];
ignoreCompilationError = false;
passthru.updateScript = gitUpdater { };
meta = {

View File

@ -17,8 +17,6 @@ melpaBuild {
hash = "sha256-h/jkIWjkLFbtBp9F+lhA3CulYy2XaeloLmexR0CDm3E=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { };
meta = {

View File

@ -16,8 +16,6 @@ melpaBuild {
hash = "sha256-Xli7TxBenl5cDMJv3Qz7ZELFpvJKStMploLpf9a+uoA=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -27,8 +27,6 @@ melpaBuild rec {
mv tmp.el jam-mode.el
'';
ignoreCompilationError = false;
meta = {
description = "Emacs major mode for editing Jam files";
license = lib.licenses.gpl2Plus;

View File

@ -9,8 +9,6 @@ melpaBuild {
"llvm/utils/emacs/README")
'';
ignoreCompilationError = false;
meta = {
inherit (llvmPackages.llvm.meta) homepage license;
description = "Major mode for the LLVM assembler language";

View File

@ -86,8 +86,6 @@ melpaBuild {
__darwinAllowLocalNetworking = true;
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -24,8 +24,6 @@ melpaBuild {
# to compile lspce.el, it needs lspce-module.so
files = ''(:defaults "${lib.getLib lspce-module}/lib/lspce-module.*")'';
ignoreCompilationError = false;
passthru = {
inherit lspce-module;
updateScript = nix-update-script {

View File

@ -26,8 +26,6 @@ elpaBuild {
tar --create --verbose --file=$src $content_directory
'';
ignoreCompilationError = false;
meta = removeAttrs mu.meta [ "mainProgram" ] // {
description = "Full-featured e-mail client";
maintainers = mu.meta.maintainers ++ (with lib.maintainers; [ linj ]);

View File

@ -59,8 +59,6 @@ melpaBuild {
install -D --target-directory=$out/bin notdeft-xapian
'';
ignoreCompilationError = false;
passthru = {
updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
};

View File

@ -15,8 +15,6 @@ melpaBuild {
popd
'';
ignoreCompilationError = false;
meta = {
description = "Emacs ott mode (from ott sources)";
inherit (ott.meta) homepage license;

View File

@ -26,8 +26,6 @@ melpaBuild {
install -Dm644 -t ''${!outputDoc}/share/doc/pod-mode/ ChangeLog README
'';
ignoreCompilationError = false;
meta = {
homepage = "https://metacpan.org/dist/pod-mode";
description = "Major mode for editing .pod-files";

View File

@ -22,8 +22,6 @@ melpaBuild {
hash = "sha256-DJJfjbu27Gi7Nzsa1cdi8nIQowKH8ZxgQBwfXLB0Q/I=";
};
ignoreCompilationError = false;
meta = {
description = "Major mode for Prisma Schema Language";
license = lib.licenses.gpl2Only;

View File

@ -19,8 +19,6 @@ melpaBuild {
--replace-fail ";; prolog.el ---" ";;; prolog.el ---"
'';
ignoreCompilationError = false;
meta = {
homepage = "https://bruda.ca/emacs/prolog_mode_for_emacs/";
description = "Prolog mode for Emacs";

View File

@ -19,8 +19,6 @@ melpaBuild {
hash = "sha256-/8T1VTYkKUxlNWXuuS54S5jpl4UxJBbgSuWc17a/VyM=";
};
ignoreCompilationError = false;
passthru.updateScript = gitUpdater { };
meta = {

View File

@ -14,6 +14,9 @@ melpaBuild rec {
hash = "sha256-lc6NIX+lx97qCs5JqG7x0iVE6ki09Gy7DEQuPW2c+7s=";
};
# https://github.com/NixOS/nixpkgs/issues/335421
ignoreCompilationError = true;
meta = {
/*
installation: add to your ~/.emacs

View File

@ -17,8 +17,6 @@ melpaBuild {
hash = "sha256-D36qiRi5OTZrBtJ/bD/javAWizZ8NLlC/YP4rdLCSsw=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -13,8 +13,6 @@ melpaBuild {
hash = "sha256-VXz3pO6N94XM8FzLSAoYrj3NEh4wp0UiuG6ad8M7nVU=";
};
ignoreCompilationError = false;
meta = {
homepage = "https://www.emacswiki.org/emacs/sv-kalender.el";
description = "Swedish calendar for Emacs";

View File

@ -10,8 +10,6 @@ melpaBuild {
files = ''("emacs/*.el")'';
ignoreCompilationError = false;
meta = {
inherit (texpresso.meta) homepage license;
description = "Emacs mode for TeXpresso";

View File

@ -44,8 +44,6 @@ melpaStablePackages.tree-sitter-langs.overrideAttrs(old: {
fi
'') plugins);
ignoreCompilationError = false;
passthru = old.passthru or {} // {
inherit plugins;
withPlugins = fn: final.tree-sitter-langs.override { plugins = fn tree-sitter-grammars; };

View File

@ -42,8 +42,6 @@ in melpaBuild {
files = ''("core/*.el" "${tsc-dyn}/lib/*")'';
ignoreCompilationError = false;
passthru = {
inherit tsc-dyn;
updateScript = nix-update-script { attrPath = "emacsPackages.tsc.tsc-dyn"; };

View File

@ -20,8 +20,6 @@ melpaBuild {
dontConfigure = true;
ignoreCompilationError = false;
meta = {
description = "Major mode for editing Ur/Web";
inherit (urweb.meta) license homepage;

View File

@ -49,8 +49,6 @@ melpaBuild {
el-patch
];
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -16,8 +16,6 @@ melpaBuild {
hash = "sha256-jV5V3TRY+D3cPSz3yFwVWn9yInhGOYIaUTPEhsOBxto=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = {

View File

@ -13,8 +13,6 @@ melpaBuild {
hash = "sha256-ceCOBFfixmGVB3kaSvOv1YZThC2pleYnS8gXhLrjhA8=";
};
ignoreCompilationError = false;
meta = {
homepage = "https://www.emacswiki.org/emacs/yes-no.el";
description = "Specify use of `y-or-n-p' or `yes-or-no-p' on a case-by-case basis";

View File

@ -16,8 +16,6 @@ melpaBuild {
hash = "sha256-Etl95rcoRACDPjcTPQqYK2L+w8OZbOrTrRT0JadMdH4=";
};
ignoreCompilationError = false;
passthru.updateScript = unstableGitUpdater { };
meta = {

View File

@ -30,12 +30,18 @@ in
{ lib, pkgs }: variant: self:
let
inherit (import ./lib-override-helper.nix pkgs)
inherit (import ./lib-override-helper.nix pkgs lib)
addPackageRequires
addPackageRequiresIfOlder
buildWithGit
dontConfigure
externalSrc
fix-rtags
fixRequireHelmCore
ignoreCompilationError
ignoreCompilationErrorIfOlder
markBroken
mkHome
;
generateMelpa = lib.makeOverridable ({ archiveJson ? defaultArchive
@ -131,7 +137,7 @@ let
} // {
# Expects bash to be at /bin/bash
ac-rtags = fix-rtags super.ac-rtags;
ac-rtags = ignoreCompilationError (fix-rtags super.ac-rtags); # elisp error
age = super.age.overrideAttrs (attrs: {
postPatch = attrs.postPatch or "" + ''
@ -144,7 +150,8 @@ let
inherit (self.melpaPackages) powerline;
};
auto-complete-clang-async = super.auto-complete-clang-async.overrideAttrs (old: {
# https://github.com/Golevka/emacs-clang-complete-async/issues/90
auto-complete-clang-async = (addPackageRequires super.auto-complete-clang-async [ self.auto-complete ]).overrideAttrs (old: {
buildInputs = old.buildInputs ++ [ pkgs.llvmPackages.llvm ];
CFLAGS = "-I${pkgs.llvmPackages.libclang.lib}/include";
LDFLAGS = "-L${pkgs.llvmPackages.libclang.lib}/lib";
@ -157,7 +164,7 @@ let
# upstream issue: missing package version
cmake-mode = dontConfigure super.cmake-mode;
company-rtags = fix-rtags super.company-rtags;
company-rtags = ignoreCompilationError (fix-rtags super.company-rtags); # elisp error
easy-kill-extras = super.easy-kill-extras.override {
inherit (self.melpaPackages) easy-kill;
@ -226,7 +233,7 @@ let
inherit (self.melpaPackages) ess ctable popup;
};
flycheck-rtags = fix-rtags super.flycheck-rtags;
flycheck-rtags = ignoreCompilationError (fix-rtags super.flycheck-rtags); # elisp error
pdf-tools = super.pdf-tools.overrideAttrs (old: {
# Temporary work around for:
@ -313,7 +320,7 @@ let
HOME = "/tmp";
});
ivy-rtags = fix-rtags super.ivy-rtags;
ivy-rtags = ignoreCompilationError (fix-rtags super.ivy-rtags); # elisp error
jinx = super.jinx.overrideAttrs (old: let
libExt = pkgs.stdenv.hostPlatform.extensions.sharedLibrary;
@ -392,7 +399,7 @@ let
magit-tbdiff = buildWithGit super.magit-tbdiff;
magit-topgit = buildWithGit super.magit-topgit;
magit-topgit = ignoreCompilationError (buildWithGit super.magit-topgit); # elisp error
magit-vcsh = buildWithGit super.magit-vcsh;
@ -406,7 +413,7 @@ let
magit-gitflow = buildWithGit super.magit-gitflow;
magithub = buildWithGit super.magithub;
magithub = ignoreCompilationError (buildWithGit super.magithub); # elisp error
magit-svn = buildWithGit super.magit-svn;
@ -426,9 +433,7 @@ let
jist = buildWithGit super.jist;
mandoku = buildWithGit super.mandoku;
mandoku-tls = buildWithGit super.mandoku-tls;
mandoku = addPackageRequires super.mandoku [ self.git ]; # upstream is archived
magit-p4 = buildWithGit super.magit-p4;
@ -465,7 +470,8 @@ let
});
# upstream issue: missing file header
mhc = super.mhc.override {
# elisp error
mhc = (ignoreCompilationError super.mhc).override {
inherit (self.melpaPackages) calfw;
};
@ -482,7 +488,7 @@ let
'';
});
rtags = dontConfigure (externalSrc super.rtags pkgs.rtags);
rtags = ignoreCompilationError (dontConfigure (externalSrc super.rtags pkgs.rtags)); # elisp error
rtags-xref = dontConfigure super.rtags;
@ -496,12 +502,21 @@ let
'';
});
shm = super.shm.overrideAttrs (attrs: {
propagatedUserEnvPkgs = [ pkgs.haskellPackages.structured-haskell-mode ];
});
# https://github.com/projectional-haskell/structured-haskell-mode/issues/165
shm =
(addPackageRequires super.shm [
self.haskell-mode
self.hindent
]).overrideAttrs
(attrs: {
propagatedUserEnvPkgs = attrs.propagatedUserEnvPkgs or [ ] ++ [
pkgs.haskellPackages.structured-haskell-mode
];
});
# Telega has a server portion for it's network protocol
telega = super.telega.overrideAttrs (old: {
# elisp error
telega = (ignoreCompilationError super.telega).overrideAttrs (old: {
buildInputs = old.buildInputs ++ [ pkgs.tdlib ];
nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.pkg-config ];
@ -640,7 +655,7 @@ let
];
});
helm-rtags = fix-rtags super.helm-rtags;
helm-rtags = ignoreCompilationError (fix-rtags super.helm-rtags); # elisp error
# tries to write to $HOME
php-auto-yasnippets = super.php-auto-yasnippets.overrideAttrs (attrs: {
@ -718,6 +733,812 @@ let
'';
})
else super.osx-dictionary;
# https://github.com/skeeto/at-el/issues/9
"@" = ignoreCompilationErrorIfOlder super."@" "20240923.1318";
abgaben = addPackageRequires (mkHome super.abgaben) [ self.mu4e ];
# https://github.com/afroisalreadyinu/abl-mode/issues/9
abl-mode = addPackageRequires super.abl-mode [ self.f ];
ac-php-core = super.ac-php-core.overrideAttrs (old: {
# empty file causing native-compiler-error-empty-byte
preBuild =
''
rm --verbose ac-php-comm-tags-data.el
''
+ old.preBuild or "";
});
# Optimizer error: too much on the stack
ack-menu = ignoreCompilationError super.ack-menu;
# https://github.com/gongo/airplay-el/issues/2
airplay = addPackageRequires super.airplay [ self.request-deferred ];
# https://github.com/melpa/melpa/pull/9185
alectryon = super.alectryon.overrideAttrs (old: {
preBuild =
old.preBuild or ""
+ "\n"
+ ''
rm --recursive --verbose etc/elisp/screenshot
'';
});
# https://github.com/gergelypolonkai/alert-termux/issues/2
alert-termux = addPackageRequires super.alert-termux [ self.alert ];
# https://github.com/magnars/angular-snippets.el/issues/7
angular-snippets = addPackageRequires super.angular-snippets [ self.yasnippet ];
# https://github.com/ragone/asx/pull/3
asx = addPackageRequires super.asx [ self.request ];
auctex-cluttex = mkHome super.auctex-cluttex;
auctex-latexmk = mkHome super.auctex-latexmk;
auto-indent-mode = ignoreCompilationError super.auto-indent-mode; # elisp error
# missing optional dependencies
auto-complete-auctex = addPackageRequires (mkHome super.auto-complete-auctex) [ self.auctex ];
# depends on distel which is not on any ELPA https://github.com/massemanet/distel/issues/21
auto-complete-distel = ignoreCompilationError super.auto-complete-distel;
aws-ec2 = ignoreCompilationError super.aws-ec2; # elisp error
badger-theme = ignoreCompilationError super.badger-theme; # elisp error
# https://github.com/BinaryAnalysisPlatform/bap-mode/pull/4
bap-mode = fixRequireHelmCore (addPackageRequires super.bap-mode [ self.helm-core ]);
# try to open non-existent ~/.emacs.d/.blog_minimal.config during compilation
blog-minimal = ignoreCompilationError super.blog-minimal;
boa-mode = ignoreCompilationError super.boa-mode; # elisp error
# missing optional dependencies
boogie-friends = addPackageRequires super.boogie-friends [ self.lsp-mode ];
# https://github.com/melpa/melpa/pull/9181
bpr = super.bpr.overrideAttrs (old: {
preBuild =
old.preBuild or ""
+ "\n"
+ ''
rm --verbose --force test-bpr.el
'';
});
bts = ignoreCompilationError super.bts; # elisp error
bts-github = ignoreCompilationError super.bts-github; # elisp error
buffer-buttons = ignoreCompilationError super.buffer-buttons; # elisp error
# https://github.com/kiwanami/emacs-calfw/pull/106
calfw-cal = addPackageRequires super.calfw-cal [ self.calfw ];
# https://github.com/kiwanami/emacs-calfw/pull/106
calfw-gcal = addPackageRequires super.calfw-gcal [ self.calfw ];
# https://github.com/kiwanami/emacs-calfw/pull/106
calfw-howm = addPackageRequires super.calfw-howm [
self.calfw
self.howm
];
# https://github.com/kiwanami/emacs-calfw/pull/106
calfw-ical = addPackageRequires super.calfw-ical [ self.calfw ];
# https://github.com/kiwanami/emacs-calfw/pull/106
calfw-org = addPackageRequires super.calfw-org [ self.calfw ];
cardano-tx = ignoreCompilationError super.cardano-tx; # elisp error
cardano-wallet = ignoreCompilationError super.cardano-wallet; # elisp error
# elisp error and missing optional dependencies
cask-package-toolset = ignoreCompilationError super.cask-package-toolset;
# missing optional dependencies
chee = addPackageRequires super.chee [ self.helm ];
cheerilee = ignoreCompilationError super.cheerilee; # elisp error
# elisp error and missing optional dependencies
# one optional dependency spark is removed in https://github.com/melpa/melpa/pull/9151
chronometrist = ignoreCompilationError super.chronometrist;
# https://github.com/melpa/melpa/pull/9184
chronometrist-key-values = super.chronometrist-key-values.overrideAttrs (old: {
recipe = ''
(chronometrist-key-values :fetcher git :url ""
:files (:defaults "elisp/chronometrist-key-values.*"))
'';
});
# https://github.com/atilaneves/cmake-ide/issues/176
cmake-ide = addPackageRequires super.cmake-ide [ self.dash ];
code-review = ignoreCompilationError super.code-review; # elisp error
codesearch = super.codesearch.overrideAttrs (
finalAttrs: previousAttrs: {
patches =
if lib.versionOlder finalAttrs.version "20240827.805" then
previousAttrs.patches or [ ]
++ [
(pkgs.fetchpatch {
name = "remove-unused-dash.patch";
url = "https://github.com/abingham/emacs-codesearch/commit/bd24a152ab6ea9f69443ae8e5b7351bb2f990fb6.patch";
hash = "sha256-cCHY8Ak2fHuuhymjSF7w2MLPDJa84mBUdKg27mB9yto=";
})
]
else
previousAttrs.patches or null;
}
);
# https://github.com/hying-caritas/comint-intercept/issues/2
comint-intercept = addPackageRequires super.comint-intercept [ self.vterm ];
company-auctex = mkHome super.company-auctex;
# depends on distel which is not on any ELPA https://github.com/massemanet/distel/issues/21
company-distel = ignoreCompilationError super.company-distel;
# qmltypes-table.el causing native-compiler-error-empty-byte
company-qml = ignoreCompilationError super.company-qml;
# https://github.com/neuromage/ycm.el/issues/6
company-ycm = ignoreCompilationError (addPackageRequires super.company-ycm [ self.company ]);
composable = ignoreCompilationError super.composable; # elisp error
# missing optional dependencies
conda = addPackageRequires super.conda [ self.projectile ];
counsel-gtags = ignoreCompilationError super.counsel-gtags; # elisp error
# https://github.com/fuxialexander/counsel-notmuch/issues/3
counsel-notmuch = addPackageRequires super.counsel-notmuch [ self.counsel ];
# needs dbus during compilation
counsel-spotify = ignoreCompilationError super.counsel-spotify;
creole = ignoreCompilationError super.creole; # elisp error
cssh = ignoreCompilationError super.cssh; # elisp error
dap-mode = super.dap-mode.overrideAttrs (old: {
# empty file causing native-compiler-error-empty-byte
preBuild =
''
rm --verbose dapui.el
''
+ old.preBuild or "";
});
db-pg = ignoreCompilationError super.db-pg; # elisp error
describe-number = ignoreCompilationError super.describe-number; # elisp error
# missing optional dependencies: text-translator, not on any ELPA
dic-lookup-w3m = ignoreCompilationError super.dic-lookup-w3m;
# https://github.com/nlamirault/dionysos/issues/17
dionysos = addPackageRequires super.dionysos [ self.f ];
# https://github.com/emacsorphanage/dired-k/issues/48
# missing optional dependencies
dired-k = addPackageRequires super.dired-k [ self.direx ];
# depends on distel which is not on any ELPA https://github.com/massemanet/distel/issues/21
distel-completion-lib = ignoreCompilationError super.distel-completion-lib;
django-mode = ignoreCompilationError super.django-mode; # elisp error
# elisp error and missing optional dependencies
drupal-mode = ignoreCompilationError super.drupal-mode;
e2wm-pkgex4pl = ignoreCompilationError super.e2wm-pkgex4pl; # elisp error
ecb = ignoreCompilationError super.ecb; # elisp error
# Optimizer error: too much on the stack
edit-color-stamp = ignoreCompilationError super.edit-color-stamp;
edts = ignoreCompilationError (mkHome super.edts); # elisp error
eimp = super.eimp.overrideAttrs (old: {
postPatch =
old.postPatch or ""
+ "\n"
+ ''
substituteInPlace eimp.el --replace-fail \
'(defcustom eimp-mogrify-program "mogrify"' \
'(defcustom eimp-mogrify-program "${pkgs.imagemagick}/bin/mogrify"'
'';
});
ein = ignoreCompilationError super.ein; # elisp error
# missing optional dependencies
ejc-sql = addPackageRequires super.ejc-sql [
self.auto-complete
self.company
];
# missing optional dependencies
ekg = addPackageRequires super.ekg [ self.denote ];
elisp-sandbox = ignoreCompilationError super.elisp-sandbox; # elisp error
elnode = ignoreCompilationError super.elnode; # elisp error
elscreen = super.elscreen.overrideAttrs (old: {
patches = old.patches or [ ] ++ [
(pkgs.fetchpatch {
name = "do-not-require-unneeded-wl.patch";
url = "https://github.com/knu/elscreen/pull/34/commits/2ffbeb11418d1b98809909c389e7010666d511fd.patch";
hash = "sha256-7JoDGtFECZEkB3xmMBXZcx6oStkEV06soiqOkDevWtM=";
})
];
});
el-secretario-mu4e = addPackageRequires super.el-secretario-mu4e [ self.mu4e ];
embark-vc = buildWithGit super.embark-vc;
# https://github.com/nubank/emidje/issues/23
emidje = addPackageRequires super.emidje [ self.pkg-info ];
# depends on later-do which is not on any ELPA
emms-player-simple-mpv = ignoreCompilationError super.emms-player-simple-mpv;
emms-player-mpv-jp-radios = ignoreCompilationError super.emms-player-mpv-jp-radios;
enotify = ignoreCompilationError super.enotify; # elisp error
# https://github.com/leathekd/ercn/issues/6
ercn = addPackageRequires super.ercn [ self.dash ];
# missing optional dependencies
eval-in-repl = addPackageRequires super.eval-in-repl (
with self;
[
alchemist
cider
elm-mode
erlang
geiser
hy-mode
elixir-mode
js-comint
lua-mode
tuareg
racket-mode
inf-ruby
slime
sly
sml-mode
]
);
# elisp error and missing dependencies
evalator = ignoreCompilationError super.evalator;
evalator-clojure = ignoreCompilationError super.evalator-clojure; # elisp error
# https://github.com/PythonNut/evil-easymotion/issues/74
evil-easymotion = addPackageRequires super.evil-easymotion [ self.evil ];
evil-mu4e = addPackageRequires super.evil-mu4e [ self.mu4e ];
# https://github.com/VanLaser/evil-nl-break-undo/issues/2
evil-nl-break-undo = addPackageRequiresIfOlder super.evil-nl-break-undo [
self.evil
] "20240921.953";
evil-python-movement = ignoreCompilationError super.evil-python-movement; # elisp error
evil-tex = mkHome super.evil-tex;
# Error: Bytecode overflow
ewal-doom-themes = ignoreCompilationError super.ewal-doom-themes;
# https://github.com/agzam/exwm-edit/issues/32
exwm-edit = addPackageRequires super.exwm-edit [ self.exwm ];
# https://github.com/syl20bnr/flymake-elixir/issues/4
flymake-elixir = addPackageRequires super.flymake-elixir [ self.flymake-easy ];
flyparens = ignoreCompilationError super.flyparens; # elisp error
fold-dwim-org = ignoreCompilationError super.fold-dwim-org; # elisp error
# https://github.com/melpa/melpa/pull/9182
frontside-javascript = super.frontside-javascript.overrideAttrs (old: {
preBuild =
old.preBuild or ""
+ "\n"
+ ''
rm --verbose packages/javascript/test-suppport.el
'';
});
fxrd-mode = ignoreCompilationError super.fxrd-mode; # elisp error
# missing optional dependencies
gap-mode = addPackageRequires super.gap-mode [
self.company
self.flycheck
];
gh-notify = buildWithGit super.gh-notify;
# https://github.com/nlamirault/emacs-gitlab/issues/68
gitlab = addPackageRequires super.gitlab [ self.f ];
# TODO report to upstream
global-tags = addPackageRequires super.global-tags [ self.s ];
go = ignoreCompilationError super.go; # elisp error
graphene = ignoreCompilationError super.graphene; # elisp error
greader = ignoreCompilationError super.greader; # elisp error
# TODO report to upstream
guix = addPackageRequires super.guix [ self.geiser-guile ];
# missing optional dependencies
gumshoe = addPackageRequires super.gumshoe [ self.perspective ];
helm-chrome-control = super.helm-chrome-control.overrideAttrs (old: {
patches = old.patches or [ ] ++ [
(pkgs.fetchpatch {
name = "require-helm-core-instead-of-helm.patch";
url = "https://github.com/xuchunyang/helm-chrome-control/pull/2/commits/7765cd2483adef5cfa6cf77f52259ad6e1dd0daf.patch";
hash = "sha256-tF+IaICbveYJvd3Tjx52YBBztpjifZdCA4O+Z2r1M3s=";
})
];
});
# https://github.com/xuchunyang/helm-chrome-history/issues/3
helm-chrome-history = fixRequireHelmCore super.helm-chrome-history;
helm-cider = ignoreCompilationError super.helm-cider; # elisp error
helm-ext = ignoreCompilationError super.helm-ext; # elisp error
# https://github.com/iory/emacs-helm-ghs/issues/1
helm-ghs = addPackageRequires super.helm-ghs [ self.helm-ghq ];
# https://github.com/maio/helm-git/issues/7
helm-git = addPackageRequires super.helm-git [
self.helm
self.magit
];
# TODO report to upstream
helm-flycheck = fixRequireHelmCore super.helm-flycheck;
# https://github.com/yasuyk/helm-git-grep/issues/54
helm-git-grep = addPackageRequires super.helm-git-grep [ self.helm ];
# https://github.com/yasuyk/helm-go-package/issues/8
helm-go-package = fixRequireHelmCore super.helm-go-package;
# https://github.com/torgeir/helm-js-codemod.el/pull/1
helm-js-codemod = fixRequireHelmCore super.helm-js-codemod;
helm-kythe = ignoreCompilationError super.helm-kythe; # elisp error
# https://github.com/emacs-jp/helm-migemo/issues/8
helm-migemo = addPackageRequiresIfOlder super.helm-migemo [ self.helm ] "20240921.1550";
helm-mu = addPackageRequires super.helm-mu [ self.mu4e ];
# https://github.com/xuchunyang/helm-osx-app/pull/1
helm-osx-app = addPackageRequires super.helm-osx-app [ self.helm ];
# https://github.com/cosmicexplorer/helm-rg/issues/36
helm-rg = ignoreCompilationError super.helm-rg; # elisp error
# https://github.com/yasuyk/helm-spaces/issues/1
helm-spaces = fixRequireHelmCore super.helm-spaces;
hideshow-org = ignoreCompilationError super.hideshow-org; # elisp error
# https://github.com/purcell/hippie-expand-slime/issues/2
hippie-expand-slime = addPackageRequires super.hippie-expand-slime [ self.slime ];
hyperbole = ignoreCompilationError (addPackageRequires (mkHome super.hyperbole) [ self.el-mock ]); # elisp error
# needs non-existent "browser database directory" during compilation
# TODO report to upsteam about missing dependency websocket
ibrowse = ignoreCompilationError (addPackageRequires super.ibrowse [ self.websocket ]);
# elisp error and missing optional dependencies
identica-mode = ignoreCompilationError super.identica-mode;
# missing optional dependencies
idris-mode = addPackageRequires super.idris-mode [ self.flycheck ];
imbot = ignoreCompilationError super.imbot; # elisp error
indium = mkHome super.indium;
# TODO report to upsteam
inlineR = addPackageRequires super.inlineR [ self.ess ];
# https://github.com/duelinmarkers/insfactor.el/issues/7
insfactor = addPackageRequires super.insfactor [ self.cider ];
# https://github.com/wandersoncferreira/ivy-clojuredocs/issues/5
ivy-clojuredocs = addPackageRequires super.ivy-clojuredocs [ self.parseedn ];
# TODO report to upstream
jack-connect = addPackageRequires super.jack-connect [ self.dash ];
jdee = ignoreCompilationError super.jdee; # elisp error
# https://github.com/fred-o/jekyll-modes/issues/6
jekyll-modes = addPackageRequires super.jekyll-modes [ self.poly-markdown ];
jss = ignoreCompilationError super.jss; # elisp error
# missing optional dependencies: vterm or eat
julia-snail = addPackageRequires super.julia-snail [ self.eat ];
kite = ignoreCompilationError super.kite; # elisp error
# missing optional dependencies
laas = addPackageRequires super.laas [ self.math-symbol-lists ];
latex-change-env = mkHome super.latex-change-env;
latex-extra = mkHome super.latex-extra;
latex-table-wizard = mkHome super.latex-table-wizard;
leaf-defaults = ignoreCompilationError super.leaf-defaults; # elisp error
# https://github.com/abo-abo/lispy/pull/683
# missing optional dependencies
lispy = addPackageRequires (mkHome super.lispy) [ self.indium ];
# missing optional dependencies
magik-mode = addPackageRequires super.magik-mode [
self.auto-complete
self.flycheck
];
# missing optional dependencies
magnatune = addPackageRequires super.magnatune [ self.helm ];
major-mode-icons = ignoreCompilationError super.major-mode-icons; # elisp error
malinka = ignoreCompilationError super.malinka; # elisp error
mastodon = ignoreCompilationError super.mastodon; # elisp error
# https://github.com/org2blog/org2blog/issues/339
metaweblog = addPackageRequires super.metaweblog [ self.xml-rpc ];
mu-cite = ignoreCompilationError super.mu-cite; # elisp error
mu4e-alert = addPackageRequires super.mu4e-alert [ self.mu4e ];
mu4e-column-faces = addPackageRequires super.mu4e-column-faces [ self.mu4e ];
mu4e-conversation = addPackageRequires super.mu4e-conversation [ self.mu4e ];
mu4e-jump-to-list = addPackageRequires super.mu4e-jump-to-list [ self.mu4e ];
mu4e-marker-icons = addPackageRequires super.mu4e-marker-icons [ self.mu4e ];
mu4e-overview = addPackageRequires super.mu4e-overview [ self.mu4e ];
mu4e-query-fragments = addPackageRequires super.mu4e-query-fragments [ self.mu4e ];
mu4e-views = addPackageRequires super.mu4e-views [ self.mu4e ];
# https://github.com/magnars/multifiles.el/issues/9
multifiles = addPackageRequires super.multifiles [ self.dash ];
# missing optional dependencies
mykie = addPackageRequires super.mykie [ self.helm ];
myrddin-mode = ignoreCompilationError super.myrddin-mode; # elisp error
nand2tetris = super.nand2tetris.overrideAttrs (old: {
patches = old.patches or [ ] ++ [
(pkgs.fetchpatch {
name = "remove-unneeded-require.patch";
url = "https://github.com/CestDiego/nand2tetris.el/pull/16/commits/d06705bf52f3cf41f55498d88fe15a1064bc2cfa.patch";
hash = "sha256-8OJXN9MuwBbL0afus53WroIxtIzHY7Bryv5ZGcS/inI=";
})
];
});
# elisp error and missing dependency spamfilter which is not on any ELPA
navi2ch = ignoreCompilationError super.navi2ch;
navorski = super.navorski.overrideAttrs (old: {
patches = old.patches or [ ] ++ [
(pkgs.fetchpatch {
name = "stop-using-assoc.patch";
url = "https://github.com/roman/navorski.el/pull/12/commits/b7b6c331898cae239c176346ac87c8551b1e0c72.patch";
hash = "sha256-CZxOSGuJXATonHMSLGCzO4kOlQqRAOcNNq0i4Qh21y8=";
})
];
});
# empty tools/ncl-mode-keywords.el causing native-compiler-error-empty-byte
ncl-mode = ignoreCompilationError super.ncl-mode;
# missing optional dependencies
netease-cloud-music = addPackageRequires super.netease-cloud-music [ self.async ];
nim-mode = ignoreCompilationError super.nim-mode; # elisp error
noctilux-theme = ignoreCompilationError super.noctilux-theme; # elisp error
# https://github.com/nicferrier/emacs-noflet/issues/12
noflet = ignoreCompilationError super.noflet; # elisp error
norns = ignoreCompilationError super.norns; # elisp error
# missing optional dependencies
nu-mode = addPackageRequires super.nu-mode [ self.evil ];
# try to open non-existent ~/.emacs.d/.chatgpt-shell.el during compilation
ob-chatgpt-shell = ignoreCompilationError super.ob-chatgpt-shell;
org-change = ignoreCompilationError super.org-change; # elisp error
org-edit-latex = mkHome super.org-edit-latex;
org-gnome = ignoreCompilationError super.org-gnome; # elisp error
org-gtd = ignoreCompilationError super.org-gtd; # elisp error
# needs newer org than the Eamcs 29.4 builtin one
org-link-beautify = addPackageRequires super.org-link-beautify [ self.org ];
# TODO report to upstream
org-kindle = addPackageRequires super.org-kindle [ self.dash ];
org-special-block-extras = ignoreCompilationError super.org-special-block-extras; # elisp error
org-trello = ignoreCompilationError super.org-trello; # elisp error
# Optimizer error: too much on the stack
orgnav = ignoreCompilationError super.orgnav;
org-noter = super.org-noter.overrideAttrs (
finalAttrs: previousAttrs: {
patches =
if lib.versionOlder finalAttrs.version "20240915.344" then
previousAttrs.patches or [ ]
++ [
(pkgs.fetchpatch {
name = "catch-error-for-optional-dep-org-roam.patch";
url = "https://github.com/org-noter/org-noter/commit/761c551ecc88fec57e840d346c6af5f5b94591d5.patch";
hash = "sha256-Diw9DgjANDWu6CBMOlRaihQLOzeAr7VcJPZT579dpYU=";
})
]
else
previousAttrs.patches or null;
}
);
org-noter-pdftools = mkHome super.org-noter-pdftools;
# elisp error and missing optional dependencies
org-ref = ignoreCompilationError super.org-ref;
# missing optional dependencies
org-roam-bibtex = addPackageRequires super.org-roam-bibtex [
self.helm-bibtex
self.ivy-bibtex
];
org-pdftools = mkHome super.org-pdftools;
org-projectile = super.org-projectile.overrideAttrs (
finalAttrs: previousAttrs: {
# https://github.com/melpa/melpa/pull/9150
preBuild =
if lib.versionOlder finalAttrs.version "20240901.2041" then
''
rm --verbose org-projectile-helm.el
''
+ previousAttrs.preBuild or ""
else
previousAttrs.preBuild or null;
}
);
# https://github.com/colonelpanic8/org-project-capture/issues/66
org-projectile-helm = addPackageRequires super.org-projectile-helm [ self.helm-org ];
# https://github.com/DarwinAwardWinner/mac-pseudo-daemon/issues/9
osx-pseudo-daemon = addPackageRequiresIfOlder super.osx-pseudo-daemon [ self.mac-pseudo-daemon ] "20240922.2024";
# missing optional dependencies
outlook = addPackageRequires super.outlook [ self.mu4e ];
pastery = ignoreCompilationError super.pastery; # elisp error
pgdevenv = ignoreCompilationError super.pgdevenv; # elisp error
pinot = ignoreCompilationError super.pinot; # elisp error
# https://github.com/polymode/poly-R/issues/41
poly-R = addPackageRequires super.poly-R [ self.ess ];
# missing optional dependencies: direx e2wm yaol, yaol not on any ELPA
pophint = ignoreCompilationError super.pophint;
portage-navi = ignoreCompilationError super.portage-navi; # elisp error
preview-dvisvgm = mkHome super.preview-dvisvgm;
# https://github.com/micdahl/projectile-trailblazer/issues/4
projectile-trailblazer = addPackageRequires super.projectile-trailblazer [ self.projectile-rails ];
projmake-mode = ignoreCompilationError super.projmake-mode; # elisp error
# https://github.com/tumashu/pyim-basedict/issues/4
pyim-basedict = addPackageRequires super.pyim-basedict [ self.pyim ];
# TODO report to upstream
realgud-lldb = super.realgud-lldb.overrideAttrs (old: {
preBuild =
old.preBuild or ""
+ "\n"
+ ''
rm --verbose cask-install.el
'';
});
# empty .yas-compiled-snippets.el causing native-compiler-error-empty-byte
requirejs = ignoreCompilationError super.requirejs;
rhtml-mode = ignoreCompilationError super.rhtml-mode; # elisp error
roguel-ike = ignoreCompilationError super.roguel-ike; # elisp error
rpm-spec-mode = ignoreCompilationError super.rpm-spec-mode; # elisp error
# https://github.com/emacsfodder/emacs-theme-sakura/issues/1
sakura-theme = addPackageRequiresIfOlder super.sakura-theme [ self.autothemer ] "20240921.1028";
scad-preview = ignoreCompilationError super.scad-preview; # elisp error
# https://github.com/wanderlust/semi/pull/29
# missing optional dependencies
semi = addPackageRequires super.semi [ self.bbdb-vcard ];
shadchen = ignoreCompilationError super.shadchen; # elisp error
# missing optional dependencies and one of them (mew) is not on any ELPA
shimbun = ignoreCompilationError (
addPackageRequires super.shimbun [
self.apel
self.flim
self.w3m
]
);
slack = mkHome super.slack;
# https://github.com/ffevotte/slurm.el/issues/14
slurm-mode = addPackageRequires super.slurm-mode [
self.dash
self.s
];
smart-tabs-mode = ignoreCompilationError super.smart-tabs-mode; # elisp error
# needs network during compilation
# https://github.com/md-arif-shaikh/soccer/issues/14
soccer = ignoreCompilationError (addPackageRequires super.soccer [ self.s ]);
# elisp error and missing optional dependencies
soundklaus = ignoreCompilationError super.soundklaus;
# missing optional dependencies
sparql-mode = addPackageRequires super.sparql-mode [ self.company ];
speechd-el = ignoreCompilationError super.speechd-el; # elisp error
spu = ignoreCompilationError super.spu; # elisp error
# missing optional dependencies
ssh-tunnels = addPackageRequires super.ssh-tunnels [ self.helm ];
# https://github.com/brianc/jade-mode/issues/73
stylus-mode = addPackageRequires super.stylus-mode [ self.sws-mode ];
# missing optional dependencies
suggest = addPackageRequires super.suggest [ self.shut-up ];
symex = ignoreCompilationError super.symex; # elisp error
term-alert = mkHome super.term-alert;
# https://github.com/colonelpanic8/term-manager/issues/9
term-manager = addPackageRequires super.term-manager [ self.eat ];
texfrag = mkHome super.texfrag;
# https://github.com/Dspil/text-categories/issues/3
text-categories = addPackageRequiresIfOlder super.text-categories [ self.dash ] "20240921.824";
timp = ignoreCompilationError super.timp; # elisp error
tommyh-theme = ignoreCompilationError super.tommyh-theme; # elisp error
tramp-hdfs = ignoreCompilationError super.tramp-hdfs; # elisp error
universal-emotions-emoticons = ignoreCompilationError super.universal-emotions-emoticons; # elisp error
use-package-el-get = addPackageRequires super.use-package-el-get [ self.el-get ];
vala-mode = ignoreCompilationError super.vala-mode; # elisp error
# needs network during compilation
wandbox = ignoreCompilationError super.wandbox; # needs network
# optional dependency spamfilter is not on any ELPA
wanderlust = ignoreCompilationError (addPackageRequires super.wanderlust [ self.shimbun ]);
# https://github.com/nicklanasa/xcode-mode/issues/28
xcode-mode = addPackageRequires super.xcode-mode [ self.hydra ];
weechat = ignoreCompilationError super.weechat; # elisp error
weechat-alert = ignoreCompilationError super.weechat-alert; # elisp error
weibo = ignoreCompilationError super.weibo; # elisp error
xenops = mkHome super.xenops;
# missing optional dependencies
xmlunicode = addPackageRequires super.xmlunicode [ self.helm ];
# https://github.com/canatella/xwwp/issues/18
xwwp-follow-link-ivy = addPackageRequires super.xwwp-follow-link-ivy [ self.ivy ];
# https://github.com/canatella/xwwp/issues/19
xwwp-follow-link-helm = addPackageRequires super.xwwp-follow-link-helm [ self.helm ];
yara-mode = ignoreCompilationError super.yara-mode; # elisp error
# https://github.com/leanprover-community/yasnippet-lean/issues/6
yasnippet-lean = addPackageRequires super.yasnippet-lean [ self.lean-mode ];
yasnippet-snippets = mkHome super.yasnippet-snippets;
yatex = ignoreCompilationError super.yatex; # elisp error
# elisp error and incomplete recipe
ycm = ignoreCompilationError (
addPackageRequires super.ycm [
self.flycheck
self.f
]
);
# missing optional dependencies
zotxt = addPackageRequires super.zotxt [ self.org-noter ];
};
in lib.mapAttrs (n: v: if lib.hasAttr n overrides then overrides.${n} else v) super);

View File

@ -1,8 +1,25 @@
pkgs:
pkgs: lib:
self: super:
let
inherit (import ./lib-override-helper.nix pkgs lib)
addPackageRequires
;
in
{
# missing optional dependencies
haskell-tng-mode = addPackageRequires super.haskell-tng-mode (
with self;
[
s
company
projectile
smartparens
yasnippet
]
);
p4-16-mode = super.p4-16-mode.overrideAttrs {
# workaround https://github.com/NixOS/nixpkgs/issues/301795
prePatch = ''

View File

@ -19,6 +19,10 @@
self:
let
inherit (import ./lib-override-helper.nix pkgs lib)
addPackageRequires
;
generateNongnu = lib.makeOverridable (
{
generated ? ./nongnu-devel-generated.nix,
@ -39,9 +43,15 @@ let
super = imported;
commonOverrides = import ./nongnu-common-overrides.nix pkgs;
commonOverrides = import ./nongnu-common-overrides.nix pkgs lib;
overrides = self: super: { };
overrides = self: super: {
# missing optional dependencies
haskell-tng-mode = addPackageRequires super.haskell-tng-mode [
self.shut-up
self.lsp-mode
];
};
in
let

View File

@ -29,7 +29,7 @@ self: let
super = imported;
commonOverrides = import ./nongnu-common-overrides.nix pkgs;
commonOverrides = import ./nongnu-common-overrides.nix pkgs lib;
overrides = self: super: { };

View File

@ -605,6 +605,18 @@ final: prev:
meta.homepage = "https://github.com/aduros/ai.vim/";
};
aider-nvim = buildVimPlugin {
pname = "aider.nvim";
version = "2023-10-22";
src = fetchFromGitHub {
owner = "joshuavial";
repo = "aider.nvim";
rev = "74a01227271d0ea211f2edafa82028b22d4c2022";
sha256 = "jkco90IF948LuRILP3Bog3GelUGOQzsEw2jP4f9Ghbw=";
};
meta.homepage = "https://github.com/joshuavial/aider.nvim/";
};
alchemist-vim = buildVimPlugin {
pname = "alchemist.vim";
version = "2023-09-01";
@ -7443,18 +7455,6 @@ final: prev:
meta.homepage = "https://github.com/ii14/neorepl.nvim/";
};
neorg = buildVimPlugin {
pname = "neorg";
version = "2024-09-08";
src = fetchFromGitHub {
owner = "nvim-neorg";
repo = "neorg";
rev = "ba35900b21921c439e676b063a79c8fad914eac9";
sha256 = "12sgvf7zbabxvmdf07cv8rcql6jdgdv5xdcn7v5w42q8lg9mps10";
};
meta.homepage = "https://github.com/nvim-neorg/neorg/";
};
neorg-telescope = buildVimPlugin {
pname = "neorg-telescope";
version = "2024-07-30";

View File

@ -131,6 +131,7 @@
hurl
, # must be lua51Packages
luajitPackages
, aider-chat
,
}: self: super:
let
@ -1238,9 +1239,7 @@ in
dependencies = with self; [ plenary-nvim ];
};
neorg = super.neorg.overrideAttrs {
dependencies = with self; [ plenary-nvim ];
};
neorg = neovimUtils.buildNeovimPlugin { luaAttr = luaPackages.neorg; };
neotest = super.neotest.overrideAttrs {
dependencies = with self; [ nvim-nio plenary-nvim ];
@ -1497,13 +1496,17 @@ in
'';
};
refactoring-nvim = super.refactoring-nvim.overrideAttrs {
dependencies = with self; [ nvim-treesitter plenary-nvim ];
aider-nvim = super.aider-nvim.overrideAttrs {
patches = [ ./patches/aider.nvim/fix-paths.patch ];
postPatch = ''
substituteInPlace lua/aider.lua --replace '@aider@' ${aider-chat}/bin/aider
substituteInPlace lua/helpers.lua --replace '@aider@' ${aider-chat}/bin/aider
'';
};
render-markdown-nvim = super.render-markdown-nvim.overrideAttrs {
dependencies = with self; [ nvim-treesitter ];
nvimRequireCheck = "render-markdown";
refactoring-nvim = super.refactoring-nvim.overrideAttrs {
dependencies = with self; [ nvim-treesitter plenary-nvim ];
};
# needs "http" and "json" treesitter grammars too

View File

@ -0,0 +1,26 @@
diff --git a/lua/aider.lua b/lua/aider.lua
index 38db0d1..d1ad6d5 100644
--- a/lua/aider.lua
+++ b/lua/aider.lua
@@ -26,7 +26,7 @@ function M.AiderOpen(args, window_type)
if M.aider_buf and vim.api.nvim_buf_is_valid(M.aider_buf) then
helpers.open_buffer_in_new_window(window_type, M.aider_buf)
else
- command = 'aider ' .. (args or '')
+ command = '@aider@ ' .. (args or '')
helpers.open_window(window_type)
command = helpers.add_buffers_to_command(command)
M.aider_job_id = vim.fn.termopen(command, {on_exit = OnExit})
diff --git a/lua/helpers.lua b/lua/helpers.lua
index 152182b..aa21584 100644
--- a/lua/helpers.lua
+++ b/lua/helpers.lua
@@ -63,7 +63,7 @@ end
local function build_background_command(args, prompt)
prompt = prompt or "Complete as many todo items as you can and remove the comment for any item you complete."
- local command = 'aider --msg "' .. prompt .. '" ' .. (args or '')
+ local command = '@aider@ --msg "' .. prompt .. '" ' .. (args or '')
command = add_buffers_to_command(command)
return command
end

View File

@ -49,6 +49,7 @@ https://github.com/stevearc/aerial.nvim/,,
https://github.com/Numkil/ag.nvim/,,
https://github.com/derekelkins/agda-vim/,,
https://github.com/aduros/ai.vim/,HEAD,
https://github.com/joshuavial/aider.nvim/,HEAD,
https://github.com/slashmili/alchemist.vim/,,
https://github.com/dense-analysis/ale/,,
https://github.com/vim-scripts/align/,,
@ -623,7 +624,6 @@ https://github.com/neomake/neomake/,,
https://github.com/Shougo/neomru.vim/,,
https://github.com/rafamadriz/neon/,,
https://github.com/ii14/neorepl.nvim/,HEAD,
https://github.com/nvim-neorg/neorg/,,
https://github.com/nvim-neorg/neorg-telescope/,HEAD,
https://github.com/karb94/neoscroll.nvim/,,
https://github.com/Shougo/neosnippet-snippets/,,

View File

@ -2,13 +2,13 @@
buildGoModule rec {
pname = "deck";
version = "1.39.6";
version = "1.40.1";
src = fetchFromGitHub {
owner = "Kong";
repo = "deck";
rev = "v${version}";
hash = "sha256-IiwS+NsjXW4kVAaJnsI8HEAl2pPRQr3K2ZpC7n/VjU4=";
hash = "sha256-wb7/g1g7gxKhZyK7GW+6aGwuD+Dkcdg2Zpc0JCxVPjM=";
};
nativeBuildInputs = [ installShellFiles ];
@ -21,7 +21,7 @@ buildGoModule rec {
];
proxyVendor = true; # darwin/linux hash mismatch
vendorHash = "sha256-wpTXuyeUIPg6WPzVyOIFadodlKHzr5DeDeHhDRKsYbY=";
vendorHash = "sha256-8o3jXkhfRIGGPtw8ow+NyAYAuCJNrBlSyfdSI0pjvDQ=";
postInstall = ''
installShellCompletion --cmd deck \

View File

@ -0,0 +1,193 @@
{
lib,
runCommandLocal,
replaceDirectDependencies,
}:
# Replace some dependencies in the requisites tree of drv, propagating the change all the way up the tree, even within other replacements, without a full rebuild.
# This can be useful, for example, to patch a security hole in libc and still use your system safely without rebuilding the world.
# This should be a short term solution, as soon as a rebuild can be done the properly rebuilt derivation should be used.
# Each old dependency and the corresponding new dependency MUST have the same-length name, and ideally should have close-to-identical directory layout.
#
# Example: safeFirefox = replaceDependencies {
# drv = firefox;
# replacements = [
# {
# oldDependency = glibc;
# newDependency = glibc.overrideAttrs (oldAttrs: {
# patches = oldAttrs.patches ++ [ ./fix-glibc-hole.patch ];
# });
# }
# {
# oldDependency = libwebp;
# newDependency = libwebp.overrideAttrs (oldAttrs: {
# patches = oldAttrs.patches ++ [ ./fix-libwebp-hole.patch ];
# });
# }
# ];
# };
# This will first rebuild glibc and libwebp with your security patches.
# Then it copies over firefox (and all of its dependencies) without rebuilding further.
# In particular, the glibc dependency of libwebp will be replaced by the patched version as well.
#
# In rare cases, it is possible for the replacement process to cause breakage (for example due to checksum mismatch).
# The cutoffPackages argument can be used to exempt the problematic packages from the replacement process.
{
drv,
replacements,
cutoffPackages ? [ ],
verbose ? true,
}:
let
inherit (builtins) unsafeDiscardStringContext appendContext;
inherit (lib)
listToAttrs
isStorePath
readFile
attrValues
mapAttrs
filter
hasAttr
mapAttrsToList
;
inherit (lib.attrsets) mergeAttrsList;
toContextlessString = x: unsafeDiscardStringContext (toString x);
warn = if verbose then lib.warn else (x: y: y);
referencesOf =
drv:
import
(runCommandLocal "references.nix"
{
exportReferencesGraph = [
"graph"
drv
];
}
''
(echo {
while read path
do
echo " \"$path\" = ["
read count
read count
while [ "0" != "$count" ]
do
read ref_path
if [ "$ref_path" != "$path" ]
then
echo " \"$ref_path\""
fi
count=$(($count - 1))
done
echo " ];"
done < graph
echo }) > $out
''
).outPath;
realisation =
drv:
if isStorePath drv then
# Input-addressed and fixed-output derivations have their realisation as outPath.
toContextlessString drv
else
# Floating and deferred derivations have a placeholder outPath.
# The realisation can only be obtained by performing an actual build.
unsafeDiscardStringContext (
readFile (
runCommandLocal "realisation"
{
env = {
inherit drv;
};
}
''
echo -n "$drv" > $out
''
)
);
rootReferences = referencesOf drv;
relevantReplacements = filter (
{ oldDependency, newDependency }:
if toString oldDependency == toString newDependency then
warn "replaceDependencies: attempting to replace dependency ${oldDependency} of ${drv} with itself"
# Attempting to replace a dependency by itself is completely useless, and would only lead to infinite recursion.
# Hence it must not be attempted to apply this replacement in any case.
false
else if !hasAttr (realisation oldDependency) rootReferences then
warn "replaceDependencies: ${drv} does not depend on ${oldDependency}, so it will not be replaced"
# Strictly speaking, another replacement could introduce the dependency.
# However, handling this corner case would add significant complexity.
# So we just leave it to the user to apply the replacement at the correct place, but show a warning to let them know.
false
else
true
) replacements;
targetDerivations = [ drv ] ++ map ({ newDependency, ... }: newDependency) relevantReplacements;
referencesMemo = listToAttrs (
map (drv: {
name = realisation drv;
value = referencesOf drv;
}) targetDerivations
);
relevantReferences = mergeAttrsList (attrValues referencesMemo);
# Make sure a derivation is returned even when no replacements are actually applied.
# Yes, even in the stupid edge case where the root derivation itself is replaced.
storePathOrKnownTargetDerivationMemo =
mapAttrs (
drv: _references:
# builtins.storePath does not work in pure evaluation mode, even though it is not impure.
# This reimplementation in Nix works as long as the path is already allowed in the evaluation state.
# This is always the case here, because all paths come from the closure of the original derivation.
appendContext drv { ${drv}.path = true; }
) relevantReferences
// listToAttrs (
map (drv: {
name = realisation drv;
value = drv;
}) targetDerivations
);
rewriteMemo =
# Mind the order of how the three attrsets are merged here.
# The order of precedence needs to be "explicitly specified replacements" > "rewrite exclusion (cutoffPackages)" > "rewrite".
# So the attrset merge order is the opposite.
mapAttrs (
drv: references:
let
rewrittenReferences = filter (dep: dep != drv && toString rewriteMemo.${dep} != dep) references;
rewrites = listToAttrs (
map (reference: {
name = reference;
value = rewriteMemo.${reference};
}) rewrittenReferences
);
in
replaceDirectDependencies {
drv = storePathOrKnownTargetDerivationMemo.${drv};
replacements = mapAttrsToList (name: value: {
oldDependency = name;
newDependency = value;
}) rewrites;
}
) relevantReferences
// listToAttrs (
map (drv: {
name = realisation drv;
value = storePathOrKnownTargetDerivationMemo.${realisation drv};
}) cutoffPackages
)
// listToAttrs (
map (
{ oldDependency, newDependency }:
{
name = realisation oldDependency;
value = rewriteMemo.${realisation newDependency};
}
) relevantReplacements
);
in
rewriteMemo.${realisation drv}

View File

@ -1,94 +0,0 @@
{ runCommandLocal, nix, lib }:
# Replace a single dependency in the requisites tree of drv, propagating
# the change all the way up the tree, without a full rebuild. This can be
# useful, for example, to patch a security hole in libc and still use your
# system safely without rebuilding the world. This should be a short term
# solution, as soon as a rebuild can be done the properly rebuild derivation
# should be used. The old dependency and new dependency MUST have the same-length
# name, and ideally should have close-to-identical directory layout.
#
# Example: safeFirefox = replaceDependency {
# drv = firefox;
# oldDependency = glibc;
# newDependency = overrideDerivation glibc (attrs: {
# patches = attrs.patches ++ [ ./fix-glibc-hole.patch ];
# });
# };
# This will rebuild glibc with your security patch, then copy over firefox
# (and all of its dependencies) without rebuilding further.
{ drv, oldDependency, newDependency, verbose ? true }:
let
inherit (lib)
any
attrNames
concatStringsSep
elem
filter
filterAttrs
listToAttrs
mapAttrsToList
stringLength
substring
;
warn = if verbose then builtins.trace else (x: y: y);
references = import (runCommandLocal "references.nix" { exportReferencesGraph = [ "graph" drv ]; } ''
(echo {
while read path
do
echo " \"$path\" = ["
read count
read count
while [ "0" != "$count" ]
do
read ref_path
if [ "$ref_path" != "$path" ]
then
echo " (builtins.storePath (/. + \"$ref_path\"))"
fi
count=$(($count - 1))
done
echo " ];"
done < graph
echo }) > $out
'').outPath;
discard = builtins.unsafeDiscardStringContext;
oldStorepath = builtins.storePath (discard (toString oldDependency));
referencesOf = drv: references.${discard (toString drv)};
dependsOnOldMemo = listToAttrs (map
(drv: { name = discard (toString drv);
value = elem oldStorepath (referencesOf drv) ||
any dependsOnOld (referencesOf drv);
}) (attrNames references));
dependsOnOld = drv: dependsOnOldMemo.${discard (toString drv)};
drvName = drv:
discard (substring 33 (stringLength (builtins.baseNameOf drv)) (builtins.baseNameOf drv));
rewriteHashes = drv: hashes: runCommandLocal (drvName drv) { nixStore = "${nix.out}/bin/nix-store"; } ''
$nixStore --dump ${drv} | sed 's|${baseNameOf drv}|'$(basename $out)'|g' | sed -e ${
concatStringsSep " -e " (mapAttrsToList (name: value:
"'s|${baseNameOf name}|${baseNameOf value}|g'"
) hashes)
} | $nixStore --restore $out
'';
rewrittenDeps = listToAttrs [ {name = discard (toString oldDependency); value = newDependency;} ];
rewriteMemo = listToAttrs (map
(drv: { name = discard (toString drv);
value = rewriteHashes (builtins.storePath drv)
(filterAttrs (n: v: elem (builtins.storePath (discard (toString n))) (referencesOf drv)) rewriteMemo);
})
(filter dependsOnOld (attrNames references))) // rewrittenDeps;
drvHash = discard (toString drv);
in assert (stringLength (drvName (toString oldDependency)) == stringLength (drvName (toString newDependency)));
rewriteMemo.${drvHash} or (warn "replace-dependency.nix: Derivation ${drvHash} does not depend on ${discard (toString oldDependency)}" drv)

View File

@ -0,0 +1,72 @@
{
lib,
runCommandLocal,
nix,
}:
# Replace some direct dependencies of drv, not recursing into the dependency tree.
# You likely want to use replaceDependencies instead, unless you plan to implement your own recursion mechanism.
{
drv,
replacements ? [ ],
}:
let
inherit (lib)
isStorePath
substring
stringLength
optionalString
escapeShellArgs
concatMap
;
in
if replacements == [ ] then
drv
else
let
drvName =
if isStorePath drv then
# Reconstruct the name from the actual store path if available.
substring 33 (stringLength (baseNameOf drv)) (baseNameOf drv)
else if drv ? drvAttrs.name then
# Try to get the name from the derivation arguments otherwise (for floating or deferred derivations).
drv.drvAttrs.name
+ (
let
outputName = drv.outputName or "out";
in
optionalString (outputName != "out") "-${outputName}"
)
else
throw "cannot reconstruct the derivation name from ${drv}";
in
runCommandLocal drvName { nativeBuildInputs = [ nix.out ]; } ''
createRewriteScript() {
while [ $# -ne 0 ]; do
oldBasename="$(basename "$1")"
newBasename="$(basename "$2")"
shift 2
if [ ''${#oldBasename} -ne ''${#newBasename} ]; then
echo "cannot rewrite $oldBasename to $newBasename: length does not match" >&2
exit 1
fi
echo "s|$oldBasename|$newBasename|g" >> rewrite.sed
done
}
createRewriteScript ${
escapeShellArgs (
[
drv
(placeholder "out")
]
++ concatMap (
{ oldDependency, newDependency }:
[
oldDependency
newDependency
]
) replacements
)
}
nix-store --dump ${drv} | sed -f rewrite.sed | nix-store --restore $out
''

View File

@ -8,16 +8,16 @@
buildGoModule rec {
pname = "aliae";
version = "0.22.1";
version = "0.22.2";
src = fetchFromGitHub {
owner = "jandedobbeleer";
repo = "aliae";
rev = "refs/tags/v${version}";
hash = "sha256-slixB7mzEdX3ecgbM6tO9IzVH+1w6DwssD1X3MrwAHw=";
hash = "sha256-IpOfTCMbnNUW8flyb7p98QEwveNb8wClyBuv7fAKm8Y=";
};
vendorHash = "sha256-U0Mt2U8WxDFDadIxASz609tUtiF4tETobAmYrk29Lh0=";
vendorHash = "sha256-aUKF/r0OFN0gZXCKHFYKyQa806NFP5lQAONFZlMP4vE=";
sourceRoot = "${src.name}/src";

View File

@ -0,0 +1,36 @@
{
lib,
immich,
buildNpmPackage,
nodejs,
makeWrapper,
}:
buildNpmPackage {
pname = "immich-cli";
src = "${immich.src}/cli";
inherit (immich.sources.components.cli) version npmDepsHash;
nativeBuildInputs = [ makeWrapper ];
inherit (immich.web) preBuild;
installPhase = ''
runHook preInstall
mkdir -p $out
mv package.json package-lock.json node_modules dist $out/
makeWrapper ${lib.getExe nodejs} $out/bin/immich --add-flags $out/dist/index.js
runHook postInstall
'';
meta = {
description = "Self-hosted photo and video backup solution (command line interface)";
homepage = "https://immich.app/docs/features/command-line-interface";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ jvanbruegge ];
inherit (nodejs.meta) platforms;
mainProgram = "immich";
};
}

View File

@ -0,0 +1,105 @@
{
lib,
src,
fetchFromGitHub,
immich,
python3,
# Override Python packages using
# self: super: { pkg = super.pkg.overridePythonAttrs (oldAttrs: { ... }); }
# Applied after defaultOverrides
packageOverrides ? self: super: { },
}:
let
defaultOverrides = self: super: {
pydantic = super.pydantic_1;
versioningit = super.versioningit.overridePythonAttrs (_: {
doCheck = false;
});
albumentations = super.albumentations.overridePythonAttrs (_: rec {
version = "1.4.3";
src = fetchFromGitHub {
owner = "albumentations-team";
repo = "albumentations";
rev = version;
hash = "sha256-JIBwjYaUP4Sc1bVM/zlj45cz9OWpb/LOBsIqk1m+sQA=";
};
});
};
python = python3.override {
self = python;
packageOverrides = lib.composeExtensions defaultOverrides packageOverrides;
};
in
python.pkgs.buildPythonApplication {
pname = "immich-machine-learning";
inherit (immich) version;
src = "${src}/machine-learning";
pyproject = true;
postPatch = ''
substituteInPlace pyproject.toml --replace-fail 'fastapi-slim' 'fastapi'
'';
pythonRelaxDeps = [ "setuptools" ];
pythonRemoveDeps = [ "opencv-python-headless" ];
build-system = with python.pkgs; [
poetry-core
cython
];
dependencies =
with python.pkgs;
[
insightface
opencv4
pillow
fastapi
uvicorn
aiocache
rich
ftfy
setuptools
python-multipart
orjson
gunicorn
huggingface-hub
tokenizers
pydantic
]
++ uvicorn.optional-dependencies.standard;
doCheck = false;
postInstall = ''
mkdir -p $out/share/immich
cp log_conf.json $out/share/immich
cp -r ann $out/${python.sitePackages}/
makeWrapper ${lib.getExe python.pkgs.gunicorn} "''${!outputBin}"/bin/machine-learning \
--prefix PYTHONPATH : "$out/${python.sitePackages}:$PYTHONPATH" \
--set-default MACHINE_LEARNING_WORKERS 1 \
--set-default MACHINE_LEARNING_WORKER_TIMEOUT 120 \
--set-default MACHINE_LEARNING_CACHE_FOLDER /var/cache/immich \
--set-default IMMICH_HOST "[::]" \
--set-default IMMICH_PORT 3003 \
--add-flags "app.main:app -k app.config.CustomUvicornWorker \
-w \"\$MACHINE_LEARNING_WORKERS\" \
-b \"\$IMMICH_HOST:\$IMMICH_PORT\" \
-t \"\$MACHINE_LEARNING_WORKER_TIMEOUT\"
--log-config-json $out/share/immich/log_conf.json"
'';
meta = {
description = "Self-hosted photo and video backup solution (machine learning component)";
homepage = "https://immich.app/";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ jvanbruegge ];
mainProgram = "machine-learning";
inherit (immich.meta) platforms;
};
}

View File

@ -0,0 +1,232 @@
{
lib,
stdenvNoCC,
buildNpmPackage,
fetchFromGitHub,
python3,
nodejs,
node-gyp,
runCommand,
nixosTests,
callPackage,
# build-time deps
glib,
pkg-config,
makeWrapper,
curl,
cacert,
unzip,
# runtime deps
ffmpeg-headless,
imagemagick,
libraw,
libheif,
vips,
perl,
}:
let
buildNpmPackage' = buildNpmPackage.override { inherit nodejs; };
sources = lib.importJSON ./sources.json;
inherit (sources) version;
buildLock = {
sources =
builtins.map
(p: {
name = p.pname;
inherit (p) version;
inherit (p.src) rev;
})
[
imagemagick
libheif
libraw
];
packages = [ ];
};
# The geodata website is not versioned, so we use the internet archive
geodata =
runCommand "immich-geodata"
{
outputHash = "sha256-imqSfzXaEMNo9T9tZr80sr/89n19kiFc8qwidFzRUaY=";
outputHashMode = "recursive";
nativeBuildInputs = [
cacert
curl
unzip
];
meta.license = lib.licenses.cc-by-40;
}
''
mkdir $out
url="https://web.archive.org/web/20240724153050/http://download.geonames.org/export/dump"
curl -Lo ./cities500.zip "$url/cities500.zip"
curl -Lo $out/admin1CodesASCII.txt "$url/admin1CodesASCII.txt"
curl -Lo $out/admin2Codes.txt "$url/admin2Codes.txt"
curl -Lo $out/ne_10m_admin_0_countries.geojson \
https://raw.githubusercontent.com/nvkelso/natural-earth-vector/ca96624a56bd078437bca8184e78163e5039ad19/geojson/ne_10m_admin_0_countries.geojson
unzip ./cities500.zip -d $out/
echo "2024-07-24T15:30:50Z" > $out/geodata-date.txt
'';
src = fetchFromGitHub {
owner = "immich-app";
repo = "immich";
rev = "v${version}";
inherit (sources) hash;
};
openapi = buildNpmPackage' {
pname = "immich-openapi-sdk";
inherit version;
src = "${src}/open-api/typescript-sdk";
inherit (sources.components."open-api/typescript-sdk") npmDepsHash;
installPhase = ''
runHook preInstall
npm config delete cache
npm prune --omit=dev --omit=optional
mkdir -p $out
mv package.json package-lock.json node_modules build $out/
runHook postInstall
'';
};
web = buildNpmPackage' {
pname = "immich-web";
inherit version;
src = "${src}/web";
inherit (sources.components.web) npmDepsHash;
preBuild = ''
rm node_modules/@immich/sdk
ln -s ${openapi} node_modules/@immich/sdk
# Rollup does not find the dependency otherwise
ln -s node_modules/@immich/sdk/node_modules/@oazapfts node_modules/
'';
installPhase = ''
runHook preInstall
cp -r build $out
runHook postInstall
'';
};
node-addon-api = stdenvNoCC.mkDerivation rec {
pname = "node-addon-api";
version = "8.0.0";
src = fetchFromGitHub {
owner = "nodejs";
repo = "node-addon-api";
rev = "v${version}";
hash = "sha256-k3v8lK7uaEJvcaj1sucTjFZ6+i5A6w/0Uj9rYlPhjCE=";
};
installPhase = ''
mkdir $out
cp -r *.c *.h *.gyp *.gypi index.js package-support.json package.json tools $out/
'';
};
vips' = vips.overrideAttrs (prev: {
mesonFlags = prev.mesonFlags ++ [ "-Dtiff=disabled" ];
});
in
buildNpmPackage' {
pname = "immich";
inherit version;
src = "${src}/server";
inherit (sources.components.server) npmDepsHash;
nativeBuildInputs = [
pkg-config
python3
makeWrapper
glib
node-gyp
];
buildInputs = [
ffmpeg-headless
imagemagick
libraw
libheif
vips' # Required for sharp
];
# Required because vips tries to write to the cache dir
makeCacheWritable = true;
preBuild = ''
cd node_modules/sharp
mkdir node_modules
ln -s ${node-addon-api} node_modules/node-addon-api
${lib.getExe nodejs} install/check
rm -r node_modules
cd ../..
rm -r node_modules/@img/sharp*
'';
installPhase = ''
runHook preInstall
npm config delete cache
npm prune --omit=dev
mkdir -p $out/build
mv package.json package-lock.json node_modules dist resources $out/
ln -s ${web} $out/build/www
ln -s ${geodata} $out/build/geodata
echo '${builtins.toJSON buildLock}' > $out/build/build-lock.json
makeWrapper ${lib.getExe nodejs} $out/bin/admin-cli --add-flags $out/dist/main --add-flags cli
makeWrapper ${lib.getExe nodejs} $out/bin/server --add-flags $out/dist/main --chdir $out \
--set IMMICH_BUILD_DATA $out/build --set NODE_ENV production \
--suffix PATH : "${
lib.makeBinPath [
perl
ffmpeg-headless
]
}"
runHook postInstall
'';
passthru = {
tests = {
inherit (nixosTests) immich;
};
machine-learning = callPackage ./machine-learning.nix { inherit src; };
inherit
src
sources
web
geodata
;
updateScript = ./update.sh;
};
meta = {
description = "Self-hosted photo and video backup solution";
homepage = "https://immich.app/";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ jvanbruegge ];
platforms = lib.platforms.linux;
mainProgram = "server";
};
}

View File

@ -0,0 +1,22 @@
{
"version": "1.115.0",
"hash": "sha256-H2FCR55redomrDjnnCQys47AaYbWEmlxO5NJEcVMBwY=",
"components": {
"cli": {
"npmDepsHash": "sha256-+zKtPHXjBd1KAKvI5xaY2/9qzVUg+8Ho/wrV9+TlU64=",
"version": "2.2.19"
},
"server": {
"npmDepsHash": "sha256-6CehRhPepspDpQW1h0Bx7EpH7hn42Ygqma/6wim14jA=",
"version": "1.115.0"
},
"web": {
"npmDepsHash": "sha256-ZmXfYktgOmMkDjfqSGyyflr2CmnC9yVnJ1gAcmd6A00=",
"version": "1.115.0"
},
"open-api/typescript-sdk": {
"npmDepsHash": "sha256-l1mLYFpFQjYxytY0ZWLq+ldUhZA6so0HqPgCABt0s9k=",
"version": "1.115.0"
}
}
}

View File

@ -0,0 +1,44 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq prefetch-npm-deps nix-prefetch-github coreutils
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
old_version=$(jq -r ".version" sources.json || echo -n "0.0.1")
version=$(curl -s "https://api.github.com/repos/immich-app/immich/releases/latest" | jq -r ".tag_name")
version="${version#v}"
echo "Updating to $version"
if [[ "$old_version" == "$version" ]]; then
echo "Already up to date!"
exit 0
fi
echo "Fetching src"
src_hash=$(nix-prefetch-github immich-app immich --rev "v${version}" | jq -r .hash)
upstream_src="https://raw.githubusercontent.com/immich-app/immich/v$version"
sources_tmp="$(mktemp)"
cat <<EOF > "$sources_tmp"
{
"version": "$version",
"hash": "$src_hash",
"components": {}
}
EOF
lock=$(mktemp)
for npm_component in cli server web "open-api/typescript-sdk"; do
echo "fetching $npm_component"
curl -s -o "$lock" "$upstream_src/$npm_component/package-lock.json"
hash=$(prefetch-npm-deps "$lock")
echo "$(jq --arg npm_component "$npm_component" \
--arg hash "$hash" \
--arg version "$(jq -r '.version' <"$lock")" \
'.components += {($npm_component): {npmDepsHash: $hash, version: $version}}' \
"$sources_tmp")" > "$sources_tmp"
done
rm "$lock"
cp "$sources_tmp" sources.json

View File

@ -1,16 +1,17 @@
{ lib
, copyDesktopItems
, fetchFromGitHub
, makeDesktopItem
, python3
, libsForQt5
, ffmpeg
{
lib,
copyDesktopItems,
fetchFromGitHub,
makeDesktopItem,
python3,
libsForQt5,
ffmpeg,
}:
python3.pkgs.buildPythonApplication rec {
pname = "onthespot";
version = "0.5";
format = "pyproject";
pyproject = true;
src = fetchFromGitHub {
owner = "casualsnek";
@ -19,12 +20,23 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-VaJBNsT7uNOGY43GnzhUqDQNiPoFZcc2UaIfOKgkufg=";
};
pythonRemoveDeps = [
"PyQt5-Qt5"
"PyQt5-stubs"
# Doesn't seem to be used in the sources and causes
# build issues
"PyOgg"
];
pythonRelaxDeps = true;
nativeBuildInputs = with python3.pkgs; [
copyDesktopItems
libsForQt5.wrapQtAppsHook
];
propagatedBuildInputs = with python3.pkgs; [
dependencies = with python3.pkgs; [
async-timeout
charset-normalizer
defusedxml
ffmpeg
@ -43,16 +55,6 @@ python3.pkgs.buildPythonApplication rec {
zeroconf
];
pythonRemoveDeps = [
"PyQt5-Qt5"
"PyQt5-stubs"
# Doesn't seem to be used in the sources and causes
# build issues
"PyOgg"
];
pythonRelaxDeps = true;
postInstall = ''
install -Dm444 $src/src/onthespot/resources/icon.png $out/share/icons/hicolor/256x256/apps/onthespot.png
'';
@ -72,13 +74,13 @@ python3.pkgs.buildPythonApplication rec {
})
];
meta = with lib; {
meta = {
description = "QT based Spotify music downloader written in Python";
homepage = "https://github.com/casualsnek/onthespot";
changelog = "https://github.com/casualsnek/onthespot/releases/tag/v${version}";
license = licenses.gpl2Only;
maintainers = with maintainers; [ onny ];
platforms = platforms.linux;
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ onny ];
platforms = lib.platforms.linux;
mainProgram = "onthespot_gui";
};
}

View File

@ -0,0 +1,79 @@
{
lib,
stdenv,
darwin,
python3Packages,
fetchFromGitHub,
installShellFiles,
ruff,
testers,
openapi-python-client,
}:
python3Packages.buildPythonApplication rec {
pname = "openapi-python-client";
version = "0.21.5";
pyproject = true;
src = fetchFromGitHub {
inherit version;
owner = "openapi-generators";
repo = "openapi-python-client";
rev = "refs/tags/v${version}";
hash = "sha256-/m/XXNqsr0FjYSEGMSw4zIUpWJDOqu9BzNuJKyb7fKY=";
};
nativeBuildInputs =
[
installShellFiles
]
++ lib.optionals stdenv.isDarwin [
darwin.ps
];
build-system = with python3Packages; [
hatchling
];
dependencies =
(with python3Packages; [
attrs
httpx
jinja2
pydantic
python-dateutil
ruamel-yaml
shellingham
typer
typing-extensions
])
++ [ ruff ];
# ruff is not packaged as a python module in nixpkgs
pythonRemoveDeps = [ "ruff" ];
postInstall = ''
# see: https://github.com/fastapi/typer/blob/5889cf82f4ed925f92e6b0750bf1b1ed9ee672f3/typer/completion.py#L54
# otherwise shellingham throws exception on darwin
export _TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1
installShellCompletion --cmd openapi-python-client \
--bash <($out/bin/openapi-python-client --show-completion bash) \
--fish <($out/bin/openapi-python-client --show-completion fish) \
--zsh <($out/bin/openapi-python-client --show-completion zsh)
'';
passthru = {
tests.version = testers.testVersion {
package = openapi-python-client;
};
};
meta = {
description = "Generate modern Python clients from OpenAPI";
homepage = "https://github.com/openapi-generators/openapi-python-client";
changelog = "https://github.com/openapi-generators/openapi-python-client/releases/tag/v${version}";
license = lib.licenses.mit;
mainProgram = "openapi-python-client";
maintainers = with lib.maintainers; [ konradmalik ];
};
}

View File

@ -2,7 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
python3,
python311,
pkg-config,
SDL2,
libpng,
@ -22,8 +22,8 @@ let
# base_version is of the form major.minor.patch
# vc_version is of the form YYMMDDCC
# version corresponds to the tag on GitHub
base_version = "8.2.1";
vc_version = "24030407";
base_version = "8.3.1";
vc_version = "24090601";
version = "${base_version}.${vc_version}";
in
stdenv.mkDerivation {
@ -34,7 +34,7 @@ stdenv.mkDerivation {
owner = "renpy";
repo = "renpy";
rev = version;
hash = "sha256-07Hj8mJGR0+Pn1DQ+sK5YQ3x3CTMsZ5h5yEoz44b2TM=";
hash = "sha256-k8mcDzaFngRF3Xl9cinUFU0T9sjxNIVrECUguARJVZ4=";
};
nativeBuildInputs = [
@ -42,8 +42,8 @@ stdenv.mkDerivation {
makeWrapper
# Ren'Py currently does not compile on Cython 3.x.
# See https://github.com/renpy/renpy/issues/5359
python3.pkgs.cython_0
python3.pkgs.setuptools
python311.pkgs.cython_0
python311.pkgs.setuptools
];
buildInputs =
@ -59,7 +59,7 @@ stdenv.mkDerivation {
zlib
harfbuzz
]
++ (with python3.pkgs; [
++ (with python311.pkgs; [
python
pygame-sdl2
tkinter
@ -100,13 +100,13 @@ stdenv.mkDerivation {
EOF
'';
buildPhase = with python3.pkgs; ''
buildPhase = with python311.pkgs; ''
runHook preBuild
${python.pythonOnBuildForHost.interpreter} module/setup.py build --parallel=$NIX_BUILD_CORES
runHook postBuild
'';
installPhase = with python3.pkgs; ''
installPhase = with python311.pkgs; ''
runHook preInstall
${python.pythonOnBuildForHost.interpreter} module/setup.py install_lib -d $out/${python.sitePackages}
@ -120,7 +120,7 @@ stdenv.mkDerivation {
runHook postInstall
'';
env.NIX_CFLAGS_COMPILE = with python3.pkgs; "-I${pygame-sdl2}/include/${python.libPrefix}";
env.NIX_CFLAGS_COMPILE = with python311.pkgs; "-I${pygame-sdl2}/include/${python.libPrefix}";
meta = {
description = "Visual Novel Engine";

View File

@ -19,13 +19,13 @@
buildDotnetModule rec {
pname = "ryujinx";
version = "1.1.1385"; # Based off of the official github actions builds: https://github.com/Ryujinx/Ryujinx/actions/workflows/release.yml
version = "1.1.1398"; # Based off of the official github actions builds: https://github.com/Ryujinx/Ryujinx/actions/workflows/release.yml
src = fetchFromGitHub {
owner = "Ryujinx";
repo = "Ryujinx";
rev = "ca59c3f4998e2d1beb3b0d0214611e3332238557";
hash = "sha256-pLE8UUH4BzYyR3pqyUwQ112vBOump0wKyZaKwE131yY=";
rev = "319507f2a12a6751f3ab833e498a3efd3119f806";
hash = "sha256-3DM/kahNhl8EhSIRuqH0trYoR51OrGxSE+GuOKxKr2c=";
};
enableParallelBuilding = false;

View File

@ -1,5 +1,6 @@
#! /usr/bin/env nix-shell
#! nix-shell -I nixpkgs=./. -i bash -p coreutils gnused curl common-updater-scripts nix-prefetch-git jq
# shellcheck shell=bash
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
@ -68,9 +69,10 @@ cd ../../../..
if [[ "${1-default}" != "--deps-only" ]]; then
SHA="$(nix-prefetch-git https://github.com/ryujinx/ryujinx --rev "$COMMIT" --quiet | jq -r '.sha256')"
update-source-version ryujinx "$NEW_VERSION" "$SHA" --rev="$COMMIT"
SRI=$(nix --experimental-features nix-command hash to-sri "sha256:$SHA")
update-source-version ryujinx "$NEW_VERSION" "$SRI" --rev="$COMMIT"
fi
echo "building Nuget lockfile"
$(nix-build -A ryujinx.fetch-deps --no-out-link)
eval "$(nix-build -A ryujinx.fetch-deps --no-out-link)"

View File

@ -112,11 +112,11 @@ let
in
{
ogre_14 = common {
version = "14.2.6";
hash = "sha256-kxvrRigSe6sPa3lAH+6zKTY4YEU9javlKHK8Zf6jxZE=";
# https://github.com/OGRECave/ogre/blob/v14.2.5/Components/Overlay/CMakeLists.txt
imguiVersion = "1.90.4";
imguiHash = "sha256-7+Ay7H97tIO6CUsEyaQv4i9q2FCw98eQUq/KYZyfTAw=";
version = "14.3.0";
hash = "sha256-SQ0Ij04W/KgonHDLFEPFDhXb/TDkT8I6W8J7hz3gtrg=";
# https://github.com/OGRECave/ogre/blob/v14.3.0/Components/Overlay/CMakeLists.txt
imguiVersion = "1.91.2";
imguiHash = "sha256-B7XXQNuEPcT1ID5nMYbAV+aNCG9gIrC9J7BLnYB8yjI=";
};
ogre_13 = common {

View File

@ -2718,6 +2718,28 @@ buildLuarocksPackage {
};
}) {};
neorg = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, lua-utils-nvim, luaOlder, nui-nvim, nvim-nio, pathlib-nvim, plenary-nvim }:
buildLuarocksPackage {
pname = "neorg";
version = "9.1.1-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/neorg-9.1.1-1.rockspec";
sha256 = "0zafy1hkrvh41vlx1g4rqlcvc4x9pi8dcji30qi0b8lj45pldyr3";
}).outPath;
src = fetchzip {
url = "https://github.com/nvim-neorg/neorg/archive/v9.1.1.zip";
sha256 = "18lk22lfzwwn4hy2s035g3kslqmvrr28lm5w9k3dazqwj5nlka3z";
};
disabled = luaOlder "5.1";
propagatedBuildInputs = [ lua-utils-nvim nui-nvim nvim-nio pathlib-nvim plenary-nvim ];
meta = {
homepage = "https://github.com/nvim-neorg/neorg";
description = "Modernity meets insane extensibility. The future of organizing your life in Neovim.";
maintainers = with lib.maintainers; [ GaetanLepage ];
license.fullName = "GPL-3.0";
};
}) {};
neotest = callPackage({ buildLuarocksPackage, fetchurl, fetchzip, luaOlder, nvim-nio, plenary-nvim }:
buildLuarocksPackage {
pname = "neotest";

View File

@ -583,7 +583,16 @@ in
export HOME=$(mktemp -d)
busted --lua=nlua
runHook postCheck
'';
'';
});
neorg = prev.neorg.overrideAttrs (oa: {
postConfigure = ''
cat ''${rockspecFilename}
substituteInPlace ''${rockspecFilename} \
--replace-fail "'nvim-nio ~> 1.7'," "'nvim-nio >= 1.7'," \
--replace-fail "'plenary.nvim == 0.1.4'," "'plenary.nvim',"
'';
});
plenary-nvim = prev.plenary-nvim.overrideAttrs (oa: {

View File

@ -5,7 +5,7 @@
, faraday
, base64
, psq
, httpaf
, httpun-types
, alcotest
, yojson
, hex
@ -34,7 +34,7 @@ buildDunePackage rec {
base64
psq
hpack
httpaf
httpun-types
];
doCheck = true;

View File

@ -7,11 +7,11 @@
buildDunePackage rec {
pname = "hpack";
version = "0.11.0";
version = "0.13.0";
src = fetchurl {
url = "https://github.com/anmonteiro/ocaml-h2/releases/download/${version}/h2-${version}.tbz";
hash = "sha256-GdXwazlgDurjzy7ekLpuMkCii8W+F/jl/IBv/WTHgFM=";
hash = "sha256-DYm28XgXUpTnogciO+gdW4P8Mbl1Sb7DTwQyo7KoBw8=";
};
minimalOCamlVersion = "4.08";

View File

@ -0,0 +1,24 @@
{ lib
, buildDunePackage
, fetchurl
, faraday
}:
buildDunePackage rec {
pname = "httpun-types";
version = "0.2.0";
src = fetchurl {
url = "https://github.com/anmonteiro/httpun/releases/download/${version}/httpun-${version}.tbz";
hash = "sha256-os4n70yFro4cEAjR49Xok9ayEbk0WGod0pQvfbaHvSw=";
};
propagatedBuildInputs = [ faraday ];
meta = {
description = "Common HTTP/1.x types";
homepage = "https://github.com/anmonteiro/httpun";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.vbgl ];
};
}

View File

@ -0,0 +1,30 @@
{
lib,
fetchFromGitHub,
buildDunePackage,
ounit,
}:
buildDunePackage {
pname = "mlbdd";
version = "0.7.2";
minimalOCamlVersion = "4.04";
src = fetchFromGitHub {
owner = "arlencox";
repo = "mlbdd";
rev = "v0.7.2";
hash = "sha256-GRkaUL8LQDdQx9mPvlJIXatgRfen/zKt+nGLiH7Mfvs=";
};
checkInputs = [ ounit ];
doCheck = true;
meta = {
homepage = "https://github.com/arlencox/mlbdd";
description = "A not-quite-so-simple Binary Decision Diagrams implementation for OCaml";
maintainers = with lib.maintainers; [ katrinafyi ];
};
}

View File

@ -19,6 +19,7 @@
, uri
, alcotest-lwt
, cstruct
, httpaf
}:
buildDunePackage rec {
@ -43,6 +44,7 @@ buildDunePackage rec {
tls
cstruct
tcpip
httpaf
];
doCheck = true;

View File

@ -28,7 +28,7 @@
buildPythonPackage rec {
pname = "aiogram";
version = "3.13.0";
version = "3.13.1";
pyproject = true;
disabled = pythonOlder "3.8";
@ -37,7 +37,7 @@ buildPythonPackage rec {
owner = "aiogram";
repo = "aiogram";
rev = "refs/tags/v${version}";
hash = "sha256-P/W47IhVL7wvYI+v6OvnFJt79KPrgY6d1jdOk477MdM=";
hash = "sha256-uTFh1ncIPF9SmAEVGeBnXEKrYzgifZan1sxk5UiG92U=";
};
build-system = [ hatchling ];

View File

@ -16,19 +16,19 @@
buildPythonPackage rec {
pname = "aioitertools";
version = "0.11.0";
format = "pyproject";
version = "0.12.0";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-QsaLjdOmnCv38iM7999LtYtVe8pSUqwC7VGHu8Z9aDE=";
hash = "sha256-wqkFW0+7dwX1YbnYYFPor10QzIRdIsMgCMQ0kLLY3Ws=";
};
nativeBuildInputs = [ flit-core ];
build-system = [ flit-core ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
dependencies = lib.optionals (pythonOlder "3.10") [ typing-extensions ];
nativeCheckInputs = [ unittestCheckHook ];
@ -37,6 +37,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables";
homepage = "https://aioitertools.omnilib.dev/";
changelog = "https://github.com/omnilib/aioitertools/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ teh ];
};

View File

@ -30,16 +30,14 @@
buildPythonPackage rec {
pname = "ale-py";
version = "0.9.1";
version = "0.10.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Farama-Foundation";
repo = "Arcade-Learning-Environment";
rev = "refs/tags/v${version}";
hash = "sha256-MpumAQ5OW/+fRIvrBlRWkgioxMVceb5LxEH2JjRk5zY=";
hash = "sha256-JQG8Db7OEKQ7THkHJ+foUm/L7Ctr0Ur8nb6Zc2Z/MJI=";
};
build-system = [
@ -64,12 +62,8 @@ buildPythonPackage rec {
postPatch =
# Relax the pybind11 version
''
substituteInPlace src/python/CMakeLists.txt \
substituteInPlace src/ale/python/CMakeLists.txt \
--replace-fail 'find_package(pybind11 ''${PYBIND11_VER} QUIET)' 'find_package(pybind11 QUIET)'
''
+ ''
substituteInPlace pyproject.toml \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
dontUseCmakeConfigure = true;

View File

@ -5,30 +5,32 @@
buildPythonPackage,
fetchPypi,
isodate,
msrest,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "azure-mgmt-privatedns";
version = "1.1.0";
format = "setuptools";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-MtucYFpKj/ANNON1UdXrBrTsJnq53iph3SJ1ypWj+5g=";
extension = "zip";
pname = "azure_mgmt_privatedns";
inherit version;
hash = "sha256-NCMYcvAblPYZXY7lQo4XRpJS7QTqCCjVIyXr578KEgs=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
azure-common
azure-mgmt-core
isodate
msrest
] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
typing-extensions
];
# no tests included
doCheck = false;
@ -40,7 +42,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Microsoft Azure DNS Private Zones Client Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/network/azure-mgmt-privatedns";
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-privatedns_${version}/sdk/network/azure-mgmt-privatedns/CHANGELOG.md";
license = licenses.mit;
maintainers = [ ];
};

View File

@ -9,13 +9,13 @@
darwin,
fastapi,
fetchFromGitHub,
fetchpatch,
grpcio,
httpx,
hypothesis,
importlib-resources,
kubernetes,
mmh3,
nixosTests,
numpy,
onnxruntime,
openssl,
@ -28,6 +28,7 @@
pkg-config,
posthog,
protobuf,
psutil,
pulsar-client,
pydantic,
pypika,
@ -38,8 +39,8 @@
requests,
rustc,
rustPlatform,
setuptools,
setuptools-scm,
setuptools,
tenacity,
tokenizers,
tqdm,
@ -47,12 +48,11 @@
typing-extensions,
uvicorn,
zstd,
nixosTests,
}:
buildPythonPackage rec {
pname = "chromadb";
version = "0.5.5";
version = "0.5.7";
pyproject = true;
disabled = pythonOlder "3.9";
@ -61,29 +61,15 @@ buildPythonPackage rec {
owner = "chroma-core";
repo = "chroma";
rev = "refs/tags/${version}";
hash = "sha256-e6ZctUFeq9hHXWaxGdVTiqFpwaU7A+EKn2EdQPI7DHE=";
hash = "sha256-+wRauCRrTQsGTadA6Ps0fXcpAl6ajsJRjcVEhP2+2ss=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-3FmnQEpknYNzI3WlQ3kc8qa4LFcn1zpxKDbkATU7/48=";
hash = "sha256-Y2mkWGgS77sGOOL+S/pw/UmrKDRyO+ZbN2Msj35sIl8=";
};
patches = [
# Remove these on the next release
(fetchpatch {
name = "pydantic19-fastapi1.patch";
url = "https://github.com/chroma-core/chroma/commit/d62c13da29b7bff77bd7dee887123e3c57e2c19e.patch";
hash = "sha256-E3xmh9vQZH3NCfG6phvzM65NGwlcHmPgfU6FERKAJ60=";
})
(fetchpatch {
name = "no-union-types-pydantic1.patch";
url = "https://github.com/chroma-core/chroma/commit/2fd5b27903dffcf8bdfbb781a25bcecc17b27672.patch";
hash = "sha256-nmiA/lKZVrHKXumc+J4uVRiMwrnFrz2tgMpfcay5hhw=";
})
];
pythonRelaxDeps = [
"chroma-hnswlib"
"orjson"
@ -141,6 +127,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
hypothesis
psutil
pytest-asyncio
pytestCheckHook
];

View File

@ -3,21 +3,24 @@
cirq-core,
requests,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "cirq-aqt";
format = "setuptools";
pyproject = true;
inherit (cirq-core) version src meta;
sourceRoot = "${src.name}/${pname}";
postPatch = ''
substituteInPlace requirements.txt \
--replace "requests~=2.18" "requests"
--replace-fail "requests~=2.18" "requests"
'';
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
cirq-core
requests
];

Some files were not shown because too many files have changed in this diff Show More