Merge master into haskell-updates

This commit is contained in:
github-actions[bot]
2024-12-15 00:19:59 +00:00
committed by GitHub
149 changed files with 11927 additions and 2958 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ stdenvNoCC.mkDerivation {
fileset = ../../lib;
};
buildInputs = [
nativeBuildInputs = [
nixdoc
nix
];
+1 -1
View File
@@ -17,7 +17,7 @@ invalidateFetcherByDrvHash (
{
nativeBuildInputs = [
cacert
(python3.withPackages (p: [
(python3.pythonOnBuildForHost.withPackages (p: [
p.aiohttp
p.rich
p.structlog
+8 -3
View File
@@ -1,18 +1,23 @@
{ # The pkgs used for dependencies for the testing itself
# Don't test properties of pkgs.lib, but rather the lib in the parent directory
pkgs ? import ../.. {} // { lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!"; },
# For testing someone may edit impure.nix to return cross pkgs, use `pkgsBuildBuild` directly so everything here works.
pkgsBB ? pkgs.pkgsBuildBuild,
nix ? pkgs-nixVersions.stable,
nixVersions ? [ pkgs-nixVersions.minimum nix pkgs-nixVersions.latest ],
pkgs-nixVersions ? import ./nix-for-tests.nix { inherit pkgs; },
pkgs-nixVersions ? import ./nix-for-tests.nix { pkgs = pkgsBB; },
}:
let
lib = import ../.;
testWithNix = nix:
import ./test-with-nix.nix { inherit lib nix pkgs; };
import ./test-with-nix.nix {
inherit lib nix;
pkgs = pkgsBB;
};
in
pkgs.symlinkJoin {
pkgsBB.symlinkJoin {
name = "nixpkgs-lib-tests";
paths = map testWithNix nixVersions;
}
+45
View File
@@ -7199,6 +7199,14 @@
githubId = 345808;
name = "Jakub Okoński";
};
fauxmight = {
email = "nix@ivories.org";
matrix = "@fauxmight:matrix.ivories.org";
github = "fauxmight";
githubId = 53975399;
name = "A Frederick Christensen";
keys = [ { fingerprint = "5A49 F4F9 3EDC 21E9 B7CC 4E94 9EEF 4142 5355 8AC4"; } ];
};
fbeffa = {
email = "beffa@fbengineering.ch";
github = "fedeinthemix";
@@ -7944,6 +7952,13 @@
githubId = 1851962;
name = "Galen Huntington";
};
gale-username = {
name = "gale";
email = "git@galewebsite.com";
github = "gale-username";
githubId = 168143489;
keys = [ { fingerprint = "1234 3726 9042 01F3 CE07 59BF A3B6 1E91 5508 F702"; } ];
};
gamb = {
email = "adam.gamble@pm.me";
github = "gamb";
@@ -9659,6 +9674,12 @@
githubId = 4085046;
name = "Imuli";
};
imurx = {
email = "imurx@proton.me";
github = "imurx";
githubId = 3698237;
name = "ImUrX";
};
inclyc = {
email = "i@lyc.dev";
github = "inclyc";
@@ -9677,6 +9698,13 @@
githubId = 37965;
name = "Léo Stefanesco";
};
inexcode = {
name = "Inex Code";
email = "nixpkgs@inex.dev";
matrix = "@inexcode:inex.rocks";
github = "inexcode";
githubId = 13254627;
};
infinidoge = {
name = "Infinidoge";
email = "infinidoge@inx.moe";
@@ -11848,6 +11876,12 @@
github = "kira-bruneau";
githubId = 382041;
};
kiranshila = {
email = "me@kiranshila.com";
name = "Kiran Shila";
github = "kiranshila";
githubId = 6305359;
};
kirelagin = {
email = "kirelagin@gmail.com";
matrix = "@kirelagin:matrix.org";
@@ -22438,6 +22472,11 @@
github = "thilobillerbeck";
githubId = 7442383;
};
thinnerthinker = {
name = "thinnerthinker";
github = "thinnerthinker";
githubId = 144260188;
};
thled = {
name = "Thomas Le Duc";
email = "dev@tleduc.de";
@@ -23005,6 +23044,12 @@
githubId = 4044033;
name = "Thomas Sowell";
};
TsubakiDev = {
email = "i@tsubakidev.cc";
github = "TsubakiDev";
githubId = 132794625;
name = "Daniel Wang";
};
ttrei = {
email = "reinis.taukulis@gmail.com";
github = "ttrei";
+6 -1
View File
@@ -60,6 +60,8 @@ in
enable = lib.mkEnableOption "git-lfs (Large File Storage)";
package = lib.mkPackageOption pkgs "git-lfs" { };
enablePureSSHTransfer = lib.mkEnableOption "Enable pure SSH transfer in server side by adding git-lfs-transfer to environment.systemPackages";
};
};
};
@@ -72,7 +74,10 @@ in
};
})
(lib.mkIf (cfg.enable && cfg.lfs.enable) {
environment.systemPackages = [ cfg.lfs.package ];
environment.systemPackages = lib.mkMerge [
[ cfg.lfs.package ]
(lib.mkIf cfg.lfs.enablePureSSHTransfer [ pkgs.git-lfs-transfer ])
];
programs.git.config = {
filter.lfs = {
clean = "git-lfs clean -- %f";
+33 -8
View File
@@ -5,7 +5,7 @@ let
settingsFormat = pkgs.formats.json { };
configJson = settingsFormat.generate "librenms-config.json" cfg.settings;
package = pkgs.librenms.override {
package = cfg.package.override {
logDir = cfg.logDir;
dataDir = cfg.dataDir;
};
@@ -60,6 +60,18 @@ in
options.services.librenms = with lib; {
enable = mkEnableOption "LibreNMS network monitoring system";
package = lib.mkPackageOption pkgs "librenms" { };
finalPackage = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = package;
defaultText = lib.literalExpression "package";
description = ''
The final package used by the module. This is the package that has all overrides.
'';
};
user = mkOption {
type = types.str;
default = "librenms";
@@ -526,13 +538,25 @@ in
User = cfg.user;
Group = cfg.group;
ExecStartPre = lib.mkIf cfg.database.createLocally [
"!${pkgs.writeShellScript "librenms-db-init" ''
DB_PASSWORD=$(cat ${cfg.database.passwordFile} | tr -d '\n')
echo "ALTER USER '${cfg.database.username}'@'localhost' IDENTIFIED BY '$DB_PASSWORD';" | ${pkgs.mariadb}/bin/mysql
${lib.optionalString cfg.useDistributedPollers ''
echo "ALTER USER '${cfg.database.username}'@'%' IDENTIFIED BY '$DB_PASSWORD';" | ${pkgs.mariadb}/bin/mysql
''}
''}"
"!${
pkgs.writeShellScript "librenms-db-init" (
if !isNull cfg.database.socket then
''
echo "ALTER USER '${cfg.database.username}'@'localhost' IDENTIFIED VIA unix_socket;" | ${pkgs.mariadb}/bin/mysql --socket='${cfg.database.socket}'
${lib.optionalString cfg.useDistributedPollers ''
echo "ALTER USER '${cfg.database.username}'@'%' IDENTIFIED VIA unix_socket;" | ${pkgs.mariadb}/bin/mysql --socket='${cfg.database.socket}'
''}
''
else
''
DB_PASSWORD=$(cat ${cfg.database.passwordFile} | tr -d '\n')
echo "ALTER USER '${cfg.database.username}'@'localhost' IDENTIFIED BY '$DB_PASSWORD';" | ${pkgs.mariadb}/bin/mysql
${lib.optionalString cfg.useDistributedPollers ''
echo "ALTER USER '${cfg.database.username}'@'%' IDENTIFIED BY '$DB_PASSWORD';" | ${pkgs.mariadb}/bin/mysql
''}
''
)
}"
];
};
script = ''
@@ -567,6 +591,7 @@ in
then ''
# use socket connection
echo "DB_SOCKET=${cfg.database.socket}" >> ${cfg.dataDir}/.env
echo "DB_PASSWORD=null" >> ${cfg.dataDir}/.env
''
else ''
# use TCP connection
+2 -1
View File
@@ -249,7 +249,8 @@ in
ExecReload = "${dhcpcd}/sbin/dhcpcd --rebind";
Restart = "always";
AmbientCapabilities = [ "CAP_NET_ADMIN" "CAP_NET_RAW" "CAP_NET_BIND_SERVICE" ];
ReadWritePaths = [ "/proc/sys/net/ipv4" "/proc/sys/net/ipv6" ]
ReadWritePaths = [ "/proc/sys/net/ipv4" ]
++ lib.optional cfgN.enableIPv6 "/proc/sys/net/ipv6"
++ lib.optionals useResolvConf ([ "/run/resolvconf" ] ++ config.networking.resolvconf.subscriberFiles);
DeviceAllow = "";
LockPersonality = true;
+2 -1
View File
@@ -129,7 +129,8 @@ let
"systemd-ask-password-console.service"
] ++ lib.optional (config.boot.initrd.clevis.useTang) "network-online.target";
requiredBy = let
noauto = lib.all (fs: lib.elem "noauto" fs.options) (getPoolFilesystems pool);
poolFilesystems = getPoolFilesystems pool;
noauto = poolFilesystems != [ ] && lib.all (fs: lib.elem "noauto" fs.options) poolFilesystems;
in getPoolMounts prefix pool ++ lib.optional (!noauto) "zfs-import.target";
before = getPoolMounts prefix pool ++ [ "shutdown.target" "zfs-import.target" ];
conflicts = [ "shutdown.target" ];
+1 -1
View File
@@ -135,7 +135,7 @@ in {
archi = handleTest ./archi.nix {};
aria2 = handleTest ./aria2.nix {};
armagetronad = handleTest ./armagetronad.nix {};
artalk = handleTest ./artalk.nix {};
artalk = runTest ./artalk.nix;
atd = handleTest ./atd.nix {};
atop = handleTest ./atop.nix {};
atticd = runTest ./atticd.nix;
+48 -20
View File
@@ -1,28 +1,56 @@
import ./make-test-python.nix (
{ lib, pkgs, ... }:
{
{ lib, pkgs, ... }:
{
name = "artalk";
name = "artalk";
meta = {
maintainers = with lib.maintainers; [ moraxyc ];
};
meta = {
maintainers = with lib.maintainers; [ moraxyc ];
};
nodes.machine =
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.curl ];
services.artalk = {
enable = true;
nodes.machine =
{ pkgs, ... }:
{
environment.systemPackages = [
pkgs.curl
pkgs.artalk
pkgs.sudo
];
services.artalk = {
enable = true;
settings = {
cache.enabled = true;
admin_users = [
{
name = "admin";
email = "admin@example.org";
# md5 for 'password'
password = "(md5)5F4DCC3B5AA765D61D8327DEB882CF99";
}
];
};
};
};
testScript = ''
machine.wait_for_unit("artalk.service")
testScript = ''
import json
machine.wait_for_unit("artalk.service")
machine.wait_for_open_port(23366)
machine.wait_for_open_port(23366)
machine.succeed("curl --fail --max-time 10 http://127.0.0.1:23366/")
'';
}
)
assert '${pkgs.artalk.version}' in machine.succeed("curl --fail --max-time 10 http://127.0.0.1:23366/api/v2/version")
# Get token
result = json.loads(machine.succeed("""
curl --fail -X POST --json '{
"email": "admin@example.org",
"password": "password"
}' 'http://127.0.0.1:23366/api/v2/auth/email/login'
"""))
token = result['token']
# Test admin
machine.succeed(f"""
curl --fail -X POST --header 'Authorization: {token}' 'http://127.0.0.1:23366/api/v2/cache/flush'
""")
'';
}
@@ -40,13 +40,13 @@ let
in
stdenv.mkDerivation rec {
pname = "strawberry";
version = "1.2.2";
version = "1.2.3";
src = fetchFromGitHub {
owner = "jonaski";
repo = pname;
rev = version;
hash = "sha256-X752GsP2b7rumQHzw52zI7PeE8tdM9Scgl3nHVcpO/s=";
hash = "sha256-90gnPw21oBHrRslJmB2hUId0WI7Gf+I4bvdS+dvAHdI=";
};
# the big strawberry shown in the context menu is *very* much in your face, so use the grey version instead
@@ -0,0 +1,11 @@
--- a/build/deps/src/org/jetbrains/intellij/build/impl/BundledMavenDownloader.kt
+++ b/build/deps/src/org/jetbrains/intellij/build/impl/BundledMavenDownloader.kt
@@ -35,7 +35,7 @@
"org.jdom:jdom2:2.0.6.1",*/
)
-private val mavenTelemetryDependencies = listOf("com.fasterxml.jackson.core:jackson-core:2.16.0")
+private val mavenTelemetryDependencies = listOf("com.fasterxml.jackson.core:jackson-core:2.17.0")
object BundledMavenDownloader {
private val mutex = Mutex()
@@ -46,11 +46,11 @@
return URI.create("${base}/${groupStr}/${artifactId}/${version}/${artifactId}-${version}${classifierStr}.${packaging}")
--- a/platform/build-scripts/downloader/src/org/jetbrains/intellij/build/dependencies/JdkDownloader.kt
+++ b/platform/build-scripts/downloader/src/org/jetbrains/intellij/build/dependencies/JdkDownloader.kt
@@ -33,11 +33,7 @@
}
suspend fun getJdkHome(communityRoot: BuildDependenciesCommunityRoot, os: OS, arch: Arch, infoLog: (String) -> Unit): Path {
- val jdkUrl = getUrl(communityRoot = communityRoot, os = os, arch = arch)
@@ -55,11 +55,7 @@
variation: String? = null,
infoLog: (String) -> Unit,
): Path {
- val jdkUrl = getUrl(communityRoot = communityRoot, os = os, arch = arch, jdkBuildNumber = jdkBuildNumber, variation = variation)
- val jdkArchive = downloadFileToCacheLocation(url = jdkUrl.toString(), communityRoot = communityRoot)
- val jdkExtracted = BuildDependenciesDownloader.extractFileToCacheLocation(communityRoot = communityRoot,
- archiveFile = jdkArchive,
@@ -72,15 +72,15 @@
* Set both properties if a .snap package should be produced.
--- a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/LinuxDistributionBuilder.kt
+++ b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/LinuxDistributionBuilder.kt
@@ -45,7 +45,7 @@
withContext(Dispatchers.IO) {
@@ -50,7 +50,7 @@
val distBinDir = targetPath.resolve("bin")
val sourceBinDir = context.paths.communityHomeDir.resolve("bin/linux")
- copyFileToDir(NativeBinaryDownloader.downloadRestarter(context = context, os = OsFamily.LINUX, arch = arch), distBinDir)
addNativeLauncher(distBinDir, targetPath, arch)
- copyFileToDir(NativeBinaryDownloader.getRestarter(context, OsFamily.LINUX, arch), distBinDir)
+ copyFileToDir(sourceBinDir.resolve("${arch.dirName}/restarter"), distBinDir)
copyFileToDir(sourceBinDir.resolve("${arch.dirName}/fsnotifier"), distBinDir)
copyFileToDir(sourceBinDir.resolve("${arch.dirName}/libdbm.so"), distBinDir)
generateBuildTxt(context, targetPath)
copyDistFiles(context, targetPath, OsFamily.LINUX, arch)
@@ -85,6 +85,8 @@
}
}
@@ -90,6 +90,16 @@
val runtimeDir = context.bundledRuntime.extract(os = OsFamily.LINUX, arch = arch)
updateExecutablePermissions(runtimeDir, executableFileMatchers)
val tarGzPath = buildTarGz(arch = arch, runtimeDir = runtimeDir, unixDistPath = osAndArchSpecificDistPath, suffix = suffix(arch))
@@ -383,7 +385,8 @@
}
private suspend fun addNativeLauncher(distBinDir: Path, targetPath: Path, arch: JvmArchitecture) {
- val (execPath, licensePath) = NativeBinaryDownloader.getLauncher(context, OsFamily.LINUX, arch)
+ val execPath = Path.of("XPLAT_LAUNCHER_PREBUILT_PATH_HERE/Linux-${arch.archName}/xplat-launcher")
+ val licensePath = Path.of("XPLAT_LAUNCHER_PREBUILT_PATH_HERE/license/xplat-launcher-third-party-licenses.html")
copyFile(execPath, distBinDir.resolve(context.productProperties.baseFileName))
copyFile(licensePath, targetPath.resolve("license/launcher-third-party-libraries.html"))
}
--- a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/brokenPlugins.kt
+++ b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/brokenPlugins.kt
@@ -9,6 +9,8 @@
@@ -137,7 +147,7 @@
- // Ideal solution would be to move compilation to other process altogether and do not modify current process classpath
- println(" * Downloading $kotlinJpsPluginUrl")
- val tmpLocation = Files.createTempFile(cacheLocation.parent, cacheLocation.name, ".tmp")
- suspendingRetryWithExponentialBackOff {
- retryWithExponentialBackOff {
- FileUtils.copyURLToFile(kotlinJpsPluginUrl.toURL(), tmpLocation.toFile())
- }
- Files.move(tmpLocation, cacheLocation, StandardCopyOption.ATOMIC_MOVE)
@@ -19,10 +19,14 @@ To test the build process of every IDE (as well as the process for adding plugin
- This will update binary IDEs and plugins, and automatically commit them
- Source builds need a bit more effort, as they **aren't automated at the moment**:
- Find the build of the stable release you want to target (usually different for pycharm and idea, should have three components)
- I find this at https://jetbrains.com/updates/updates.xml (search for `product name="`, then `fullNumber`)
- Build number is avaliable on JetBrains website:
- IDEA: https://www.jetbrains.com/idea/download/other.html
- PyCharm: https://www.jetbrains.com/pycharm/download/other.html
- Update the `version` & `buildNumber` fields in source/default.nix
- Empty the `ideaHash`, `androidHash`, `jpsHash` and `restarterHash` (only `ideaHash` and `restarterHash` changes on a regular basis) fields and try to build to get the new hashes
- Run `nix build .#jetbrains.(idea/pycharm)-community-src.src.src`, then `./source/build_maven.py source/idea_maven_artefacts.json result/`
- Run these commands respectively:
- `nix build .#jetbrains.idea-community-src.src.src && ./source/build_maven.py source/idea_maven_artefacts.json result/` for IDEA
- `nix build .#jetbrains.pycharm-community-src.src.src && ./source/build_maven.py source/pycharm_maven_artefacts.json result/` for PyCharm
- Update `source/brokenPlugins.json` (from https://plugins.jetbrains.com/files/brokenPlugins.json)
- Do a test build
- If it succeeds, make a PR/merge
File diff suppressed because one or more lines are too long
@@ -1,5 +1,6 @@
{ fetchFromGitHub
, fetchurl
, fetchzip
, lib
, linkFarm
, makeWrapper
@@ -11,6 +12,7 @@
, ant
, cmake
, glib
, glibc
, jetbrains
, kotlin
, libdbusmenu
@@ -118,6 +120,9 @@ let
inherit src;
sourceRoot = "${src.name}/native/restarter";
cargoHash = restarterHash;
# Allow static linking
buildInputs = [ glibc glibc.static ];
};
jpsRepo = runCommand "jps-bootstrap-repository"
@@ -177,6 +182,8 @@ let
"https://packages.jetbrains.team/maven/p/ki/maven/${entry.url}"
"https://packages.jetbrains.team/maven/p/dpgpv/maven/${entry.url}"
"https://cache-redirector.jetbrains.com/download.jetbrains.com/teamcity-repository/${entry.url}"
"https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide-plugin-dependencies/${entry.url}"
"https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/public/p/compose/dev/${entry.url}"
];
sha256 = entry.hash;
};
@@ -188,16 +195,22 @@ let
repoUrl = "https://cache-redirector.jetbrains.com/maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide-plugin-dependencies";
groupId = builtins.replaceStrings [ "." ] [ "/" ] "org.jetbrains.kotlin";
artefactId = "kotlin-jps-plugin-classpath";
version = "1.9.22";
version = "2.0.21-RC";
in
fetchurl {
url = repoUrl + "/" + groupId + "/" + artefactId + "/" + version + "/" + artefactId + "-" + version + ".jar";
hash = "sha256-ZPfEceGoIChDmjIAjjhDZpyMWQ7/DtP9Ll4YIrZN+PM=";
hash = "sha256-jFjxP1LGjrvc1x2XqF5gg/SeKdSFNefxABBlrYl81zA=";
};
targetClass = if buildType == "pycharm" then "intellij.pycharm.community.build" else "intellij.idea.community.build";
targetName = if buildType == "pycharm" then "PyCharmCommunityInstallersBuildTarget" else "OpenSourceCommunityInstallersBuildTarget";
xplat-launcher = fetchzip {
url = "https://cache-redirector.jetbrains.com/intellij-dependencies/org/jetbrains/intellij/deps/launcher/242.22926/launcher-242.22926.tar.gz";
hash = "sha256-ttrQZUbBvvyH1BSVt1yWOoD82WwRi/hkoRfrsdCjwTA=";
stripRoot = false;
};
in
stdenvNoCC.mkDerivation rec {
pname = "${buildType}-community";
@@ -210,6 +223,7 @@ stdenvNoCC.mkDerivation rec {
patches = [
../patches/no-download.patch
../patches/disable-sbom-generation.patch
../patches/bump-jackson-core-in-source.patch
];
postPatch = ''
@@ -217,20 +231,24 @@ stdenvNoCC.mkDerivation rec {
cp ${fsnotifier}/bin/fsnotifier bin/linux/amd64/fsnotifier
cp ${libdbm}/lib/libdbm.so bin/linux/amd64/libdbm.so
sed \
-e 's|JPS_PLUGIN_CLASSPATH_HERE|${kotlin-jps-plugin-classpath}|' \
-e 's|KOTLIN_PATH_HERE|${kotlin}|' \
-i platform/build-scripts/src/org/jetbrains/intellij/build/kotlin/KotlinCompilerDependencyDownloader.kt
sed \
-e 's|JDK_PATH_HERE|${jbr}/lib/openjdk|' \
-i platform/build-scripts/downloader/src/org/jetbrains/intellij/build/dependencies/JdkDownloader.kt
sed \
-e 's|BROKEN_PLUGINS_HERE|${./brokenPlugins.json}|' \
-i platform/build-scripts/src/org/jetbrains/intellij/build/impl/brokenPlugins.kt
sed \
-e 's|MAVEN_REPO_HERE|${mvnRepo}/.m2/repository/|' \
-e 's|MAVEN_PATH_HERE|${maven}/maven|' \
-i build/deps/src/org/jetbrains/intellij/build/impl/BundledMavenDownloader.kt
substituteInPlace \
platform/build-scripts/src/org/jetbrains/intellij/build/kotlin/KotlinCompilerDependencyDownloader.kt \
--replace-fail 'JPS_PLUGIN_CLASSPATH_HERE' '${kotlin-jps-plugin-classpath}' \
--replace-fail 'KOTLIN_PATH_HERE' '${kotlin}'
substituteInPlace \
platform/build-scripts/downloader/src/org/jetbrains/intellij/build/dependencies/JdkDownloader.kt \
--replace-fail 'JDK_PATH_HERE' '${jbr}/lib/openjdk'
substituteInPlace \
platform/build-scripts/src/org/jetbrains/intellij/build/impl/brokenPlugins.kt \
--replace-fail 'BROKEN_PLUGINS_HERE' '${./brokenPlugins.json}'
substituteInPlace \
platform/build-scripts/src/org/jetbrains/intellij/build/impl/LinuxDistributionBuilder.kt \
--replace-fail 'XPLAT_LAUNCHER_PREBUILT_PATH_HERE' '${xplat-launcher}'
substituteInPlace \
build/deps/src/org/jetbrains/intellij/build/impl/BundledMavenDownloader.kt \
--replace-fail 'MAVEN_REPO_HERE' '${mvnRepo}/.m2/repository/' \
--replace-fail 'MAVEN_PATH_HERE' '${maven}/maven'
echo '${buildNumber}.SNAPSHOT' > build.txt
'';
@@ -244,7 +262,7 @@ stdenvNoCC.mkDerivation rec {
-Djps.kotlin.home=${kotlin} \
-Dintellij.build.target.os=linux \
-Dintellij.build.target.arch=x64 \
-Dintellij.build.skip.build.steps=mac_artifacts,mac_dmg,mac_sit,windows_exe_installer,windows_sign,repair_utility_bundle_step \
-Dintellij.build.skip.build.steps=mac_artifacts,mac_dmg,mac_sit,windows_exe_installer,windows_sign,repair_utility_bundle_step,sources_archive \
-Dintellij.build.unix.snaps=false \
--java-argfile-target=java_argfile \
/build/source \
@@ -41,11 +41,8 @@ def add_libraries(root_path: str, hashes: list[dict[str, str]], projects_to_proc
add_entries(sources, targets, hashes)
modules_xml = parse(open(root_path+"/modules.xml").read())
for entry in modules_xml["project"]["component"]:
if entry["@name"] != "ProjectModuleManager":
continue
for module in entry["modules"]["module"]:
projects_to_process.append(module["@filepath"])
for module in modules_xml["project"]["component"]["modules"]["module"]:
projects_to_process.append(module["@filepath"])
def add_iml(path: str, hashes: list[dict[str, str]], projects_to_process: list[str]):
@@ -3,23 +3,23 @@
{
idea-community = callPackage ./build.nix {
version = "2024.1.3";
buildNumber = "241.17890.1";
version = "2024.3.1";
buildNumber = "243.22562.145";
buildType = "idea";
ideaHash = "sha256-jWFnewxRkriSmV6CgGX1r//uaErMINfx3Z+JpkE34jk=";
androidHash = "sha256-hX2YdRYNRg0guskNiYfxdl9osgZojRen82IhgA6G0Eo=";
jpsHash = "sha256-Abr7L1FyqzRoUSDtsJs3cTEdkhORY5DzsQnOo5irVRI=";
restarterHash = "sha256-XdjyuJUQMvhC0fl6sMj0sRWlqgUb3ZgBmKKXcD3egkk=";
ideaHash = "sha256-So55gxse7TU05F2c1pe/2BPjZ6xNlCi0Lhaxm+45w/M=";
androidHash = "sha256-2ZLTh3mwrIWOqn1UHqAVibG5JvfvxinqDna/EGxd0Ds=";
jpsHash = "sha256-p3AEHULhVECIicyhCYNkxeQoMAorrbvoIj7jcqxYD2s=";
restarterHash = "sha256-m6HK4kxtAlN6EaszI/xpkVYDaY8W3Qn9FGWgvaW/UYI=";
mvnDeps = ./idea_maven_artefacts.json;
};
pycharm-community = callPackage ./build.nix {
version = "2024.1.3";
buildNumber = "241.17890.14";
version = "2024.3";
buildNumber = "243.21565.199";
buildType = "pycharm";
ideaHash = "sha256-tTB91/RHEWP/ZILPNFAbolVBLvgjLXTdD/uF/pdJ22Y=";
androidHash = "sha256-hX2YdRYNRg0guskNiYfxdl9osgZojRen82IhgA6G0Eo=";
jpsHash = "sha256-Abr7L1FyqzRoUSDtsJs3cTEdkhORY5DzsQnOo5irVRI=";
restarterHash = "sha256-TbTIz9pc5wqL54TAMRoQ/9Ax/qsDp+r+h5jn2ub0hes=";
mvnDeps = ./idea_maven_artefacts.json;
ideaHash = "sha256-NohKF30k3aSYgDUPKrhE2CZmjzT8TK0zw++0Low1OfM=";
androidHash = "sha256-H1JegxX6sj7XG0EdZhtzL92GupCCoIq4akgK9t06nXM=";
jpsHash = "sha256-p3AEHULhVECIicyhCYNkxeQoMAorrbvoIj7jcqxYD2s=";
restarterHash = "sha256-CnTYpYx6SoT6XaS79cm0QpIijIiPKpFh4LfiPJkByXA=";
mvnDeps = ./pycharm_maven_artefacts.json;
};
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -18,13 +18,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "texstudio";
version = "4.8.4";
version = "4.8.5";
src = fetchFromGitHub {
owner = "texstudio-org";
repo = "texstudio";
rev = finalAttrs.version;
hash = "sha256-gGL9eM0OsUg34GXFsz5LJ738WSl8L8mGfOcZZPNceT4=";
hash = "sha256-/sxXtapR55+/pTljFl03DYlJa7dMZVNlPji4/a06yZI=";
};
nativeBuildInputs = [
@@ -10,18 +10,18 @@
vimUtils,
}:
let
version = "0.0.12";
version = "0.0.13";
src = fetchFromGitHub {
owner = "yetone";
repo = "avante.nvim";
tag = "v${version}";
hash = "sha256-yFHX9WCdTBtFZ2Yhy542Rg9nyIu6IWyRjKkS+ojZsdM=";
hash = "sha256-JTuVq5fil2bpkptpw+kj0PFOp9Rk7RpOxc0GN/blL6M=";
};
avante-nvim-lib = rustPlatform.buildRustPackage {
pname = "avante-nvim-lib";
inherit version src;
cargoHash = "sha256-n0+UT9wYnmPDOX2LKWztURqYLy2oa8sUeQLycR3/Zr0=";
cargoHash = "sha256-mCQm+ZBH5KehCbpKZ2zFl34sJh4yfKmA8GMcteK5SrA=";
nativeBuildInputs = [
pkg-config
@@ -42,7 +42,7 @@ let
};
in
vimUtils.buildVimPlugin {
pname = "avante-nvim";
pname = "avante.nvim";
inherit version src;
dependencies = with vimPlugins; [
@@ -1,11 +1,13 @@
{
buildPythonApplication,
nix,
makeWrapper,
python3Packages,
lib,
buildPythonApplication,
makeWrapper,
nix,
nix-prefetch-git,
nurl,
python3Packages,
vimPluginsUpdater,
writeShellScript,
# optional
neovim-unwrapped,
@@ -48,5 +50,10 @@ buildPythonApplication {
export PYTHONPATH=pkgs/applications/editors/vim/plugins:maintainers/scripts/pluginupdate-py:$PYTHONPATH
'';
passthru.updateScript = writeShellScript "updateScript" ''
# don't saturate the update bot connection
${lib.getExe vimPluginsUpdater} --proc 2 update
'';
meta.mainProgram = "vim-plugins-updater";
}
+2 -2
View File
@@ -22,11 +22,11 @@
stdenv.mkDerivation rec {
pname = "survex";
version = "1.4.13";
version = "1.4.14";
src = fetchurl {
url = "https://survex.com/software/${version}/${pname}-${version}.tar.gz";
hash = "sha256-4ejaOv0rwJRrV8f616D24IjIv5DXVJfY3fSTueiJG3M=";
hash = "sha256-TKOgbwUGE1z1PUZxfukugZWsJY1ml/VMAJ7xDIqWZWs=";
};
nativeBuildInputs = [
@@ -38,14 +38,14 @@
}:
stdenv.mkDerivation (finalAttrs: {
version = "1.6.3";
version = "1.6.4";
pname = "syncthingtray";
src = fetchFromGitHub {
owner = "Martchus";
repo = "syncthingtray";
rev = "v${finalAttrs.version}";
hash = "sha256-nWG9r0/qs9Jrj0Bo3RKtNSP1pnUd7CRiEkkRWf0UMNs=";
hash = "sha256-xLgkBBh4OMHZYlIiRemJ1aYEwRp+b/Q3dPKm9zpxNjo=";
};
buildInputs =
@@ -25,6 +25,11 @@ let
# Rename the variables to prevent infinite recursion
requireSigningDefault = requireSigning;
allowAddonSideloadDefault = allowAddonSideload;
# Specifying --(dis|en)able-elf-hack on a platform for which it's not implemented will give `--disable-elf-hack is not available in this configuration`
# This is declared here because it's used in the default value of elfhackSupport
isElfhackPlatform = stdenv: stdenv.hostPlatform.isElf &&
(stdenv.hostPlatform.isi686 || stdenv.hostPlatform.isx86_64 || stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64);
in
{ lib
@@ -110,6 +115,7 @@ in
, jemallocSupport ? !stdenv.hostPlatform.isMusl, jemalloc
, ltoSupport ? (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.is64bit && !stdenv.hostPlatform.isRiscV), overrideCC, buildPackages
, pgoSupport ? (stdenv.hostPlatform.isLinux && stdenv.hostPlatform == stdenv.buildPlatform), xvfb-run
, elfhackSupport ? isElfhackPlatform stdenv && !(stdenv.hostPlatform.isMusl && stdenv.hostPlatform.isAarch64)
, pipewireSupport ? waylandSupport && webrtcSupport
, pulseaudioSupport ? stdenv.hostPlatform.isLinux, libpulseaudio
, sndioSupport ? stdenv.hostPlatform.isLinux, sndio
@@ -160,6 +166,7 @@ in
assert stdenv.cc.libc or null != null;
assert pipewireSupport -> !waylandSupport || !webrtcSupport -> throw "${pname}: pipewireSupport requires both wayland and webrtc support.";
assert elfhackSupport -> isElfhackPlatform stdenv;
let
inherit (lib) enableFeature;
@@ -425,9 +432,7 @@ buildStdenv.mkDerivation {
"--enable-lto=cross" # Cross-Language LTO
"--enable-linker=lld"
]
# elf-hack is broken when using clang+lld:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
++ lib.optional (ltoSupport && (buildStdenv.hostPlatform.isAarch32 || buildStdenv.hostPlatform.isi686 || buildStdenv.hostPlatform.isx86_64)) "--disable-elf-hack"
++ lib.optional (isElfhackPlatform stdenv) (enableFeature elfhackSupport "elf-hack")
++ lib.optional (!drmSupport) "--disable-eme"
++ lib.optional (allowAddonSideload) "--allow-addon-sideload"
++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
@@ -1,11 +1,11 @@
{
"packageVersion": "133.0-1",
"packageVersion": "133.0.3-1",
"source": {
"rev": "133.0-1",
"sha256": "1xf7gx3xm3c7dhch9gwpb0xp11lcyim1nrbm8sjljxdcs7iq9jy4"
"rev": "133.0.3-1",
"sha256": "05mlqqcvsa84h3nagm51hwsxkxsbcn2676fj4bih37ddlgkylf3b"
},
"firefox": {
"version": "133.0",
"sha512": "b16f9898bee4121914caef48d4f7f44bf9d69aee168586b02bf1b4f4197844fd10179e1b63b273f52929fb348030df36328f24993cd666969da4ddc82562a90c"
"version": "133.0.3",
"sha512": "ce48beaa5bb1717d9b6dbfff035b1bb5de1456df14b6a91adfaf3ccfb7ac550ab7ee854546231424a920e01d981825253609fce2ec326c4aa1ca316bbbdb31f8"
}
}
@@ -138,7 +138,7 @@ let
s:
mutFirstChar lib.toLower (lib.concatMapStrings (mutFirstChar lib.toUpper) (lib.splitString "-" s));
# finds the images archive for the desired architecture, aborts in case no suitable archive is found
# finds the images archive for the desired architecture, throws in case no suitable archive is found
findImagesArchive =
arch:
let
@@ -146,17 +146,17 @@ let
in
lib.findFirst (
n: lib.hasInfix arch n
) (abort "k3s: no airgap images for ${arch} available") imagesVersionsNames;
) (throw "k3s: no airgap images for ${arch} available") imagesVersionsNames;
# a shortcut that provides the images archive for the host platform. Currently only supports
# aarch64 (arm64) and x86_64 (amd64), aborts on other architectures.
# aarch64 (arm64) and x86_64 (amd64), throws on other architectures.
airgapImages = fetchurl (
if stdenv.hostPlatform.isAarch64 then
imagesVersions.${findImagesArchive "arm64"}
else if stdenv.hostPlatform.isx86_64 then
imagesVersions.${findImagesArchive "amd64"}
else
abort "k3s: airgap images cannot be found automatically for architecture ${stdenv.hostPlatform.linuxArch}, consider using an image archive with an explicit architecture."
throw "k3s: airgap images cannot be found automatically for architecture ${stdenv.hostPlatform.linuxArch}, consider using an image archive with an explicit architecture."
);
# so, k3s is a complicated thing to package
@@ -9,13 +9,13 @@
"vendorHash": null
},
"acme": {
"hash": "sha256-pBe+X0ZjSV/4GaN+EyS3/Bim0wPlrwgKJlRSTzcNn3E=",
"hash": "sha256-653mKRMjXSUO+/7OXhgenicALwsmmYk8CcNVR7YPVSQ=",
"homepage": "https://registry.terraform.io/providers/vancluever/acme",
"owner": "vancluever",
"repo": "terraform-provider-acme",
"rev": "v2.28.1",
"rev": "v2.28.2",
"spdx": "MPL-2.0",
"vendorHash": "sha256-o4imbzlkhj5dd8gH8k/saXSmcBTl9u10p/yJjgUrj5Q="
"vendorHash": "sha256-nxaFMeNAfKE/zlCBJwToYEBlpOIKaEeNH5AdkfQiIx0="
},
"age": {
"hash": "sha256-bJrzjvkrCX93bNqCA+FdRibHnAw6cb61StqtwUY5ok4=",
@@ -162,11 +162,11 @@
"vendorHash": null
},
"bigip": {
"hash": "sha256-7Km+FqUyCCFzVmSpg4m7FuWs3MF+mKqPxEQApQqe35M=",
"hash": "sha256-hXQR6JcnZesO3rY/SkSxoff8JRuzK6oeEOorG8evNwg=",
"homepage": "https://registry.terraform.io/providers/F5Networks/bigip",
"owner": "F5Networks",
"repo": "terraform-provider-bigip",
"rev": "v1.22.5",
"rev": "v1.22.6",
"spdx": "MPL-2.0",
"vendorHash": null
},
@@ -705,13 +705,13 @@
"vendorHash": "sha256-F78OR8EG0Vy3WVJWTOlAsIBazsSXGD6KeceYuGnBqjQ="
},
"kubectl": {
"hash": "sha256-/tlwr6fh7/8FQew0MVaftvZQVuR/FGWVcEyHXTTCIUo=",
"hash": "sha256-5r8ZpifNJZ+UHys7jWVZCd6f9ylT3NBiccsCSQbNy6o=",
"homepage": "https://registry.terraform.io/providers/gavinbunney/kubectl",
"owner": "gavinbunney",
"repo": "terraform-provider-kubectl",
"rev": "v1.16.0",
"rev": "v1.18.0",
"spdx": "MPL-2.0",
"vendorHash": "sha256-K4Ro2q1dn5EdjZOGKfIuirx3kaFmRj9a1iPhgvjiFkQ="
"vendorHash": "sha256-pE0WujGxCMW0/27F8aaNtyIHdsOJTwEJL+bdiHpzu7s="
},
"kubernetes": {
"hash": "sha256-CCzT8B/73PEtU9/nAJrQ2ZBr9ra8QH+TOcQtISHiUAI=",
@@ -1003,11 +1003,11 @@
"vendorHash": "sha256-vT1n4FN0s9rQFj4HuXPm6lvNdzWZMyrzeWAanHOQqCg="
},
"postgresql": {
"hash": "sha256-ldiMHcA0uJa7z5qx8ATuu7wn6W7HTLXEw3CG9rGnU/4=",
"hash": "sha256-d1m+aSQFgmL/m30707J1Ic+GdjCosr55tgGgxEU4GXE=",
"homepage": "https://registry.terraform.io/providers/cyrilgdn/postgresql",
"owner": "cyrilgdn",
"repo": "terraform-provider-postgresql",
"rev": "v1.24.0",
"rev": "v1.25.0",
"spdx": "MPL-2.0",
"vendorHash": "sha256-2DWYW/NoNqchnfxEPBCFstzGuFKwXAXVmS9RqRWViWo="
},
@@ -1183,13 +1183,13 @@
"vendorHash": "sha256-c3R/7k7y7XS2Qli00nSj7gh/3Mj88PY4WybBTq/+pPs="
},
"spotinst": {
"hash": "sha256-Yq52eCxT+XWoTONcLTDlIpy/jnU76JajsoqKYXFK8AM=",
"hash": "sha256-W9NtScPWQYe4Qxia8srVSES2aXYOzLncLfOe07+DpiY=",
"homepage": "https://registry.terraform.io/providers/spotinst/spotinst",
"owner": "spotinst",
"repo": "terraform-provider-spotinst",
"rev": "v1.199.2",
"rev": "v1.201.0",
"spdx": "MPL-2.0",
"vendorHash": "sha256-DWFPqjFLDJSfxQHXUSog2Cyn6RD1BdOz1zRIXXZVjkY="
"vendorHash": "sha256-uZdbLJMMR1msSDpzAJxbQDyUOY6hvPya1AEW1wqUJdc="
},
"ssh": {
"hash": "sha256-1UN5QJyjCuxs2vQYlSuz2jsu/HgGTxOoWWRcv4qcwow=",
@@ -1219,11 +1219,11 @@
"vendorHash": "sha256-9M1DsE/FPQK8TG7xCJWbU3HAJCK3p/7lxdzjO1oAfWs="
},
"sumologic": {
"hash": "sha256-42W0u9E8xgE+aUxruAPIm1pqOimN2eReWHrWOpnui/4=",
"hash": "sha256-THjaIm6QsHNEGuafwmnU3dUQqNJiDy4qTO+3bEIGR8Q=",
"homepage": "https://registry.terraform.io/providers/SumoLogic/sumologic",
"owner": "SumoLogic",
"repo": "terraform-provider-sumologic",
"rev": "v2.31.5",
"rev": "v3.0.0",
"spdx": "MPL-2.0",
"vendorHash": "sha256-YdWs2orKhbwAZSQYC73t4e/vvVxk8LrBPG9ZC38VcZE="
},
@@ -3,16 +3,16 @@
buildGoModule rec {
pname = "discordo";
version = "0-unstable-2024-11-30";
version = "0-unstable-2024-12-12";
src = fetchFromGitHub {
owner = "ayn2op";
repo = pname;
rev = "3286ebecaab3c05ddbab9e6b502a750d07cea5aa";
hash = "sha256-DaD6Rv/dzky3gjjqtjObTFZp7EJ8+UK6CoFpqZ/HO9U=";
rev = "c97307d5425ba0fef24f0bdd5b9d63f660e11b20";
hash = "sha256-I2rO0PKtxQUiyaAt4BmE4zvOmqShbydGwWbPmnzUjHY=";
};
vendorHash = "sha256-66Y5hmEEQUBsSfYaj6UzCsFhDkwCDs6y2WOsnYby1gE=";
vendorHash = "sha256-UTZIx4zXIMdQBQXfzk3+j43yx7vlitw4Mwmon8oYjd8=";
CGO_ENABLED = 0;
+16 -3
View File
@@ -20,18 +20,21 @@
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, systemd
, withScripts ? true
, gitUpdater
, binlore
, msmtp
}:
let
inherit (lib) getBin getExe optionals;
version = "1.8.25";
version = "1.8.26";
src = fetchFromGitHub {
owner = "marlam";
repo = "msmtp";
rev = "msmtp-${version}";
hash = "sha256-UZKUpF/ZwYPM2rPDudL1O8e8LguKJh9sTcJRT3vgsf4=";
hash = "sha256-MV3fzjjyr7qZw/BbKgsSObX+cxDDivI+0ZlulrPFiWM=";
};
meta = with lib; {
@@ -117,6 +120,7 @@ let
fix."$MSMTP" = [ "msmtp" ];
fake.external = [ "ping" ]
++ optionals (!withSystemd) [ "systemd-cat" ];
keep.source = [ "~/.msmtpqrc" ];
};
msmtp-queue = {
@@ -135,5 +139,14 @@ if withScripts then
name = "msmtp-${version}";
inherit version meta;
paths = [ binaries scripts ];
passthru = { inherit binaries scripts; };
passthru = {
inherit binaries scripts src;
# msmtpq forwards most of its arguments to msmtp [1].
#
# [1]: <https://github.com/marlam/msmtp/blob/msmtp-1.8.26/scripts/msmtpq/msmtpq#L301>
binlore.out = binlore.synthesize msmtp ''
wrapper bin/msmtpq bin/msmtp
'';
updateScript = gitUpdater { rev-prefix = "msmtp-"; };
};
} else binaries
@@ -11,7 +11,7 @@
, configText ? ""
}:
let
version = "2312.1";
version = "2406";
sysArch =
if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
@@ -36,8 +36,8 @@ let
pname = "vmware-horizon-files";
inherit version;
src = fetchurl {
url = "https://download3.vmware.com/software/CART25FQ1_LIN_2312.1_TARBALL/VMware-Horizon-Client-Linux-2312.1-8.12.1-23543969.tar.gz";
sha256 = "23d18be2955ba60ab3cca941a529fa3b804af97ebf1602d246ca6147cced8135";
url = "https://download3.omnissa.com/software/CART25FQ2_LIN_2406_TARBALL/VMware-Horizon-Client-Linux-2406-8.13.0-9995429239.tar.gz";
sha256 = "d6bae5cea83c418bf3a9cb884a7d8351d8499f1858a1ac282fd79dc0c64e83f6";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
@@ -46,7 +46,8 @@ let
chmod -R u+w ext/usr/lib
mv ext/usr $out
cp -r ext/lib $out/
cp -r ext/${sysArch}/include $out/
cp -r ext/${sysArch}/lib $out/
# Horizon includes a copy of libstdc++ which is loaded via $LD_LIBRARY_PATH
# when it cannot detect a new enough version already present on the system.
@@ -63,7 +64,7 @@ let
ln -s ${opensc}/lib/pkcs11/opensc-pkcs11.so $out/lib/vmware/view/pkcs11/libopenscpkcs11.so
${wrapBinCommands "bin" "vmware-view"}
${wrapBinCommands "lib/vmware/view/usb" "vmware-usbarbitrator"}
${wrapBinCommands "lib/vmware/view/usb" "vmware-eucusbarbitrator"}
'';
};
@@ -96,6 +97,7 @@ let
pango
pcsclite
pixman
udev
vmwareHorizonClientFiles
xorg.libX11
xorg.libXau
@@ -21,13 +21,13 @@
mkDerivation rec {
pname = "anilibria-winmaclinux";
version = "2.2.22";
version = "2.2.23";
src = fetchFromGitHub {
owner = "anilibria";
repo = "anilibria-winmaclinux";
rev = version;
hash = "sha256-dWjd+wf4yBX63+IsJwY49I/ofL9FSfbWZJ1IhyDc+Z0=";
hash = "sha256-RF0pe2G4K0uiqlOiAVESOi6bgwO0gJOh1VFkF7V3Wnc=";
};
sourceRoot = "${src.name}/src";
@@ -24,16 +24,16 @@ let
in
buildGoModule rec {
pname = "age-plugin-fido2-hmac";
version = "0.2.3";
version = "0.2.4";
src = fetchFromGitHub {
owner = "olastor";
repo = "age-plugin-fido2-hmac";
rev = "v${version}";
hash = "sha256-P2gNOZeuODWEb/puFe6EA1wW3pc0xgM567qe4FKbFXg=";
hash = "sha256-q77j+b0GDJhkCDLJYfIH2ZXqiwTC+ZM8CqXFv11UFaE=";
};
vendorHash = "sha256-h4/tyq9oZt41IfRJmmsLHUpJiPJ7YuFu59ccM7jHsFo=";
vendorHash = "sha256-wNJnpCg5fmzGe45r7LDpr9OBujTzenFhFlxvSj/URbY=";
ldflags = [
"-s"
+51 -20
View File
@@ -2,28 +2,68 @@
lib,
buildGoModule,
fetchFromGitHub,
artalk,
fetchurl,
nodejs,
pnpm_9,
installShellFiles,
versionCheckHook,
stdenv,
testers,
nixosTests,
}:
buildGoModule rec {
let
pname = "artalk";
version = "2.9.1";
src = fetchFromGitHub {
owner = "ArtalkJS";
repo = "artalk";
rev = "refs/tags/v${version}";
tag = "v${version}";
hash = "sha256-gzagE3muNpX/dwF45p11JAN9ElsGXNFQ3fCvF1QhvdU=";
};
web = fetchurl {
url = "https://github.com/${src.owner}/${src.repo}/releases/download/v${version}/artalk_ui.tar.gz";
hash = "sha256-ckKC4lErKVdJuJ+pGysmMR96a9LkrCYnWB4j6VPP8OY=";
};
frontend = stdenv.mkDerivation (finalAttrs: {
pname = "${pname}-frontend";
inherit src version;
nativeBuildInputs = [
nodejs
pnpm_9.configHook
];
pnpmDeps = pnpm_9.fetchDeps {
inherit (finalAttrs) pname version src;
hash = "sha256-QIfadS2gNPtH006O86EndY/Hx2ml2FoKfUXJF5qoluw=";
};
buildPhase = ''
runHook preBuild
pnpm build:all
pnpm build:auth
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/{dist/{i18n,plugins},sidebar}
# dist
cp ./ui/artalk/dist/{Artalk,ArtalkLite}.{css,js} $out/dist
cp ./ui/artalk/dist/i18n/*.js $out/dist/i18n
cp ./ui/plugin-*/dist/*.js $out/dist/plugins
# sidebar
cp -r ./ui/artalk-sidebar/dist/* $out/sidebar
runHook postInstall
'';
});
in
buildGoModule {
inherit src pname version;
vendorHash = "sha256-oAqYQzOUjly97H5L5PQ9I2SO2KqiUVxdJA+eoPrHD6Q=";
@@ -33,8 +73,7 @@ buildGoModule rec {
];
preBuild = ''
tar -xzf ${web}
cp -r ./artalk_ui/* ./public
cp -r ${frontend}/* ./public
'';
nativeBuildInputs = [ installShellFiles ];
@@ -47,13 +86,9 @@ buildGoModule rec {
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "-v";
nativeInstallCheckInputs = [
versionCheckHook
];
passthru.tests = {
inherit (nixosTests) artalk;
};
@@ -63,10 +98,6 @@ buildGoModule rec {
homepage = "https://github.com/ArtalkJS/Artalk";
changelog = "https://github.com/ArtalkJS/Artalk/releases/tag/v${version}";
license = lib.licenses.mit;
sourceProvenance = with lib.sourceTypes; [
fromSource
binaryBytecode
];
maintainers = with lib.maintainers; [ moraxyc ];
mainProgram = "artalk";
};
+2 -2
View File
@@ -40,8 +40,8 @@ buildBazelPackage rec {
fetchAttrs = {
hash =
{
aarch64-linux = "sha256-E4VHjDa0qkHmKUNpTBfJi7dhMLcd1z5he+p31/XvUl8=";
x86_64-linux = "sha256-M7xhAIhTcVLCUkmy4giGxbr7DgHrXbg0e8D/bL6yZWU=";
aarch64-linux = "sha256-2QMg/Ko3HgqKhI2g4PZ+UWOujDACLZHxyec1zAm58yg=";
x86_64-linux = "sha256-SfQ6dlC+JVYXIpuvMNyQJkY6+zq8Md2+LsiRstJWMdY=";
}
.${system} or (throw "No hash for system: ${system}");
};
+3 -3
View File
@@ -13,13 +13,13 @@
buildNpmPackage rec {
pname = "bitwarden-cli";
version = "2024.11.1";
version = "2024.12.0";
src = fetchFromGitHub {
owner = "bitwarden";
repo = "clients";
rev = "cli-v${version}";
hash = "sha256-J7gmrSAiu59LLP9pKfbv9+H00vXGQCrjkd4GBhkcyTY=";
hash = "sha256-3aN2t8/qhN0sjACvtip45efHQJl8nEMNre0+oBL1/go=";
};
postPatch = ''
@@ -29,7 +29,7 @@ buildNpmPackage rec {
nodejs = nodejs_20;
npmDepsHash = "sha256-MZoreHKmiUUxhq3tmL4lPp6vPmoQIqG3IPpZE56Z1Kc=";
npmDepsHash = "sha256-EtIcqbubAYN9I9wbw17oHiVshd3GtQayFtdgqWP7Pgg=";
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
cctools
+4 -4
View File
@@ -11,7 +11,7 @@
stdenv.mkDerivation rec {
pname = "bloop";
version = "2.0.5";
version = "2.0.6";
platform =
if stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64 then
@@ -42,11 +42,11 @@ stdenv.mkDerivation rec {
url = "https://github.com/scalacenter/bloop/releases/download/v${version}/bloop-${platform}";
sha256 =
if stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64 then
"sha256-COsGPMCsl3hTcw9JOZ6/LnQAhsNCXMvC0sDLqhHrY1o="
"sha256-9AhQpaahhUvWVZBx2O6KsCON60EXC1bJlMxxgJj9oMA="
else if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64 then
"sha256-oXfdHIvmEtjh+Ohpu8R2VbrR+YbEQKI6l2cYiG/kQnk="
"sha256-qu8Q7GqEkWCRHyslTCRPe5EdBH7GTXyonaXnJ6DYSlw="
else if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then
"sha256-+C8uY1TsqCy0Ml7GBovjGN4rAzkTqRSv5M0EI0l2tds="
"sha256-j4lM32BLF6aPH/7Y7H18HHmvprjKUqdmbqvdWXpD9uE="
else
throw "unsupported platform";
};
+2 -2
View File
@@ -9,13 +9,13 @@
stdenv.mkDerivation rec {
pname = "catatonit";
version = "0.2.0";
version = "0.2.1";
src = fetchFromGitHub {
owner = "openSUSE";
repo = pname;
rev = "v${version}";
sha256 = "sha256-AqJURf4OrPHfTm5joA3oPXH4McE1k0ouvDXAF3jiwgk=";
sha256 = "sha256-sc/T4WjCPFfwUWxlBx07mQTmcOApblHygfVT824HcJM=";
};
nativeBuildInputs = [ autoreconfHook ];
@@ -5,11 +5,10 @@
inkscape,
just,
xcursorgen,
hyprcursor,
xcur2png,
catppuccin-whiskers,
python3,
python3Packages,
zip,
}:
let
dimensions = {
@@ -40,7 +39,7 @@ let
};
variantName = { palette, color }: palette + color;
variants = lib.mapCartesianProduct variantName dimensions;
version = "1.0.1";
version = "1.0.2";
in
stdenvNoCC.mkDerivation {
pname = "catppuccin-cursors";
@@ -50,18 +49,17 @@ stdenvNoCC.mkDerivation {
owner = "catppuccin";
repo = "cursors";
rev = "v${version}";
hash = "sha256-l01L0UiE9bgUOMHhs74Bndarw2b6TaJGW/xU/8rfoAk=";
hash = "sha256-Mm0fRh/Shem65E/Cl0yyw+efEHOEt/OJ+MzL+3Mcbwc=";
};
nativeBuildInputs = [
just
inkscape
xcursorgen
hyprcursor
xcur2png
catppuccin-whiskers
python3
python3Packages.pyside6
zip
];
outputs = variants ++ [ "out" ]; # dummy "out" output to prevent breakage
@@ -73,7 +71,7 @@ stdenvNoCC.mkDerivation {
patchShebangs .
just all_with_hyprcursor
just all
runHook postBuild
'';
@@ -6,6 +6,7 @@
doxygen,
boost,
eigen,
jrl-cmakemodules,
assimp,
octomap,
qhull,
@@ -15,15 +16,14 @@
}:
stdenv.mkDerivation (finalAttrs: {
pname = "hpp-fcl";
version = "2.4.5";
pname = "coal";
version = "3.0.0";
src = fetchFromGitHub {
owner = "humanoid-path-planner";
repo = "hpp-fcl";
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-0OORdtT7vMpvK3BPJvtvuLcz0+bfu1+nVvzs3y+LyQw=";
owner = "coal-library";
repo = "coal";
tag = "v${finalAttrs.version}";
hash = "sha256-7LfeBQX9k0HY/muIl3FNq3xQv66KnwV9BChi0LxFcAQ=";
};
strictDeps = true;
@@ -41,8 +41,9 @@ stdenv.mkDerivation (finalAttrs: {
propagatedBuildInputs =
[
assimp
qhull
jrl-cmakemodules
octomap
qhull
zlib
]
++ lib.optionals (!pythonSupport) [
@@ -55,13 +56,17 @@ stdenv.mkDerivation (finalAttrs: {
];
cmakeFlags = [
(lib.cmakeBool "HPP_FCL_HAS_QHULL" true)
(lib.cmakeBool "COAL_BACKWARD_COMPATIBILITY_WITH_HPP_FCL" true)
(lib.cmakeBool "COAL_HAS_QHULL" true)
(lib.cmakeBool "INSTALL_DOCUMENTATION" true)
(lib.cmakeBool "BUILD_PYTHON_INTERFACE" pythonSupport)
];
doCheck = true;
pythonImportsCheck = [ "hppfcl" ];
pythonImportsCheck = [
"coal"
"hppfcl"
];
outputs = [
"dev"
@@ -74,8 +79,9 @@ stdenv.mkDerivation (finalAttrs: {
'';
meta = {
description = "Extension of the Flexible Collision Library";
homepage = "https://github.com/humanoid-path-planner/hpp-fcl";
description = "Collision Detection Library, previously hpp-fcl";
homepage = "https://github.com/coal-library/coal";
changelog = "https://github.com/coal-library/coal/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ nim65s ];
platforms = lib.platforms.unix;
@@ -0,0 +1,152 @@
{
stdenv,
stdenvNoCC,
lib,
fetchurl,
perl,
gnused,
dpkg,
makeWrapper,
autoPatchelfHook,
libredirect,
gnugrep,
coreutils,
ghostscript,
file,
pkgsi686Linux,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "cups-brother-dcpt310";
version = "1.0.1";
src = fetchurl {
url = "https://download.brother.com/welcome/dlf103618/dcpt310pdrv-${finalAttrs.version}-0.i386.deb";
sha256 = "0g9hylmpgmzd6k9lxjy32c7pxbzj6gr9sfaahxj3xzqyar05amdx";
};
nativeBuildInputs = [
dpkg
makeWrapper
autoPatchelfHook
];
buildInputs = [
perl
gnused
libredirect
pkgsi686Linux.stdenv.cc.cc.lib
];
unpackPhase = ''
runHook preUnpack
dpkg-deb -x $src .
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p "$out"
cp -pr opt "$out"
cp -pr usr/bin "$out/bin"
rm "$out/opt/brother/Printers/dcpt310/cupswrapper/cupswrapperdcpt310"
mkdir -p "$out/lib/cups/filter" "$out/share/cups/model"
ln -s "../../../opt/brother/Printers/dcpt310/cupswrapper/brother_lpdwrapper_dcpt310" \
"$out/lib/cups/filter/brother_lpdwrapper_dcpt310"
ln -s "../../../opt/brother/Printers/dcpt310/cupswrapper/brother_dcpt310_printer_en.ppd" \
"$out/share/cups/model/brother_dcpt310_printer_en.ppd"
runHook postInstall
'';
# Fix global references and replace auto discovery mechanism
# with hardcoded values.
#
# The configuration binary 'brprintconf_dcpt310' and lpd filter
# 'brdcpt310filter' has hardcoded /opt format strings. There isn't
# sufficient space in the binaries to substitute a path in the store, so use
# libredirect to get it to see the correct path. The configuration binary
# also uses this format string to print configuration locations. Here the
# wrapper output is processed to point into the correct location in the
# store.
postFixup = ''
interpreter=${pkgsi686Linux.glibc.out}/lib/ld-linux.so.2
substituteInPlace $out/opt/brother/Printers/dcpt310/lpd/filter_dcpt310 \
--replace "my \$BR_PRT_PATH =" "my \$BR_PRT_PATH = \"$out/opt/brother/Printers/dcpt310/\"; #" \
--replace /usr/bin/pdf2ps "${ghostscript}/bin/pdf2ps" \
--replace "my \$GHOST_SCRIPT" "my \$GHOST_SCRIPT = \"${ghostscript}/bin/gs\"; #" \
--replace "PRINTER =~" "PRINTER = \"dcpt310\"; #"
substituteInPlace $out/opt/brother/Printers/dcpt310/cupswrapper/brother_lpdwrapper_dcpt310 \
--replace "PRINTER =~" "PRINTER = \"dcpt310\"; #" \
--replace "my \$basedir = \`readlink \$0\`" "my \$basedir = \"$out/opt/brother/Printers/dcpt310/\"" \
--replace "my \$lpdconf = \$LPDCONFIGEXE.\$PRINTER;" "my \$lpdconf = \"$out/bin/brprintconf_dcpt310\";"
patchelf --set-interpreter "$interpreter" "$out/opt/brother/Printers/dcpt310/lpd/brdcpt310filter" \
--set-rpath ${lib.makeLibraryPath [ pkgsi686Linux.stdenv.cc.cc ]}
patchelf --set-interpreter "$interpreter" "$out/bin/brprintconf_dcpt310"
wrapProgram $out/bin/brprintconf_dcpt310 \
--set LD_PRELOAD "${pkgsi686Linux.libredirect}/lib/libredirect.so" \
--set NIX_REDIRECTS /opt=$out/opt
wrapProgram $out/opt/brother/Printers/dcpt310/lpd/brdcpt310filter \
--set PATH ${
lib.makeBinPath [
coreutils
gnugrep
gnused
ghostscript
]
} \
--set LD_PRELOAD "${pkgsi686Linux.libredirect}/lib/libredirect.so" \
--set NIX_REDIRECTS /opt=$out/opt
for f in \
$out/opt/brother/Printers/dcpt310/cupswrapper/brother_lpdwrapper_dcpt310 \
$out/opt/brother/Printers/dcpt310/lpd/filter_dcpt310 \
; do
wrapProgram $f \
--set PATH ${
lib.makeBinPath [
coreutils
ghostscript
gnugrep
gnused
file
]
}
done
substituteInPlace $out/bin/brprintconf_dcpt310 \
--replace \"\$"@"\" \"\$"@\" | LD_PRELOAD= ${gnused}/bin/sed -E '/^(function list :|resource file :).*/{s#/opt#$out/opt#}'"
'';
meta = {
description = "Brother DCP-T310 printer driver";
license = with lib.licenses; [
unfree
gpl2Plus
];
sourceProvenance = with lib.sourceTypes; [
binaryNativeCode
fromSource
];
maintainers = with lib.maintainers; [ inexcode ];
platforms = [
"x86_64-linux"
"i686-linux"
];
homepage = "https://www.brother.com/";
downloadPage = "https://support.brother.com/g/b/downloadhowto.aspx?c=us_ot&lang=en&prod=dcpt310_all&os=128&dlid=dlf103618_000&flang=4&type3=10283";
};
})
+1 -1
View File
@@ -72,7 +72,7 @@ stdenv.mkDerivation rec {
else if stdenv.hostPlatform.isAarch64 then
"arm64"
else
abort "unsupported system: ${stdenv.system}"
throw "unsupported system: ${stdenv.system}"
}"
];
+2 -2
View File
@@ -9,13 +9,13 @@
buildGoModule rec {
pname = "dnscontrol";
version = "4.15.0";
version = "4.15.1";
src = fetchFromGitHub {
owner = "StackExchange";
repo = "dnscontrol";
rev = "v${version}";
hash = "sha256-Y0JRzdC0g/4iQ3YppbL4YTyifveb5ruCPQ0AIwi4gbw=";
hash = "sha256-BpZMbVln/senD4DJC355QGb4yA/TXOmqlVm0enzlIrk=";
};
vendorHash = "sha256-uC6h3D/L7zzfn/2NcInCaDFKW0+JRkMVJSNzE+hXClM=";
+3 -3
View File
@@ -8,16 +8,16 @@
rustPlatform.buildRustPackage rec {
pname = "dumbpipe";
version = "0.20.0";
version = "0.21.0";
src = fetchFromGitHub {
owner = "n0-computer";
repo = pname;
rev = "v${version}";
hash = "sha256-xbK1DOoRzcHFkdbzgCNdFyHIk4jwUrWynmoHw7MK9og=";
hash = "sha256-WJwjxVtv022Qm1NUnibh2jq1g0P/hi0HjeA9l7fMdRw=";
};
cargoHash = "sha256-bQSJ3vbkFVk/9tA+7VD4o303+iF7pmQoZsrrfw/X3TY=";
cargoHash = "sha256-oq8jWRFVEB9sMZ7ufke5D1BMpGms8WJWVL/LGV+g/GI=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
+82 -60
View File
@@ -1,41 +1,43 @@
{ stdenv
, lib
, fetchFromGitHub
, makeWrapper
, pkg-config
, which
, perl
, jq
, libXrandr
, coreutils
, cairo
, dbus
, systemd
, gdk-pixbuf
, glib
, libX11
, libXScrnSaver
, wayland
, wayland-protocols
, libXinerama
, libnotify
, pango
, xorgproto
, librsvg
, testers
, withX11 ? true
, withWayland ? true
{
stdenv,
lib,
fetchFromGitHub,
makeWrapper,
pkg-config,
which,
perl,
jq,
libXrandr,
coreutils,
cairo,
dbus,
systemd,
gdk-pixbuf,
glib,
libX11,
libXScrnSaver,
wayland,
wayland-protocols,
libXinerama,
libnotify,
pango,
xorgproto,
librsvg,
testers,
nix-update-script,
withX11 ? true,
withWayland ? true,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dunst";
version = "1.11.0";
version = "1.12.0";
src = fetchFromGitHub {
owner = "dunst-project";
repo = "dunst";
rev = "v${finalAttrs.version}";
hash = "sha256-eiFvvavXGNcHZnEGwlTLxRqFNdkvEZMwNIkVyDn1V6o=";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-rnR/AErsjsaOMM/aF8VXZHV8b8OiUMRCi8IFLT4/8Vo=";
};
nativeBuildInputs = [
@@ -46,26 +48,32 @@ stdenv.mkDerivation (finalAttrs: {
makeWrapper
];
buildInputs = [
cairo
dbus
gdk-pixbuf
glib
libnotify
pango
librsvg
] ++ lib.optionals withX11 [
libX11
libXScrnSaver
libXinerama
xorgproto
libXrandr
] ++ lib.optionals withWayland [
wayland
wayland-protocols
];
buildInputs =
[
cairo
dbus
gdk-pixbuf
glib
libnotify
pango
librsvg
]
++ lib.optionals withX11 [
libX11
libXScrnSaver
libXinerama
xorgproto
libXrandr
]
++ lib.optionals withWayland [
wayland
wayland-protocols
];
outputs = [ "out" "man" ];
outputs = [
"out"
"man"
];
makeFlags = [
"PREFIX=$(out)"
@@ -73,30 +81,44 @@ stdenv.mkDerivation (finalAttrs: {
"SYSCONFDIR=$(out)/etc"
"SERVICEDIR_DBUS=$(out)/share/dbus-1/services"
"SERVICEDIR_SYSTEMD=$(out)/lib/systemd/user"
]
++ lib.optional (!withX11) "X11=0"
++ lib.optional (!withWayland) "WAYLAND=0";
] ++ lib.optional (!withX11) "X11=0" ++ lib.optional (!withWayland) "WAYLAND=0";
postInstall = ''
wrapProgram $out/bin/dunst \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
wrapProgram $out/bin/dunstctl \
--prefix PATH : "${lib.makeBinPath [ coreutils dbus ]}"
--prefix PATH : "${
lib.makeBinPath [
coreutils
dbus
]
}"
substituteInPlace $out/share/zsh/site-functions/_dunstctl $out/share/fish/vendor_completions.d/{dunstctl,dunstify} \
substituteInPlace \
$out/share/zsh/site-functions/_dunstctl \
$out/share/bash-completion/completions/dunstctl \
$out/share/fish/vendor_completions.d/{dunstctl,dunstify}.fish \
--replace-fail "jq" "${lib.getExe jq}"
'';
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
updateScript = nix-update-script { };
};
meta = with lib; {
meta = {
description = "Lightweight and customizable notification daemon";
homepage = "https://dunst-project.org/";
license = licenses.bsd3;
# NOTE: 'unix' or even 'all' COULD work too, I'm not sure
platforms = platforms.linux;
maintainers = with maintainers; [ domenkozar gepbird ];
license = lib.licenses.bsd3;
mainProgram = "dunst";
maintainers = with lib.maintainers; [
domenkozar
gepbird
];
# NOTE: 'unix' or even 'all' COULD work too, I'm not sure
platforms = lib.platforms.linux;
};
})
+42
View File
@@ -0,0 +1,42 @@
{
lib,
fetchFromGitHub,
cmake,
llvmPackages,
git,
}:
llvmPackages.stdenv.mkDerivation rec {
pname = "enzyme";
version = "0.0.165";
src = fetchFromGitHub {
owner = "EnzymeAD";
repo = "Enzyme";
rev = "v${version}";
hash = "sha256-EyIpbcCJHj09Aa/NMr9BqOHvaWvaRqetCQRy2oxiJKE=";
};
postPatch = ''
patchShebangs enzyme
'';
nativeBuildInputs = [
cmake
git
llvmPackages.llvm
];
cmakeDir = "../enzyme";
cmakeFlags = [ "-DLLVM_DIR=${llvmPackages.llvm.dev}" ];
enableParallelBuilding = true;
meta = {
homepage = "https://enzyme.mit.edu/";
description = "High-performance automatic differentiation of LLVM and MLIR";
maintainers = with lib.maintainers; [ kiranshila ];
platforms = lib.platforms.all;
license = lib.licenses.asl20-llvm;
};
}
@@ -6,11 +6,11 @@
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "fcitx5-pinyin-moegirl";
version = "20241109";
version = "20241211";
src = fetchurl {
url = "https://github.com/outloudvi/mw2fcitx/releases/download/${finalAttrs.version}/moegirl.dict";
hash = "sha256-Vg1Kx/7m1gNEJAe3bhxoIogXsNV8I0NYyhGt9SvqfM4=";
hash = "sha256-yJYQ/zHFH2dTjkZMH4aM1U6RDNGljgl8iB3Eq5UwY9Q=";
};
dontUnpack = true;
+5 -11
View File
@@ -33,15 +33,9 @@
, nettools
, nixosTests
# FRR's configure.ac gets SNMP options by executing net-snmp-config on the build host
# This leads to compilation errors when cross compiling.
# E.g. net-snmp-config for x86_64 does not return the ARM64 paths.
#
# SNMP_LIBS="`${NETSNMP_CONFIG} --agent-libs`"
# SNMP_CFLAGS="`${NETSNMP_CONFIG} --base-cflags`"
, snmpSupport ? stdenv.buildPlatform.canExecute stdenv.hostPlatform
# other general options besides snmp support
# general options
, snmpSupport ? true
, rpkiSupport ? true
, numMultipath ? 64
, watchfrrSupport ? true
@@ -81,9 +75,6 @@
, ospfApi ? true
}:
lib.warnIf (!(stdenv.buildPlatform.canExecute stdenv.hostPlatform))
"cannot enable SNMP support due to cross-compilation issues with net-snmp-config"
stdenv.mkDerivation (finalAttrs: {
pname = "frr";
version = "10.1";
@@ -194,6 +185,9 @@ stdenv.mkDerivation (finalAttrs: {
(lib.strings.enableFeature ospfApi "ospfapi")
# Cumulus options
(lib.strings.enableFeature cumulusSupport "cumulus")
] ++ lib.optionals snmpSupport [
# Used during build for paths, `dev` has build shebangs so can be run during build.
"NETSNMP_CONFIG=${lib.getDev net-snmp}/bin/net-snmp-config"
];
postPatch = ''
@@ -0,0 +1,135 @@
{
lib,
stdenv,
appimageTools,
fetchurl,
graphicsmagick,
makeWrapper,
copyDesktopItems,
autoPatchelfHook,
xorg,
libpulseaudio,
libGL,
udev,
xdg-utils,
electron,
addDriverRunpath,
makeDesktopItem,
jdk8,
jdk17,
jdk21,
jdks ? [
jdk8
jdk17
jdk21
],
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gdlauncher-carbon";
version = "2.0.20";
src = appimageTools.extract {
inherit (finalAttrs) pname version;
src = fetchurl {
url = "https://cdn-raw.gdl.gg/launcher/GDLauncher__${finalAttrs.version}__linux__x64.AppImage";
hash = "sha256-tI9RU8qO3MHbImOGw2Wl1dksNbhqrYFyGemqms8aAio=";
};
};
nativeBuildInputs = [
graphicsmagick
makeWrapper
copyDesktopItems
autoPatchelfHook
];
buildInputs = [
xorg.libxcb
stdenv.cc.cc.lib
];
strictDeps = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/gdlauncher-carbon/resources
cp -r $src/resources/{binaries,app.asar} $out/share/gdlauncher-carbon/resources/
# The provided icon is a bit large for some systems, so make smaller ones
for size in 48 96 128 256 512; do
gm convert $src/@gddesktop.png -resize ''${size}x''${size} icon_$size.png
install -D icon_$size.png $out/share/icons/hicolor/''${size}x''${size}/apps/gdlauncher-carbon.png
done
runHook postInstall
'';
postConfigure =
let
libPath = lib.makeLibraryPath [
xorg.libX11
xorg.libXext
xorg.libXcursor
xorg.libXrandr
xorg.libXxf86vm
# lwjgl
libpulseaudio
libGL
stdenv.cc.cc.lib
# oshi
udev
];
binPath = lib.makeBinPath [
# Used for opening directories and URLs in the electron app
xdg-utils
# xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
xorg.xrandr
];
in
''
makeWrapper '${lib.getExe electron}' $out/bin/gdlauncher-carbon \
--prefix GDL_JAVA_PATH : ${lib.makeSearchPath "" jdks} \
--set LD_LIBRARY_PATH ${addDriverRunpath.driverLink}/lib:${libPath} \
--suffix PATH : "${binPath}" \
--set ELECTRON_FORCE_IS_PACKAGED 1 \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--add-flags $out/share/gdlauncher-carbon/resources/app.asar
'';
desktopItems = [
(makeDesktopItem {
# Note the desktop file name should be GDLauncher to match the window's
# client id for window icon purposes on wayland.
name = "GDLauncher";
exec = "gdlauncher-carbon";
icon = "gdlauncher-carbon";
desktopName = "GDLauncher";
comment = finalAttrs.meta.description;
categories = [ "Game" ];
keywords = [
"launcher"
"mod manager"
"minecraft"
];
mimeTypes = [ "x-scheme-handler/gdlauncher" ];
})
];
meta = {
description = "Simple, yet powerful Minecraft custom launcher with a strong focus on the user experience";
homepage = "https://gdlauncher.com/";
license = lib.licenses.bsl11;
maintainers = with lib.maintainers; [
huantian
TsubakiDev
];
platforms = lib.platforms.linux;
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
};
})
@@ -0,0 +1,26 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule {
pname = "git-lfs-transfer";
version = "0.1.0-unstable-2024-10-07";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "git-lfs-transfer";
rev = "422d24414fe4b803849b3f6fe7c4d8ab1b40803b";
hash = "sha256-YsplPW3i4W1RfkWQI1eGXFXb3JofQwKe+9LbjxeL1cM=";
};
vendorHash = "sha256-1cGlhLdnU6yTqzcB3J1cq3gawncbtdgkb3LFh2ZmXbM=";
meta = {
description = "Server-side implementation of the Git LFS pure-SSH protocol";
mainProgram = "git-lfs-transfer";
homepage = "https://github.com/charmbracelet/git-lfs-transfer";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ chn ];
};
}
+2 -2
View File
@@ -11,13 +11,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "giza";
version = "1.4.2";
version = "1.4.4";
src = fetchFromGitHub {
owner = "danieljprice";
repo = "giza";
rev = "v${finalAttrs.version}";
hash = "sha256-fFju6nyOn/zdN/ygje+pOt67vgycqllX9gRYPi3ipVM=";
hash = "sha256-FlD+emPrdXYmalHqQ6jKmkZudyLtlbeHtUOjT/D6UOA=";
};
nativeBuildInputs = [
+4 -3
View File
@@ -2,8 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
testers,
gocovsh, # self
versionCheckHook,
}:
buildGoModule rec {
@@ -26,7 +25,9 @@ buildGoModule rec {
"-X main.date=19700101T000000Z"
];
passthru.tests.version = testers.testVersion { package = gocovsh; };
nativeCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
meta = {
description = "Go Coverage in your terminal: a tool for exploring Go Coverage reports from the command line";
+6 -8
View File
@@ -2,19 +2,18 @@
lib,
buildGoModule,
fetchFromGitHub,
testers,
golds, # self
versionCheckHook,
}:
buildGoModule rec {
pname = "golds";
version = "0.7.1";
version = "0.7.2";
src = fetchFromGitHub {
owner = "go101";
repo = "golds";
tag = "v${version}";
hash = "sha256-6YkyKJtSAFFYidMlZXSjNpjyIIaTlibg/QMMin/NbU0=";
hash = "sha256-ExvCVGWYAngasnDHVzBLeLmms4cFNcQ/KzuE4t3r36A=";
};
# nixpkgs is not using the go distpack archive and missing a VERSION file in the source
@@ -26,10 +25,9 @@ buildGoModule rec {
ldflags = [ "-s" ];
passthru.tests.version = testers.testVersion {
package = golds;
version = "v${version}";
};
nativeCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
meta = {
description = "Experimental Go local docs server/generator and code reader implemented with some fresh ideas";
+2 -2
View File
@@ -35,11 +35,11 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "haproxy";
version = "3.1.0";
version = "3.1.1";
src = fetchurl {
url = "https://www.haproxy.org/download/${lib.versions.majorMinor finalAttrs.version}/src/haproxy-${finalAttrs.version}.tar.gz";
hash = "sha256-VqFGhXSrQR3Kveg3+WvqbPPC65DieUafde0dzccPzhE=";
hash = "sha256-jBtdQ5uksnjmAkRcV+IAZ63vIU3JxEwqHPFy+tX30nM=";
};
buildInputs =
+3 -3
View File
@@ -6,16 +6,16 @@
buildGoModule rec {
pname = "hishtory";
version = "0.318";
version = "0.320";
src = fetchFromGitHub {
owner = "ddworken";
repo = pname;
rev = "v${version}";
hash = "sha256-EDHKgZqgWQfQgmSp0KxCnJohtctmnhJGznr3jow5jtw=";
hash = "sha256-eUm545hb3pyvArkihYG/lBxBcLQVJ25NZBNmevFAozY=";
};
vendorHash = "sha256-mcqzRxJLLn9IKjcrZjOL2RglEx99KedSsu+2lwXbhys=";
vendorHash = "sha256-xDdK91/lQRpY7i13jnLwX2eVMb5mibHchnz7ASNzXmM=";
ldflags = [ "-X github.com/ddworken/hishtory/client/lib.Version=${version}" ];
+3 -3
View File
@@ -19,14 +19,14 @@
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "home-manager";
version = "0-unstable-2024-11-29";
version = "0-unstable-2024-12-12";
src = fetchFromGitHub {
name = "home-manager-source";
owner = "nix-community";
repo = "home-manager";
rev = "819f682269f4e002884702b87e445c82840c68f2";
hash = "sha256-r8j6R3nrvwbT1aUp4EPQ1KC7gm0pu9VcV1aNaB+XG6Q=";
rev = "3066cc58f552421a2c5414e78407fa5603405b1e";
hash = "sha256-e9YAMReFV1fDPcZLFC2pa4k/8TloSXeX0z2VysNMAoA=";
};
nativeBuildInputs = [
+31 -10
View File
@@ -1,10 +1,11 @@
{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
installShellFiles,
darwin,
stdenv,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
@@ -14,16 +15,28 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "ulyssa";
repo = "iamb";
rev = "v${version}";
tag = "v${version}";
hash = "sha256-cjBSWUBgfwdLnpneJ5XW2TdOFkNc+Rc/wyUp9arZzwg=";
};
cargoHash = "sha256-a5y8nNFixOxJPNDOzvFFRqVrY2jsirCud2ZJJ8OvRhQ=";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.Cocoa
preBuild = ''
export HOME=$(mktemp -d)
'';
checkFlags = lib.optionals stdenv.isDarwin [
# Attempted to create a NULL object.
"--skip=base::tests::test_complete_cmdbar"
"--skip=base::tests::test_complete_msgbar"
# Attempted to create a NULL object.
"--skip=windows::room::scrollback::tests::test_cursorpos"
"--skip=windows::room::scrollback::tests::test_dirscroll"
"--skip=windows::room::scrollback::tests::test_movement"
"--skip=windows::room::scrollback::tests::test_search_messages"
];
postInstall = ''
@@ -31,12 +44,20 @@ rustPlatform.buildRustPackage rec {
installManPage $OUT_DIR/iamb.{1,5}
'';
meta = with lib; {
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Matrix client for Vim addicts";
mainProgram = "iamb";
homepage = "https://github.com/ulyssa/iamb";
changelog = "https://github.com/ulyssa/iamb/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ meain ];
changelog = "https://github.com/ulyssa/iamb/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ meain ];
};
}
+10 -10
View File
@@ -1,22 +1,22 @@
{
"version": "1.122.2",
"hash": "sha256-A6FmveHN+Kp8SFmdaMLiwZ5SLuqQSWMwZVVpMBvfoAU=",
"version": "1.122.3",
"hash": "sha256-qGTjhRvv3162D6kPa+Rv9yK/n2LfmbaFYl/9Ls2j9WM=",
"components": {
"cli": {
"npmDepsHash": "sha256-ItF8xSvxjbRV57Q2B0c7zSTULIWilvDjndmt9mfm7sE=",
"version": "2.2.35"
"npmDepsHash": "sha256-F4gK8ZnvizhM2cVHge417COcXg6VlazpC7hTD7iKLTY=",
"version": "2.2.36"
},
"server": {
"npmDepsHash": "sha256-LuQNK0RsmCNcxullGZw2YD92j6mbKrgiHjQB6g5Z4bo=",
"version": "1.122.2"
"npmDepsHash": "sha256-Thcb0EgQpoER0KpXRwbJ3t6TaBebzlDL9I6HXBfdWJI=",
"version": "1.122.3"
},
"web": {
"npmDepsHash": "sha256-G1Q3jxNrH2XnYdcu33hu4XQnhxPlxoFQYgMB0E/K6nw=",
"version": "1.122.2"
"npmDepsHash": "sha256-S2pNfuvV9iYXSQSstNUdsc6XaUvYRD1xLpUGAOV8hyU=",
"version": "1.122.3"
},
"open-api/typescript-sdk": {
"npmDepsHash": "sha256-qK6rT1W/aDU8DlIFbSZ0gqCIohr7DWsdVknmvehwpJE=",
"version": "1.122.2"
"npmDepsHash": "sha256-GtqS59I+By1u6WcR+lDj2HKXVwh7jw5/N6MRdUctlaM=",
"version": "1.122.3"
}
}
}
+27
View File
@@ -0,0 +1,27 @@
{
lib,
fetchurl,
appimageTools,
}:
appimageTools.wrapType2 rec {
pname = "jet-pilot";
version = "1.31.0";
src = fetchurl {
url = "https://github.com/unxsist/jet-pilot/releases/download/v${version}/jet-pilot_${version}_amd64.AppImage";
hash = "sha256-jhy8BfCZ0Z4T3lGrxTmSGw+fSDVzTIuvyJftpwMcYo0=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
meta = {
description = "Open-source Kubernetes desktop client that focuses on less clutter, speed and good looks";
homepage = "https://jet-pilot.app/";
changelog = "https://github.com/unxsist/jet-pilot/releases";
license = lib.licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with lib.maintainers; [ kashw2 ];
mainProgram = "jet-pilot";
};
}
+3 -3
View File
@@ -7,13 +7,13 @@
stdenv.mkDerivation {
pname = "jrl-cmakemodules";
version = "0-unstable-2024-09-17";
version = "0-unstable-2024-11-20";
src = fetchFromGitHub {
owner = "jrl-umi3218";
repo = "jrl-cmakemodules";
rev = "31e46019beda968ba9e516ad645a951c64256eed";
hash = "sha256-pe21tE0ngUYGhEuGSI71TMdwyqTmZhc53hPKHngkTGQ=";
rev = "29c0eb4e659304f44d55a0389e2749812d858659";
hash = "sha256-a23x0IIvIXJAsi8Z2/ku63hrHuSEC45FqzhxCy/T5tw=";
};
nativeBuildInputs = [ cmake ];
+3 -3
View File
@@ -9,16 +9,16 @@
buildGoModule rec {
pname = "karmor";
version = "1.2.3";
version = "1.3.0";
src = fetchFromGitHub {
owner = "kubearmor";
repo = "kubearmor-client";
rev = "v${version}";
hash = "sha256-XWht+gCR+BHQwLrQqVdCpgKO+VUC6mxvOlpn9hOjrnE=";
hash = "sha256-IXU9SP6JYOlYTHGtTZn33geFOX0byWMY3oDe9sy9MA4=";
};
vendorHash = "sha256-r3Fy4nOjlvyHcvztSfOOE6PmOhhNcVdoIq+ie5jqwkw=";
vendorHash = "sha256-VXzlhkpWbHgkJvrZ7xANzoHKqtF2TOCauOOVJJ3wLvc=";
nativeBuildInputs = [ installShellFiles ];
+2 -2
View File
@@ -15,13 +15,13 @@
}:
flutter324.buildFlutterApplication rec {
pname = "kazumi";
version = "1.4.5";
version = "1.4.6";
src = fetchFromGitHub {
owner = "Predidit";
repo = "Kazumi";
tag = version;
hash = "sha256-CbfNvLJrGjJAWSeHejtHG0foSGmjpJtvbWvK994q4uQ=";
hash = "sha256-NB6veMxAbG4YB6Io+HNLK/N8irF8g+Vj0r5L94JG//A=";
};
pubspecLock = lib.importJSON ./pubspec.lock.json;
+76 -16
View File
@@ -36,6 +36,16 @@
"source": "hosted",
"version": "6.7.0"
},
"ansicolor": {
"dependency": "transitive",
"description": {
"name": "ansicolor",
"sha256": "50e982d500bc863e1d703448afdbf9e5a72eb48840a4f766fa361ffd6877055f",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.0.3"
},
"archive": {
"dependency": "transitive",
"description": {
@@ -210,11 +220,11 @@
"dependency": "direct main",
"description": {
"name": "canvas_danmaku",
"sha256": "8e9971dab1ebc4b29bbda95b95cc19966fef5f1e313bc3bedbcc6ce697ebc523",
"sha256": "25bb2dd9a3f46cc47a926a7a3aacca461ae8c6290e9d44767cddc0f9ac4f9c91",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "0.2.4"
"version": "0.2.5"
},
"characters": {
"dependency": "transitive",
@@ -296,6 +306,16 @@
"source": "hosted",
"version": "2.0.1"
},
"console": {
"dependency": "transitive",
"description": {
"name": "console",
"sha256": "e04e7824384c5b39389acdd6dc7d33f3efe6b232f6f16d7626f194f6a01ad69a",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "4.1.0"
},
"convert": {
"dependency": "transitive",
"description": {
@@ -559,6 +579,16 @@
"source": "hosted",
"version": "6.3.4"
},
"flutter_native_splash": {
"dependency": "direct dev",
"description": {
"name": "flutter_native_splash",
"sha256": "1152ab0067ca5a2ebeb862fe0a762057202cceb22b7e62692dcbabf6483891bb",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.4.3"
},
"flutter_plugin_android_lifecycle": {
"dependency": "transitive",
"description": {
@@ -621,6 +651,16 @@
"source": "hosted",
"version": "4.0.0"
},
"get_it": {
"dependency": "transitive",
"description": {
"name": "get_it",
"sha256": "d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "7.7.0"
},
"glob": {
"dependency": "transitive",
"description": {
@@ -999,6 +1039,16 @@
"source": "hosted",
"version": "3.3.3"
},
"msix": {
"dependency": "direct dev",
"description": {
"name": "msix",
"sha256": "c50d6bd1aafe0d071a3c1e5a5ccb056404502935cb0a549e3178c4aae16caf33",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.16.8"
},
"nested": {
"dependency": "transitive",
"description": {
@@ -1083,21 +1133,21 @@
"dependency": "transitive",
"description": {
"name": "path_provider_android",
"sha256": "c464428172cb986b758c6d1724c603097febb8fb855aa265aeecc9280c294d4a",
"sha256": "8c4967f8b7cb46dc914e178daa29813d83ae502e0529d7b0478330616a691ef7",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.2.12"
"version": "2.2.14"
},
"path_provider_foundation": {
"dependency": "transitive",
"description": {
"name": "path_provider_foundation",
"sha256": "f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16",
"sha256": "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.4.0"
"version": "2.4.1"
},
"path_provider_linux": {
"dependency": "transitive",
@@ -1239,6 +1289,16 @@
"source": "hosted",
"version": "2.0.1"
},
"saver_gallery": {
"dependency": "direct main",
"description": {
"name": "saver_gallery",
"sha256": "bf59475e50b73d666630bed7a5fdb621fed92d637f64e3c61ce81653ec6a833c",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "4.0.1"
},
"screen_brightness_android": {
"dependency": "transitive",
"description": {
@@ -1333,11 +1393,11 @@
"dependency": "direct main",
"description": {
"name": "scrollview_observer",
"sha256": "8537ba32e5a15ade301e5c77ae858fd8591695defaad1821eca9eeb4ac28a157",
"sha256": "d607bc97165113b4ce6aa860a3865cfa6b849445a48c216461d74bc96be6cb94",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "1.23.0"
"version": "1.24.0"
},
"shared_preferences": {
"dependency": "transitive",
@@ -1353,11 +1413,11 @@
"dependency": "transitive",
"description": {
"name": "shared_preferences_android",
"sha256": "3b9febd815c9ca29c9e3520d50ec32f49157711e143b7a4ca039eb87e8ade5ab",
"sha256": "7f172d1b06de5da47b6264c2692ee2ead20bbbc246690427cdb4fc301cd0c549",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "2.3.3"
"version": "2.3.4"
},
"shared_preferences_foundation": {
"dependency": "transitive",
@@ -1699,11 +1759,11 @@
"dependency": "transitive",
"description": {
"name": "url_launcher_ios",
"sha256": "e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e",
"sha256": "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "6.3.1"
"version": "6.3.2"
},
"url_launcher_linux": {
"dependency": "transitive",
@@ -1719,11 +1779,11 @@
"dependency": "transitive",
"description": {
"name": "url_launcher_macos",
"sha256": "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672",
"sha256": "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "3.2.1"
"version": "3.2.2"
},
"url_launcher_platform_interface": {
"dependency": "transitive",
@@ -1920,11 +1980,11 @@
"dependency": "transitive",
"description": {
"name": "win32",
"sha256": "84ba388638ed7a8cb3445a320c8273136ab2631cd5f2c57888335504ddab1bc2",
"sha256": "8b338d4486ab3fbc0ba0db9f9b4f5239b6697fcee427939a40e720cbb9ee0a69",
"url": "https://pub.dev"
},
"source": "hosted",
"version": "5.8.0"
"version": "5.9.0"
},
"win32_registry": {
"dependency": "transitive",
+3 -3
View File
@@ -10,16 +10,16 @@
buildGoModule rec {
pname = "kubelogin";
version = "0.1.5";
version = "0.1.6";
src = fetchFromGitHub {
owner = "Azure";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/qA/M0Z71j3h5zKDMUWsni9lgbrCcjYHpnhFPVRJ1qA=";
sha256 = "sha256-VmCJoyr42tbQhe8o54D/t9+Gfz40Oe6NzqqJWknNP70=";
};
vendorHash = "sha256-qz51x1d8Uk3N5vrDMVgJxFIxXTMiDCPplI7SmJjZ3sI=";
vendorHash = "sha256-8L5OzEJvHBOHPkZyIitIW8hBzmOytTDUUTGlAmY5zBg=";
ldflags = [
"-X main.gitTag=v${version}"
+3 -3
View File
@@ -6,16 +6,16 @@
buildGoModule rec {
pname = "kubeseal";
version = "0.27.2";
version = "0.27.3";
src = fetchFromGitHub {
owner = "bitnami-labs";
repo = "sealed-secrets";
rev = "v${version}";
sha256 = "sha256-CM/QKg65rCE4e7xvJxk+JuKWy4ZwckWi0BK8TaAkeA8=";
sha256 = "sha256-MPNoYKqY9L+RO+iWMhTF5ZX4JbwXqIOaNSMgwLYLwFY=";
};
vendorHash = "sha256-XaCnv+DrhXRDFN1qDoV5x0eZmGxEQFPssHvKk0X9Y7Y=";
vendorHash = "sha256-SADHoQULpR+1il1LkqQuvsndpl22FTDBhv54tn9B6jY=";
subPackages = [ "cmd/kubeseal" ];
+2 -2
View File
@@ -9,13 +9,13 @@
stdenv.mkDerivation rec {
pname = "libgbinder";
version = "1.1.41";
version = "1.1.42";
src = fetchFromGitHub {
owner = "mer-hybris";
repo = pname;
rev = version;
sha256 = "sha256-CnoxWzouOX8OLzJx3nVl0u2L8fObESzj4Q0Z1KH7Tg4=";
sha256 = "sha256-f5yfAmCpjI4T0XKBiGPQ3JWLuYg+SlrQwYeY/HIrycY=";
};
outputs = [
+46
View File
@@ -0,0 +1,46 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 24c7d85..3d070d5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -79,6 +79,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
find_package(TBB REQUIRED)
endif()
+#[==[
if(NOT DEFINED ESPLUGIN_URL)
set(ESPLUGIN_URL "https://github.com/Ortham/esplugin/archive/refs/tags/6.1.0.tar.gz")
set(ESPLUGIN_HASH "SHA256=52dec796d98426e1c75c5cf3c41351c0b3431a6301137e00fcf6023f4e47b502")
@@ -153,6 +154,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
else()
set(LCI_LIBRARIES ${LCI_LIBRARIES} dl)
endif()
+#]==]
FetchContent_Declare(
fmt
@@ -307,10 +309,6 @@ set(LIBLOOT_ALL_SOURCES
# Build API.
add_library(loot ${LIBLOOT_ALL_SOURCES})
-add_dependencies(loot
- esplugin
- libloadorder
- loot-condition-interpreter)
target_link_libraries(loot PRIVATE
Boost::headers
${ESPLUGIN_LIBRARIES}
diff --git a/cmake/tests.cmake b/cmake/tests.cmake
index ebccd82..2cef53c 100644
--- a/cmake/tests.cmake
+++ b/cmake/tests.cmake
@@ -108,10 +108,6 @@ set(LIBLOOT_INTERFACE_TESTS_ALL_SOURCES
# Build tests.
add_executable(libloot_internals_tests ${LIBLOOT_INTERNALS_TESTS_ALL_SOURCES})
-add_dependencies(libloot_internals_tests
- esplugin
- libloadorder
- loot-condition-interpreter)
target_link_libraries(libloot_internals_tests PRIVATE
Boost::headers
${ESPLUGIN_LIBRARIES}
+211
View File
@@ -0,0 +1,211 @@
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
rust-cbindgen,
cmake,
pkg-config,
withDocs ? true,
doxygen,
python3Packages,
boost,
fmt_11,
gtest,
icu,
spdlog,
tbb_2021_11,
yaml-cpp,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libloot";
version = "0.24.5";
# Note: don't forget to also update the package versions in the passthru section
outputs = [
"out"
"dev"
] ++ lib.optionals withDocs [ "doc" ];
src = fetchFromGitHub {
owner = "loot";
repo = "libloot";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-SAnbp34DlGsq4nfaRHfCTGRSGQtv/rRgngvwma2tc7Q=";
};
patches = [
# don't try to build the rust FFI dependencies with cargo, since we build them separately
./deps.patch
];
postPatch = ''
# there seem to have been some changes in header files generated by rust-cbindgen, so we use the new names
substituteInPlace src/api/plugin.{h,cpp} \
--replace-fail 'Vec_PluginMetadata' 'Vec<::PluginMetadata>'
'';
strictDeps = true;
nativeBuildInputs =
[
cmake
pkg-config
]
++ lib.optionals withDocs [
doxygen
python3Packages.sphinx
python3Packages.sphinx-rtd-theme
python3Packages.breathe
];
buildInputs = [
boost
fmt_11
gtest
icu
(spdlog.override { fmt = fmt_11; })
tbb_2021_11
finalAttrs.passthru.yaml-cpp # has merge-key support
finalAttrs.passthru.libloadorder
finalAttrs.passthru.esplugin
finalAttrs.passthru.loot-condition-interpreter
];
cmakeFlags = [
(lib.cmakeFeature "ESPLUGIN_LIBRARIES" "esplugin_ffi")
(lib.cmakeFeature "LIBLOADORDER_LIBRARIES" "loadorder_ffi")
(lib.cmakeFeature "LCI_LIBRARIES" "loot_condition_interpreter_ffi")
(lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_TESTING-PLUGINS" "../testing-plugins")
(lib.cmakeBool "LIBLOOT_BUILD_TESTS" finalAttrs.doCheck)
(lib.cmakeBool "LIBLOOT_INSTALL_DOCS" withDocs)
];
postConfigure = lib.optionalString finalAttrs.doCheck ''
cp -r --no-preserve=all ${finalAttrs.passthru.testing-plugins} ../testing-plugins
'';
postBuild = lib.optionalString withDocs ''
sphinx-build -b html ../docs docs/html
'';
env.GTEST_FILTER =
let
disabledTests = [
# Some locale releated tests fail because they need the LOCALE_ARCHIVE env var to be set to "${glibcLocales}/lib/locale/locale-archive"
# Due to storage size concerns of `glibcLocales`, we skip this
"CompareFilenames.shouldBeCaseInsensitiveAndLocaleInvariant"
"NormalizeFilename.shouldCaseFoldStringsAndBeLocaleInvariant"
# Some filesystem related test fail because they assume `std::filesystem::equivalent` works with non-existent paths
"Filesystem.equivalentShouldNotRequireThatBothPathsExist"
"Filesystem.equivalentShouldBeCaseSensitive"
];
in
"-${builtins.concatStringsSep ":" disabledTests}";
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
passthru = {
testing-plugins = fetchFromGitHub {
owner = "Ortham";
repo = "testing-plugins";
rev = "refs/tags/1.6.2";
hash = "sha256-3Aa98EwqpuGA3YlsRF8luWzXVEFO/rs6JXisXdLyIK4=";
};
buildRustFFIPackage =
args:
rustPlatform.buildRustPackage (
args
// {
postConfigure = ''
cp -r --no-preserve=all ${finalAttrs.passthru.testing-plugins} testing-plugins
'';
nativeBuildInputs = [ rust-cbindgen ];
buildAndTestSubdir = "ffi";
postBuild = ''
cbindgen ffi/ -l "$lang" -o "$out/include/$header"
'';
}
);
libloadorder = finalAttrs.passthru.buildRustFFIPackage rec {
pname = "libloadorder";
version = "18.1.3";
src = fetchFromGitHub {
owner = "Ortham";
repo = "libloadorder";
rev = "refs/tags/${version}";
hash = "sha256-qJ7gC4BkrXJiVcyA1BqlJSRzgc/7VmNBHtDq0ouJoTU=";
};
cargoHash = "sha256-x4LFO6dD3bBKv6gTrNUAo7Rdw5cP67gn44QP6Iwbv0I=";
lang = "c++";
header = "libloadorder.hpp";
};
esplugin = finalAttrs.passthru.buildRustFFIPackage rec {
pname = "esplugin";
version = "6.1.1";
src = fetchFromGitHub {
owner = "Ortham";
repo = "esplugin";
rev = "refs/tags/${version}";
hash = "sha256-ygjSyixg+9HFFNV/G+w+TxGFTrjlWxlDt8phpCE8xyQ=";
};
cargoHash = "sha256-39iod83yVU5PyIjwv7pLLuMeNw9fHiM0tXDauyGrbx8=";
lang = "c++";
header = "esplugin.hpp";
};
loot-condition-interpreter = finalAttrs.passthru.buildRustFFIPackage rec {
pname = "loot-condition-interpreter";
version = "4.0.2";
src = fetchFromGitHub {
owner = "loot";
repo = "loot-condition-interpreter";
rev = "refs/tags/${version}";
hash = "sha256-yXbe7ByYHvFpokRpV2pz2SX0986dpk5IpehwDUhoZKg=";
};
cargoHash = "sha256-p+raWZkW16MrvfZhJigSPth8pZZ68twU1+0GL/Mo1Xw=";
lang = "c";
header = "loot_condition_interpreter.h";
};
yaml-cpp = yaml-cpp.overrideAttrs rec {
version = "0.8.0+merge-key-support.2";
src = fetchFromGitHub {
owner = "loot";
repo = "yaml-cpp";
rev = "refs/tags/${version}";
hash = "sha256-whYorebrLiDeO75LC2SMUX/8OD528BR0+DEgnJxxpoQ=";
};
};
};
meta = {
description = "C++ library for accessing LOOT's metadata and sorting functionality";
homepage = "https://github.com/loot/libloot";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ tomasajt ];
platforms = lib.platforms.linux;
};
})
@@ -1,24 +0,0 @@
From bfdb6b8f87cc1cae9ba47870ff23deae0bb8ba51 Mon Sep 17 00:00:00 2001
From: Al <albarrentine@gmail.com>
Date: Sun, 17 Dec 2017 20:17:01 -0500
Subject: [PATCH] [test] adding header to fix warning
---
test/test_expand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/test_expand.c b/test/test_expand.c
index 59ed9af7..2b211728 100644
--- a/test/test_expand.c
+++ b/test/test_expand.c
@@ -4,6 +4,7 @@
#include <stdarg.h>
#include "greatest.h"
+#include "../src/string_utils.h"
#include "../src/libpostal.h"
SUITE(libpostal_expansion_tests);
--
2.42.0
+31 -16
View File
@@ -1,34 +1,49 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }:
{ lib, stdenv, fetchFromGitHub, fetchzip, autoreconfHook, withData ? false }:
stdenv.mkDerivation rec {
let
releases = "https://github.com/openvenues/libpostal/releases";
assets-base = fetchzip {
url = "${releases}/download/v1.0.0/libpostal_data.tar.gz";
hash = "sha256-FpGCkkRhVzyr08YcO0/iixxw0RK+3Of0sv/DH3GbbME=";
stripRoot = false;
};
assets-parser = fetchzip {
url = "${releases}/download/v1.0.0/parser.tar.gz";
hash = "sha256-OHETb3e0GtVS2b4DgklKDlrE/8gxF7XZ3FwmCTqZbqQ=";
stripRoot = false;
};
assets-language-classifier = fetchzip {
url = "${releases}/download/v1.0.0/language_classifier.tar.gz";
hash = "sha256-/Gn931Nx4UDBaiFUgGqC/NJUIKQ5aZT/+OYSlcfXva8=";
stripRoot = false;
};
in stdenv.mkDerivation rec {
pname = "libpostal";
version = "1.1";
src = fetchFromGitHub {
owner = "openvenues";
repo = "libpostal";
rev = "v${version}";
sha256 = "sha256-gQTD2LQibaB2TK0SbzoILAljAGExURvDcF3C/TfDXqk=";
rev = "refs/tags/v${version}";
hash = "sha256-7G/CjYdVzsrvUFXGODoXgXoRp8txkl5SddcPtgltrjY=";
};
patches = [
# Fix darwin compilation with XCode 12 https://github.com/openvenues/libpostal/issues/511
(fetchpatch {
name = "Fix-C-compilation-macOS.patch";
url = "https://github.com/openvenues/libpostal/commit/9fcf066e38121b5c1439fc6bdc9a7e02234c8622.patch";
hash = "sha256-VpboGK+5sc1XrxMB051KWc8vP7Eu2g7zmTirzSaerns=";
})
# https://github.com/openvenues/libpostal/commit/bfdb6b8f87cc1cae9ba47870ff23deae0bb8ba51.patch
# with extra hunk removed so it applies
./0001-test-adding-header-to-fix-warning.patch
];
nativeBuildInputs = [ autoreconfHook ];
configureFlags = [
"--disable-data-download"
] ++ lib.optionals stdenv.hostPlatform.isAarch64 [ "--disable-sse2" ];
postBuild = lib.optionalString withData ''
mkdir -p $out/share/libpostal
ln -s ${assets-language-classifier}/language_classifier $out/share/libpostal/language_classifier
ln -s ${assets-base}/transliteration $out/share/libpostal/transliteration
ln -s ${assets-base}/numex $out/share/libpostal/numex
ln -s ${assets-base}/address_expansions $out/share/libpostal/address_expansions
ln -s ${assets-parser}/address_parser $out/share/libpostal/address_parser
'';
doCheck = withData;
meta = with lib; {
description = "C library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data";
homepage = "https://github.com/openvenues/libpostal";
+3 -3
View File
@@ -5,16 +5,16 @@
buildGoModule rec {
pname = "ligolo-ng";
version = "0.6.2";
version = "0.7.3";
src = fetchFromGitHub {
owner = "tnpitsecurity";
repo = "ligolo-ng";
rev = "refs/tags/v${version}";
hash = "sha256-TNIAin4W3pBNl9Id0zFeEDTT0B2PCS29q7csekkZ4CQ=";
hash = "sha256-rngV3/fziDaJoe5WJFR8gOVBhf6emAJL+UFRWKdOfh8=";
};
vendorHash = "sha256-LqoWkhEnsKTz384dhqNKmZrG38NHxaFx4k7zjHj51Ys=";
vendorHash = "sha256-v6lHY3s1TJh8u4JaTa9kcCj+1pl01zckvTVeLk8TZ+w=";
postConfigure = ''
export CGO_ENABLED=0
+41
View File
@@ -0,0 +1,41 @@
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "limbo";
version = "0.0.9";
src = fetchFromGitHub {
owner = "tursodatabase";
repo = "limbo";
tag = "v${version}";
hash = "sha256-cUGakjq6PFUKSMPKGL1CcYUjDMzdTUWUqMs0J8ZNaeQ=";
};
cargoHash = "sha256-pXMfAMD8ThMQvYRLTYuPimPoN42OXOL8Li0LsoQ/13A=";
cargoBuildFlags = [
"-p"
"limbo"
];
cargoTestFlags = cargoBuildFlags;
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = [ "--version" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Interactive SQL shell for Limbo";
homepage = "https://github.com/tursodatabase/limbo";
changelog = "https://github.com/tursodatabase/limbo/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nartsiss ];
mainProgram = "limbo";
};
}
+4 -4
View File
@@ -55,11 +55,11 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "lime3ds";
version = "2119";
version = "2119.1";
src = fetchzip {
url = "https://github.com/Lime3DS/Lime3DS/releases/download/${finalAttrs.version}/lime3ds-unified-source-${finalAttrs.version}.tar.xz";
hash = "sha256-cBPSzkvvivWGTD2E7fjeY3uJ1nSlALbOgIalGdk6xLU=";
url = "https://github.com/Lime3DS/Lime3ds-archive/releases/download/${finalAttrs.version}/lime3ds-unified-source-${finalAttrs.version}.tar.xz";
hash = "sha256-37KFGCVyc4QW+D00CzN1+lpNYZxCWRkflt7rkIFcdM8=";
};
nativeBuildInputs = [
@@ -163,7 +163,7 @@ stdenv.mkDerivation (finalAttrs: {
meta = {
description = "A Nintendo 3DS emulator based on Citra";
homepage = "https://github.com/Lime3DS/Lime3DS";
homepage = "https://github.com/Lime3DS/Lime3ds-archive";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ arthsmn ];
mainProgram = "lime3ds";
+82
View File
@@ -0,0 +1,82 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
jsoncpp,
libarchive,
libcpr,
libloot,
pugixml,
libsForQt5,
withUnrar ? true,
unrar, # has an unfree license
}:
stdenv.mkDerivation (finalAttrs: {
pname = "limo";
version = "1.0.8.2";
src = fetchFromGitHub {
owner = "limo-app";
repo = "limo";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-6rv1IjWb/nrymd57CtrlAjX2KfMYlYNnfiodiRAJ1Ok=";
};
patches = lib.optionals (!withUnrar) [
# remove `unrar` as fallback when libarchive fails
./remove-unrar.patch
];
strictDeps = true;
nativeBuildInputs = [
cmake
pkg-config
libsForQt5.wrapQtAppsHook
];
buildInputs =
[
jsoncpp
libarchive
libcpr
libloot
pugixml
libsForQt5.qtbase
libsForQt5.qtsvg
libsForQt5.qtwayland
]
++ lib.optionals withUnrar [
unrar
];
cmakeFlags =
[
(lib.cmakeFeature "LIMO_INSTALL_PREFIX" (placeholder "out"))
(lib.cmakeBool "USE_SYSTEM_LIBUNRAR" true)
]
++ lib.optionals (!withUnrar) [
(lib.cmakeFeature "LIBUNRAR_PATH" "")
(lib.cmakeFeature "LIBUNRAR_INCLUDE_DIR" "")
];
meta = {
description = "General purpose mod manager with support for the NexusMods API and LOOT";
homepage = "https://github.com/limo-app/limo";
license = lib.licenses.gpl3Plus;
mainProgram = "Limo";
maintainers = with lib.maintainers; [
tomasajt
MattSturgeon
];
platforms = lib.platforms.linux;
};
})
+42
View File
@@ -0,0 +1,42 @@
diff --git a/src/core/installer.cpp b/src/core/installer.cpp
index ea384a8..aab8be0 100644
--- a/src/core/installer.cpp
+++ b/src/core/installer.cpp
@@ -7,7 +7,6 @@
#include <ranges>
#include <regex>
#define _UNIX
-#include <dll.hpp>
namespace sfs = std::filesystem;
namespace pu = path_utils;
@@ -35,6 +34,8 @@ void Installer::extract(const sfs::path& source_path,
}
catch(CompressionError& error)
{
+ throw error;
+ /*
std::string extension = source_path.extension().string();
std::transform(extension.begin(),
extension.end(),
@@ -48,6 +49,7 @@ void Installer::extract(const sfs::path& source_path,
}
else
throw error;
+ */
}
for(const auto& dir_entry : sfs::recursive_directory_iterator(dest_path))
{
@@ -428,6 +430,7 @@ void Installer::extractWithProgress(const sfs::path& source_path,
sfs::current_path(working_dir);
}
+/*
void Installer::extractRarArchive(const sfs::path& source_path, const sfs::path& dest_path)
{
log(Log::LOG_DEBUG, "Using fallback rar extraction");
@@ -459,3 +462,4 @@ void Installer::extractRarArchive(const sfs::path& source_path, const sfs::path&
throw CompressionError("Failed to extract RAR archive.");
RARCloseArchive(hArcData);
}
+*/
+3 -3
View File
@@ -6,16 +6,16 @@
buildGoModule rec {
pname = "mark";
version = "11.3.0";
version = "11.3.1";
src = fetchFromGitHub {
owner = "kovetskiy";
repo = "mark";
rev = version;
sha256 = "sha256-IppvQPcwix4TGxGW1iOVV60NfK4D53fZuFt5OvLrn/g=";
sha256 = "sha256-gYNNh29Z65f7lAYooK0GQe3zlJ7OIpDfIQsc68UDeCc=";
};
vendorHash = "sha256-boXimID1tmZwa29rbTW5bqPz2KTnQAEAIG6d/6BPuWc=";
vendorHash = "sha256-I3hJn2wGRB5Kr6aoyiQHEIaFAQPwUn6kDJHCFuX+nAM=";
ldflags = [
"-s"
+2 -2
View File
@@ -9,11 +9,11 @@
stdenv.mkDerivation rec {
pname = "micronaut";
version = "4.7.1";
version = "4.7.2";
src = fetchzip {
url = "https://github.com/micronaut-projects/micronaut-starter/releases/download/v${version}/micronaut-cli-${version}.zip";
sha256 = "sha256-h0C3mRV74tpoVoMDdl9TVAWk8/P7ngjPFM2c3qybTCE=";
sha256 = "sha256-oyLJ3PGXT7/PDtXiPl0vX/jhaaYavwtoxuFPRLdGV8w=";
};
nativeBuildInputs = [
+3 -3
View File
@@ -8,16 +8,16 @@
buildGoModule rec {
pname = "nats-top";
version = "0.6.2";
version = "0.6.3";
src = fetchFromGitHub {
owner = "nats-io";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-zOo+f4NVFvx9deV1QY7mCi6Q0EJRMRwPu12maFDlnCU=";
hash = "sha256-NOU0U1hyP9FCSLK0ulf28cx1K0/KWKQd+t3KtaVqWWo=";
};
vendorHash = "sha256-oPapBYm3gJtPpVP0lmsVijAdjK6M8/kOx/7QIeInOlM=";
vendorHash = "sha256-BQzOlX7Zrtlcd6+O92JoouzC1QCCbgRAeJoYn/runYA=";
ldflags = [
"-s"
@@ -45,7 +45,7 @@ let
else if isx86_64 then
"amd64"
else
abort "no Nim CPU support known for ${config}";
throw "no Nim CPU support known for ${config}";
parseOs =
platform:
@@ -72,7 +72,7 @@ let
else if isiOS then
"iOS"
else
abort "no Nim OS support known for ${config}";
throw "no Nim OS support known for ${config}";
parsePlatform = p: {
cpu = parseCpu p;
+3 -3
View File
@@ -6,16 +6,16 @@
buildGoModule rec {
pname = "nkeys";
version = "0.4.8";
version = "0.4.9";
src = fetchFromGitHub {
owner = "nats-io";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-/nqYTJq8QPRR6ADAg1300I52agdoR7o84eumRjQY6xU=";
hash = "sha256-5HmtCzY2EmlnBqg36JcjaaM2ivrM5f719bkWqpxekVI=";
};
vendorHash = "sha256-NHblFXIRK9moaZKBdfm61Ueo+GH/lGmVhrzYvMvYhjA=";
vendorHash = "sha256-AJrfHMNjuGO8LbuP4cAVClKWHkqkG+nPzQw+B+nRpxM=";
meta = with lib; {
description = "Public-key signature system for NATS";
+4 -4
View File
@@ -8,13 +8,13 @@
buildGoModule rec {
pname = "nsc";
version = "2.10.0";
version = "2.10.1";
src = fetchFromGitHub {
owner = "nats-io";
repo = pname;
rev = "v${version}";
hash = "sha256-iobC5qhrQg/vy161atU0NqqKnvsr1CGaiXAe6Ln+Tn8=";
hash = "sha256-8HFlWrkDgekW/0IV9LQdn68vygFq0QtR6p4xyJZwAw4=";
};
ldflags = [
@@ -24,7 +24,7 @@ buildGoModule rec {
"-X main.builtBy=nixpkgs"
];
vendorHash = "sha256-CirTiIQD3Xvt+ly7Ll3THLwImqbyQDDIz092ihosejY=";
vendorHash = "sha256-MxkpK3CgQ+eoxGfLRqE3kudyZounDD0+cmzOoiPf1wc=";
nativeBuildInputs = [ installShellFiles ];
@@ -47,7 +47,7 @@ buildGoModule rec {
# the test strips table formatting from the command output in a naive way
# that removes all the table characters, including '-'.
# The nix build directory looks something like:
# /private/tmp/nix-build-nsc-2.10.0.drv-0/nsc_test2000598938/keys
# /private/tmp/nix-build-nsc-2.10.1.drv-0/nsc_test2000598938/keys
# Then the `-` are removed from the path unintentionally and the test fails.
# This should be fixed upstream to avoid mangling the path when
# removing the table decorations from the command output.
+75
View File
@@ -0,0 +1,75 @@
{
lib,
python3Packages,
fetchFromGitHub,
djvulibre,
docbook-xsl-ns,
glibcLocales,
libxml2,
libxml2Python,
libxslt,
pkg-config,
tesseract5,
withCuneiform ? false,
cuneiform,
withGocr ? false,
gocr,
withOcrad ? false,
ocrad,
}:
python3Packages.buildPythonApplication rec {
pname = "ocrodjvu";
version = "0.13.2";
pyproject = true;
src = fetchFromGitHub {
owner = "FriedrichFroebel";
repo = "ocrodjvu";
rev = version;
hash = "sha256-EiMCrRFUAJbu9QLgKpFIKqigCZ77lpTDD6AvZuMbyhA=";
};
build-system = with python3Packages; [
setuptools
];
propagatedBuildInputs =
[
]
++ lib.optional withCuneiform cuneiform
++ lib.optional withGocr gocr
++ lib.optional withOcrad ocrad;
dependencies = with python3Packages; [
lxml
python-djvulibre
pyicu
html5lib
];
nativeCheckInputs = [
python3Packages.unittestCheckHook
python3Packages.pillow
djvulibre
glibcLocales
libxml2
libxml2Python
tesseract5
];
unittestFlagsArray = [
"tests"
"-v"
];
meta = with lib; {
description = "Wrapper for OCR systems that allows you to perform OCR on DjVu files";
homepage = "https://github.com/FriedrichFroebel/ocrodjvu";
changelog = "https://github.com/FriedrichFroebel/ocrodjvu/blob/${version}/doc/changelog";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [ dansbandit ];
mainProgram = "ocrodjvu";
};
}
+2 -2
View File
@@ -68,13 +68,13 @@ let
(self: super: {
octoprint-filecheck = self.buildPythonPackage rec {
pname = "OctoPrint-FileCheck";
version = "2024.3.27";
version = "2024.11.12";
src = fetchFromGitHub {
owner = "OctoPrint";
repo = "OctoPrint-FileCheck";
rev = version;
sha256 = "sha256-2MK9whPpgwQC+WPbPf628Ocjz6t8HKozblP7dmjD7RQ=";
sha256 = "sha256-Y7yvImnYahmrf5GC4c8Ki8IsOZ8r9I4uk8mYBhEQZ28=";
};
doCheck = false;
};
+4 -4
View File
@@ -252,13 +252,13 @@ in
mqtt = buildPlugin rec {
pname = "mqtt";
version = "0.8.10";
version = "0.8.16";
src = fetchFromGitHub {
owner = "OctoPrint";
repo = "OctoPrint-MQTT";
rev = version;
sha256 = "sha256-nvEUvN/SdUE1tQkLbxMkZ8xxeUIZiNNirIfWLeH1Kfg=";
sha256 = "sha256-K8DydzmsDzWn5GXpxPGvAHDFpgk/mbyVBflCgOoB94U=";
};
propagatedBuildInputs = with super; [ paho-mqtt ];
@@ -390,13 +390,13 @@ in
prusaslicerthumbnails = buildPlugin rec {
pname = "prusaslicerthumbnails";
version = "1.0.7";
version = "1.0.8";
src = fetchFromGitHub {
owner = "jneilliii";
repo = "OctoPrint-PrusaSlicerThumbnails";
rev = version;
sha256 = "sha256-waNCTjAZwdBfhHyJCG2La7KTnJ8MDVuX1JLetFB5bS4=";
sha256 = "sha256-5TUx64i3VIUXtpIf4mo3hP//kXE+LuuLaZEJYgv4hVs=";
};
propagatedBuildInputs = with super; [ psutil ];
+2 -2
View File
@@ -31,13 +31,13 @@
stdenv.mkDerivation rec {
pname = "openvas-scanner";
version = "23.10.0";
version = "23.13.1";
src = fetchFromGitHub {
owner = "greenbone";
repo = "openvas-scanner";
rev = "refs/tags/v${version}";
hash = "sha256-5eXw9buGln2of4wumPUFloguCvru9at4pUEb1FVYzoM=";
hash = "sha256-MT5AtuJQeSUjN+jbqJ957+oy24wVAZ89bkZ4bMxIFNc=";
};
nativeBuildInputs = [
+2 -2
View File
@@ -7,13 +7,13 @@
buildGoModule rec {
pname = "orchard";
version = "0.25.2";
version = "0.26.2";
src = fetchFromGitHub {
owner = "cirruslabs";
repo = pname;
rev = version;
hash = "sha256-FuqzVMpv62Knbbhy9yExyjT2UVdH2KlaQ+ETW8/abWc=";
hash = "sha256-j072161KN/4VjHnxF6fqnVOoWhKlDTNzDZKzX2TK5Y0=";
# populate values that require us to use git. By doing this in postFetch we
# can delete .git afterwards and maintain better reproducibility of the src.
leaveDotGit = true;
+3 -3
View File
@@ -7,16 +7,16 @@
buildGoModule rec {
pname = "parlay";
version = "0.6.0";
version = "0.6.4";
src = fetchFromGitHub {
owner = "snyk";
repo = "parlay";
rev = "v${version}";
hash = "sha256-hcNNW4/+AX06vkEbauHyMP5b2y/1YNlWhgqS5Rx8sS8=";
hash = "sha256-g0gTsfdt1/BwWFBPyNuBf58gypdeZib6GUDPnPaFepA=";
};
vendorHash = "sha256-Eo5MgdISiwbaJFg5XHAwe5x3D8GmgzswYmcUG4gvaQk=";
vendorHash = "sha256-kxN2uBXjCnyVbypDOrOAXoSa6Pb7Fmk487ael4aI9Uw=";
passthru.updateScript = nix-update-script { };
+3 -3
View File
@@ -9,7 +9,7 @@
eigen,
example-robot-data,
fetchFromGitHub,
hpp-fcl,
coal,
jrl-cmakemodules,
lib,
pkg-config,
@@ -77,12 +77,12 @@ stdenv.mkDerivation (finalAttrs: {
boost
eigen
]
++ lib.optionals (!pythonSupport && collisionSupport) [ hpp-fcl ]
++ lib.optionals (!pythonSupport && collisionSupport) [ coal ]
++ lib.optionals pythonSupport [
python3Packages.boost
python3Packages.eigenpy
]
++ lib.optionals (pythonSupport && collisionSupport) [ python3Packages.hpp-fcl ]
++ lib.optionals (pythonSupport && collisionSupport) [ python3Packages.coal ]
++ lib.optionals (!pythonSupport && casadiSupport) [ casadi ]
++ lib.optionals (pythonSupport && casadiSupport) [ python3Packages.casadi ];
+28
View File
@@ -0,0 +1,28 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation rec {
pname = "pycdc";
version = "0-unstable-2024-10-13";
src = fetchFromGitHub {
owner = "zrax";
repo = "pycdc";
rev = "5e1c4037a96b966e4e6728c55b2d7ee8076a13c3";
hash = "sha256-c/mfM2I8Rw136aQ3IAQOkkrOEtZ5LC/xKuWXzCItW2w=";
};
nativeBuildInputs = [ cmake ];
meta = {
description = "C++ python bytecode disassembler and decompiler";
homepage = "https://github.com/zrax/pycdc";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ msm ];
mainProgram = "pycdc";
};
}
+3 -2
View File
@@ -75,6 +75,7 @@ stdenv.mkDerivation {
runtimeDependencies = map lib.getLib [
systemd
libkrb5
];
installPhase = ''
@@ -84,8 +85,8 @@ stdenv.mkDerivation {
cp -r opt $out/opt
cp -r usr/share $out/share
substituteInPlace $out/share/applications/qq.desktop \
--replace "/opt/QQ/qq" "$out/bin/qq" \
--replace "/usr/share" "$out/share"
--replace-fail "/opt/QQ/qq" "$out/bin/qq" \
--replace-fail "/usr/share" "$out/share"
makeShellWrapper $out/opt/QQ/qq $out/bin/qq \
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \
--prefix LD_PRELOAD : "${lib.makeLibraryPath [ libssh2 ]}/libssh2.so.1" \
+6 -6
View File
@@ -1,9 +1,9 @@
# Generated by ./update.sh - do not update manually!
# Last updated: 2024-11-17
# Last updated: 2024-12-14
{
version = "3.2.13-2024.11.12";
amd64_url = "https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.13_241112_amd64_01.deb";
arm64_url = "https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.13_241112_arm64_01.deb";
arm64_hash = "sha256-eAWneMK6aJUVudQemganaRiDnEGtDcJB9z0OIehlD48=";
amd64_hash = "sha256-ycGNihLYcemA37PGpGT5hCaiq5nD4KumqSMF7TKk4iI=";
version = "3.2.15-2024.12.10";
amd64_url = "https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.15_241210_amd64_01.deb";
arm64_url = "https://dldir1.qq.com/qqfile/qq/QQNT/Linux/QQ_3.2.15_241210_arm64_01.deb";
arm64_hash = "sha256-oQ3pP/9G7Xx3OO//Yl46DNxHsJ0bDwnwQHrtTdfQY6o=";
amd64_hash = "sha256-KvcJGLavX8riUsiV6R4xbEns+lu/fb2LXpcXtKW/Grs=";
}
+2 -2
View File
@@ -15,8 +15,8 @@ amd64_hash=$(nix-prefetch-url $amd64_url)
arm64_hash=$(nix-prefetch-url $arm64_url)
# use friendlier hashes
amd64_hash=$(nix hash to-sri --type sha256 "$amd64_hash")
arm64_hash=$(nix hash to-sri --type sha256 "$arm64_hash")
amd64_hash=$(nix hash convert --to sri --hash-algo sha256 "$amd64_hash")
arm64_hash=$(nix hash convert --to sri --hash-algo sha256 "$arm64_hash")
cat >sources.nix <<EOF
# Generated by ./update.sh - do not update manually!
+43
View File
@@ -0,0 +1,43 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
buildNpmPackage rec {
pname = "repomix";
version = "0.2.6";
src = fetchFromGitHub {
owner = "yamadashy";
repo = "repomix";
tag = "v${version}";
hash = "sha256-ZYU85782Z6O69KkKu4h3OqJqAgaxktEgHkcfs2ms9xg=";
};
npmDepsHash = "sha256-r+RIa7ACXJv4/CutnN/3S36US6r7w0EkM9dA4ShWPdU=";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
doCheck = true;
checkPhase = ''
runHook preCheck
npx vitest run
runHook postCheck
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Tool to pack repository contents to single file for AI consumption";
homepage = "https://github.com/yamadashy/repomix";
changelog = "https://github.com/yamadashy/repomix/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ thinnerthinker ];
mainProgram = "repomix";
};
}
+1 -1
View File
@@ -3,7 +3,7 @@
makeScopeWithSplicing',
}:
makeScopeWithSplicing' {
otherSplices = generateSplicesForMkScope;
otherSplices = generateSplicesForMkScope "reposilitePlugins";
f =
self:
{
+34
View File
@@ -0,0 +1,34 @@
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "rops";
version = "0.1.4";
src = fetchFromGitHub {
owner = "gibbz00";
repo = "rops";
tag = version;
hash = "sha256-532rV7ISNy8vbqq8yW9FdIqj5Ei/HJKZoEocM7Vwvg8=";
};
cargoHash = "sha256-7+SAaIw2B+Viu3lBN+yQq5VDEC9o4THQ1LRiQ8QmnaU=";
# will true when tests is fixed from source.
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = {
description = "SOPS alternative in pure rust";
homepage = "https://gibbz00.github.io/rops";
changelog = "https://github.com/gibbz00/rops/blob/${version}/CHANGELOG.md";
mainProgram = "rops";
maintainers = with lib.maintainers; [ r17x ];
license = lib.licenses.mpl20;
};
}
+1 -3
View File
@@ -22,8 +22,6 @@ let
in
assert stdenv.hostPlatform.system == "x86_64-linux";
stdenv.mkDerivation rec {
pname = "saleae-logic";
version = "1.2.18";
@@ -92,7 +90,7 @@ stdenv.mkDerivation rec {
homepage = "https://www.saleae.com/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
platforms = platforms.linux;
platforms = intersectLists platforms.x86_64 platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}
+3 -3
View File
@@ -8,16 +8,16 @@
rustPlatform.buildRustPackage rec {
pname = "sendme";
version = "0.19.0";
version = "0.20.0";
src = fetchFromGitHub {
owner = "n0-computer";
repo = pname;
rev = "v${version}";
hash = "sha256-i1mZEK2Ba4CY/H/yWKxz8e7mHhiuewi7LFiQQubv+YM=";
hash = "sha256-wnQ2NO+s6HumdxpO/qS/UeVdHgk9MvE6jpiSiBO0EIg=";
};
cargoHash = "sha256-W2R00nhoDVz1TuGyQxN6mWKoFIU5TfywtsdduNEp+j8=";
cargoHash = "sha256-5H/AQBPNSE5J+NQsSFn0z9dfG0ssxungpFJR220scgY=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,36 @@
diff --git a/build.gradle.kts b/build.gradle.kts
index 79534cdf..4f298e66 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,3 +1,2 @@
plugins {
- id("org.ajoberstar.grgit")
}
diff --git a/server/desktop/build.gradle.kts b/server/desktop/build.gradle.kts
index 9ebb84a7..6130e45f 100644
--- a/server/desktop/build.gradle.kts
+++ b/server/desktop/build.gradle.kts
@@ -13,7 +13,6 @@ plugins {
application
id("com.gradleup.shadow")
id("com.github.gmazzo.buildconfig")
- id("org.ajoberstar.grgit")
}
kotlin {
@@ -86,12 +85,10 @@ buildConfig {
useKotlinOutput { topLevelConstants = true }
packageName("dev.slimevr.desktop")
- val gitVersionTag = providers.exec {
- commandLine("git", "--no-pager", "tag", "--sort", "-taggerdate", "--points-at", "HEAD")
- }.standardOutput.asText.get().split('\n').first()
- buildConfigField("String", "GIT_COMMIT_HASH", "\"${grgit.head().abbreviatedId}\"")
+ val gitVersionTag = "@version@"
+ buildConfigField("String", "GIT_COMMIT_HASH", "\"NOT AVAILABLE\"")
buildConfigField("String", "GIT_VERSION_TAG", "\"${gitVersionTag.trim()}\"")
- buildConfigField("boolean", "GIT_CLEAN", grgit.status().isClean.toString())
+ buildConfigField("boolean", "GIT_CLEAN", "true")
}
tasks.run<JavaExec> {

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