Merge staging-next into staging

This commit is contained in:
github-actions[bot] 2023-11-26 18:01:24 +00:00 committed by GitHub
commit e5bb78518f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
113 changed files with 1669 additions and 7507 deletions

View File

@ -38,6 +38,13 @@ in mkLicense lset) ({
redistributable = false;
};
activision = {
# https://doomwiki.org/wiki/Raven_source_code_licensing
fullName = "Activision EULA";
url = "https://www.doomworld.com/eternity/activision_eula.txt";
free = false;
};
afl20 = {
spdxId = "AFL-2.0";
fullName = "Academic Free License v2.0";

View File

@ -1771,6 +1771,12 @@
github = "auchter";
githubId = 1190483;
};
augustebaum = {
email = "auguste.apple@gmail.com";
github = "augustebaum";
githubId = 52001167;
name = "Auguste Baum";
};
auntie = {
email = "auntieNeo@gmail.com";
github = "auntieNeo";
@ -7909,6 +7915,12 @@
githubId = 41924494;
name = "Ivar";
};
ivarmedi = {
email = "ivar@larsson.me";
github = "ivarmedi";
githubId = 1318743;
name = "Ivar";
};
iwanb = {
email = "tracnar@gmail.com";
github = "iwanb";
@ -9547,6 +9559,12 @@
githubId = 691290;
name = "Keshav Kini";
};
kinzoku = {
email = "kinzokudev4869@gmail.com";
github = "kinzoku-dev";
githubId = 140647311;
name = "Ayman Hamza";
};
kip93 = {
name = "Leandro Reina Kiperman";
email = "leandro@kip93.net";
@ -11375,6 +11393,12 @@
githubId = 1187050;
name = "Maximilian Huber";
};
maxhearnden = {
email = "max@hearnden.org.uk";
github = "MaxHearnden";
githubId = 8320393;
name = "Max Hearnden";
};
maxhero = {
email = "contact@maxhero.dev";
github = "themaxhero";
@ -12664,6 +12688,12 @@
githubId = 330943;
name = "Nathan Bijnens";
};
nathanielbrough = {
github = "silvergasp";
githubId = 7277663;
email = "nathaniel.brough@gmail.com";
name = "Nathaniel Brough";
};
nathanruiz = {
email = "nathanruiz@protonmail.com";
github = "nathanruiz";
@ -13469,6 +13499,12 @@
githubId = 72201;
name = "Ole Jørgen Brønner";
};
oliver-koss = {
email = "oliver.koss06@gmail.com";
github = "oliver-koss";
githubId = 39134647;
name = "Oliver Koss";
};
ollieB = {
github = "oliverbunting";
githubId = 1237862;

View File

@ -1218,6 +1218,7 @@
./services/torrent/peerflix.nix
./services/torrent/rtorrent.nix
./services/torrent/transmission.nix
./services/torrent/torrentstream.nix
./services/tracing/tempo.nix
./services/ttys/getty.nix
./services/ttys/gpm.nix

View File

@ -0,0 +1,53 @@
{ config, lib, pkgs, ... }:
let
cfg = config.services.torrentstream;
dataDir = "/var/lib/torrentstream/";
in
{
options.services.torrentstream = {
enable = lib.mkEnableOption (lib.mdDoc "TorrentStream daemon");
package = lib.mkPackageOptionMD pkgs "torrentstream" { };
port = lib.mkOption {
type = lib.types.port;
default = 5082;
description = lib.mdDoc ''
TorrentStream port.
'';
};
openFirewall = lib.mkOption {
type = lib.types.bool;
default = false;
description = lib.mdDoc ''
Open ports in the firewall for TorrentStream daemon.
'';
};
address = lib.mkOption {
type = lib.types.str;
default = "0.0.0.0";
description = lib.mdDoc ''
Address to listen on.
'';
};
};
config = lib.mkIf cfg.enable {
systemd.services.torrentstream = {
after = [ "network.target" ];
description = "TorrentStream Daemon";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = lib.getExe cfg.package;
Restart = "on-failure";
UMask = "077";
StateDirectory = "torrentstream";
DynamicUser = true;
};
environment = {
WEB_PORT = toString cfg.port;
DOWNLOAD_PATH = "%S/torrentstream";
LISTEN_ADDR = cfg.address;
};
};
networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ cfg.port ];
};
}

View File

@ -230,11 +230,8 @@ in
"${if hasSSL config.services.nginx.virtualHosts.${cfg.nginx.hostName} then "https" else "http"}://${cfg.nginx.hostName}"
else
"http://localhost";
defaultText = literalExpression ''
if cfg.webserver == "apache" then
"''${if cfg.httpd.virtualHost.addSSL || cfg.httpd.virtualHost.forceSSL || cfg.httpd.virtualHost.onlySSL then "https" else "http"}://''${cfg.httpd.virtualHost.hostName}"
else
"http://localhost";
defaultText = ''
if "mediawiki uses ssl" then "{"https" else "http"}://''${cfg.hostName}" else "http://localhost";
'';
example = "https://wiki.example.org";
description = lib.mdDoc "URL of the wiki.";
@ -310,7 +307,7 @@ in
database = {
type = mkOption {
type = types.enum [ "mysql" "postgres" "sqlite" "mssql" "oracle" ];
type = types.enum [ "mysql" "postgres" "mssql" "oracle" ];
default = "mysql";
description = lib.mdDoc "Database engine to use. MySQL/MariaDB is the database of choice by MediaWiki developers.";
};
@ -611,15 +608,15 @@ in
${pkgs.php}/bin/php ${pkg}/share/mediawiki/maintenance/install.php \
--confpath /tmp \
--scriptpath / \
--dbserver "${dbAddr}" \
--dbserver ${lib.escapeShellArg dbAddr} \
--dbport ${toString cfg.database.port} \
--dbname ${cfg.database.name} \
${optionalString (cfg.database.tablePrefix != null) "--dbprefix ${cfg.database.tablePrefix}"} \
--dbuser ${cfg.database.user} \
${optionalString (cfg.database.passwordFile != null) "--dbpassfile ${cfg.database.passwordFile}"} \
--passfile ${cfg.passwordFile} \
--dbname ${lib.escapeShellArg cfg.database.name} \
${optionalString (cfg.database.tablePrefix != null) "--dbprefix ${lib.escapeShellArg cfg.database.tablePrefix}"} \
--dbuser ${lib.escapeShellArg cfg.database.user} \
${optionalString (cfg.database.passwordFile != null) "--dbpassfile ${lib.escapeShellArg cfg.database.passwordFile}"} \
--passfile ${lib.escapeShellArg cfg.passwordFile} \
--dbtype ${cfg.database.type} \
${cfg.name} \
${lib.escapeShellArg cfg.name} \
admin
${pkgs.php}/bin/php ${pkg}/share/mediawiki/maintenance/update.php --conf ${mediawikiConfig} --quick

View File

@ -1,10 +1,8 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.virtualisation.waydroid;
kCfg = config.lib.kernelConfig;
kernelPackages = config.boot.kernelPackages;
waydroidGbinderConf = pkgs.writeText "waydroid.conf" ''
[Protocol]
@ -22,19 +20,19 @@ in
{
options.virtualisation.waydroid = {
enable = mkEnableOption (lib.mdDoc "Waydroid");
enable = lib.mkEnableOption (lib.mdDoc "Waydroid");
};
config = mkIf cfg.enable {
assertions = singleton {
assertion = versionAtLeast (getVersion config.boot.kernelPackages.kernel) "4.18";
config = lib.mkIf cfg.enable {
assertions = lib.singleton {
assertion = lib.versionAtLeast (lib.getVersion config.boot.kernelPackages.kernel) "4.18";
message = "Waydroid needs user namespace support to work properly";
};
system.requiredKernelConfig = with config.lib.kernelConfig; [
(isEnabled "ANDROID_BINDER_IPC")
(isEnabled "ANDROID_BINDERFS")
(isEnabled "ASHMEM") # FIXME Needs memfd support instead on Linux 5.18 and waydroid 1.2.1
system.requiredKernelConfig = [
(kCfg.isEnabled "ANDROID_BINDER_IPC")
(kCfg.isEnabled "ANDROID_BINDERFS")
(kCfg.isEnabled "ASHMEM") # FIXME Needs memfd support instead on Linux 5.18 and waydroid 1.2.1
];
/* NOTE: we always enable this flag even if CONFIG_PSI_DEFAULT_DISABLED is not on

View File

@ -15,14 +15,14 @@
stdenv.mkDerivation rec {
pname = "mmlgui";
version = "unstable-2023-09-20";
version = "unstable-2023-11-16";
src = fetchFromGitHub {
owner = "superctr";
repo = "mmlgui";
rev = "a941dbcb34d2e1d56ac4489fbec5f893e9b8fb6d";
rev = "627bfc7b67d4d87253517ba71df2d699a8acdd10";
fetchSubmodules = true;
hash = "sha256-d5DznY0WRJpiUEtUQ8Yihc0Ej8+k5cYTqrzUSp/1wg4=";
hash = "sha256-d/QLRlSfCrrcvzIhwEBKB5chK+XqO/R8xJ5VfagDi4U=";
};
postPatch = ''

View File

@ -2,13 +2,13 @@
buildNpmPackage rec {
pname = "open-stage-control";
version = "1.25.5";
version = "1.25.6";
src = fetchFromGitHub {
owner = "jean-emmanuel";
repo = "open-stage-control";
rev = "v${version}";
hash = "sha256-N0bL/kgw5tIVcD4fGYrahdola/w9ouct0+AUqw+dUOg=";
hash = "sha256-ZjNnchI8W0Xeuz1DHf3Q0cIL97BFXb3zY/HWQnrqqnk=";
};
# Remove some Electron stuff from package.json
@ -16,7 +16,7 @@ buildNpmPackage rec {
sed -i -e '/"electron"\|"electron-installer-debian"/d' package.json
'';
npmDepsHash = "sha256-unjoBWVwmUqxAU3mDC37sXzoh7aEOdny4Asa70+sZnk=";
npmDepsHash = "sha256-UqjYNXdNoQmirIgU9DRgkp14SIrawfrfi9mD2h6ACyU=";
nativeBuildInputs = [
copyDesktopItems

View File

@ -0,0 +1,20 @@
diff --git a/app/compat.h b/app/compat.h
index b63d561..c051f35 100644
--- a/app/compat.h
+++ b/app/compat.h
@@ -11,13 +11,13 @@
#if __has_include(<KCompletion/kcompletion_version.h>)
# include <KCompletion/kcompletion_version.h>
-#else // Pre KF-5.91 header layout
+#elif __has_include(<kcompletion_version.h>) // Pre KF-5.91 header layout
# include <kcompletion_version.h>
#endif
#if __has_include(<KArchive/karchive_version.h>)
# include <KArchive/karchive_version.h>
-#else // Pre KF-5.91 header layout
+#elif __has_include(<karchive_version.h>) // Pre KF-5.91 header layout
# include <karchive_version.h>
#endif

View File

@ -15,13 +15,18 @@
mkDerivation rec {
pname = "krusader";
version = "2.7.2";
version = "2.8.0";
src = fetchurl {
url = "mirror://kde/stable/${pname}/${version}/${pname}-${version}.tar.xz";
hash = "sha256-QaOaQ7PELdHR7K6obfMMr/agYf7MHWb2CFmyo8qXYQk=";
hash = "sha256-jkzwWpMYsLwbCUGBG5iLLyuwwEoNHjeZghKpGQzywpo=";
};
patches = [
# Fix compilation error due to forceful header include
./compat-fix.patch
];
nativeBuildInputs = [
extra-cmake-modules
kdoctools

View File

@ -67,11 +67,11 @@ let
in
stdenv.mkDerivation rec {
pname = "inkscape";
version = "1.3";
version = "1.3.1";
src = fetchurl {
url = "https://inkscape.org/release/inkscape-${version}/source/archive/xz/dl/inkscape-${version}.tar.xz";
sha256 = "sha256-v08oawJeAWm4lIzBTVGZqbTCBNdhyJTEtISWVx7HYwc=";
sha256 = "sha256-Qh4ANf5bOwVKCGXcgjW+P55uLepUGQ2Sa4gKTOBbANg=";
};
# Inkscape hits the ARGMAX when linking on macOS. It appears to be

View File

@ -30,8 +30,8 @@ let
inherit patches;
};
beta = {
version = "2.5.59.2";
sha256 = "sha256-IgE+NWy2DUrPR2ROfK1F67e8B3eoM9yRVQ0GZTxJ42I=";
version = "2.5.59.3";
sha256 = "sha256-chHKEEMN0Dllebk7zQDg7mf2BU441RlSyXvXgiCmgA4=";
inherit patches;
};
};

View File

@ -35,6 +35,7 @@
, waylandSupport ? stdenv.isLinux
, libxkbcommon
, libdrm
, libGL
, mediaSupport ? true
, ffmpeg
@ -82,7 +83,7 @@ let
stdenv.cc.libc
zlib
] ++ lib.optionals libnotifySupport [ libnotify ]
++ lib.optionals waylandSupport [ libxkbcommon libdrm ]
++ lib.optionals waylandSupport [ libxkbcommon libdrm libGL ]
++ lib.optionals pipewireSupport [ pipewire ]
++ lib.optionals pulseaudioSupport [ libpulseaudio ]
++ lib.optionals libvaSupport [ libva ]

View File

@ -31,6 +31,7 @@
, waylandSupport ? stdenv.isLinux
, libxkbcommon
, libdrm
, libGL
, audioSupport ? mediaSupport
@ -98,7 +99,7 @@ lib.warnIf (useHardenedMalloc != null)
stdenv.cc.libc
zlib
] ++ lib.optionals libnotifySupport [ libnotify ]
++ lib.optionals waylandSupport [ libxkbcommon libdrm ]
++ lib.optionals waylandSupport [ libxkbcommon libdrm libGL ]
++ lib.optionals pipewireSupport [ pipewire ]
++ lib.optionals pulseaudioSupport [ libpulseaudio ]
++ lib.optionals libvaSupport [ libva ]

View File

@ -2,7 +2,7 @@
(callPackage ./generic.nix { }) {
channel = "stable";
version = "2.14.2";
sha256 = "0j7w1x88fxbwlmdj111l3v02m8a2p75zsjj847d09a901jav3ih5";
version = "2.14.5";
sha256 = "1xdqqv62sr0hmjd64lvfvnrxhgdjsvb9xxxp2vvx0iz6rpp00n1x";
vendorHash = "sha256-yEwz9CopCbK8mOUxzjDG3nsbWzhJlA3JTO4nYN8G68E=";
}

View File

@ -2,7 +2,7 @@
(callPackage ./generic.nix { }) {
channel = "edge";
version = "23.10.4";
sha256 = "1fbzxkfc957kdhk60x3ywwpn54zq8njqk313cgfygnrmmj3m67j9";
vendorHash = "sha256-WEnopX/tIRoA5wiiCMue1T3wottxv744Mp7XJl63j4k=";
version = "23.11.4";
sha256 = "0j6yzjd2rnm6vzn2fky83pw3v943n3chhnr7a302rnafprlbmmp4";
vendorHash = "sha256-1s2vj9GSNe4j9TtIo69uakrg8PnBHNchlApryBeHmKs=";
}

View File

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "dnscontrol";
version = "4.6.0";
version = "4.6.1";
src = fetchFromGitHub {
owner = "StackExchange";
repo = pname;
repo = "dnscontrol";
rev = "v${version}";
sha256 = "sha256-CyQKQNuCJLtm73ngrGtUmVUfiseXEp2fcKVGvQ1ET5A=";
sha256 = "sha256-FJxr3uq2f8jDG3g06SRO8sTIc6qHqSAOJVYHr4Ug1ag=";
};
vendorHash = "sha256-Q8Xw2vuxiYpkY0/gQlUVWO7WQszv2x1cvbV03Wi1GNg=";
vendorHash = "sha256-O7uuUkS9kX0TdevSg1mrrPMVl4kMZW3rwoIVb/eaNiM=";
subPackages = [ "." ];
@ -27,7 +27,7 @@ buildGoModule rec {
homepage = "https://dnscontrol.org/";
changelog = "https://github.com/StackExchange/dnscontrol/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ mmahut SuperSandro2000 ];
maintainers = with maintainers; [ SuperSandro2000 ];
mainProgram = "dnscontrol";
};
}

View File

@ -3,7 +3,7 @@
, fetchFromGitHub
, fetchYarnDeps
, yarn
, fixup_yarn_lock
, prefetch-yarn-deps
, nodejs
}:
@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-N9lUAhfYLlEAIaWSNS3Ecq+aBTz+f7Z22Sclwj9rp6w=";
};
nativeBuildInputs = [ yarn fixup_yarn_lock nodejs ];
nativeBuildInputs = [ yarn prefetch-yarn-deps nodejs ];
configurePhase = ''
runHook preConfigure
@ -31,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: {
export HOME=$PWD/tmp
mkdir -p $HOME
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn config --offline set yarn-offline-mirror $offlineCache
yarn install --offline --frozen-lockfile --ignore-platform --ignore-scripts --no-progress --non-interactive
patchShebangs node_modules

View File

@ -13,16 +13,16 @@
buildNpmPackage rec {
pname = "webcord";
version = "4.5.1";
version = "4.5.2";
src = fetchFromGitHub {
owner = "SpacingBat3";
repo = "WebCord";
rev = "v${version}";
hash = "sha256-isrExJeONhIxJUXOsMMq8l9xF9amInBGnb5D+DKuzHw=";
hash = "sha256-0bSUfIqEkkjnwp+6zTg/KUpcQvOwUo5q7KnF8MLyIoo=";
};
npmDepsHash = "sha256-RTYPxS6uLLCIu4JfQqMQP8y8+S5uwe3KXWNlbe7/A7Q=";
npmDepsHash = "sha256-uO83IsNo/Efd+j5nVvwaao0u9hZUv0jDE8/x61QmYA4=";
nativeBuildInputs = [
copyDesktopItems

View File

@ -4,6 +4,7 @@
, gnome2, mesa, nss, nspr, gtk_engines, freetype, dconf, libpng12, libxml2
, libjpeg, libredirect, tzdata, cacert, systemd, libcxxabi, libcxx, e2fsprogs, symlinkJoin
, libpulseaudio, pcsclite, glib-networking, llvmPackages_12, opencv4
, libfaketime
, homepage, version, prefix, hash
@ -59,6 +60,7 @@ stdenv.mkDerivation rec {
more
which
wrapGAppsHook
libfaketime
];
buildInputs = [
@ -153,7 +155,8 @@ stdenv.mkDerivation rec {
# Run upstream installer in the store-path.
sed -i -e 's,^ANSWER="",ANSWER="$INSTALLER_YES",g' -e 's,/bin/true,true,g' ./${prefix}/hinst
${stdenv.shell} ${prefix}/hinst CDROM "$(pwd)"
source_date=$(date --utc --date=@$SOURCE_DATE_EPOCH "+%F %T")
faketime -f "$source_date" ${stdenv.shell} ${prefix}/hinst CDROM "$(pwd)"
if [ -f "$ICAInstDir/util/setlog" ]; then
chmod +x "$ICAInstDir/util/setlog"

View File

@ -6,27 +6,27 @@
}:
let
name = "mendeley";
version = "2.80.1";
pname = "mendeley";
version = "2.105.0";
executableName = "${name}-reference-manager";
executableName = "${pname}-reference-manager";
src = fetchurl {
url = "https://static.mendeley.com/bin/desktop/mendeley-reference-manager-2.80.1-x86_64.AppImage";
sha256 = "sha256-uqmu7Yf4tXDlNGkeEZut4m339S6ZNKhAmej+epKLB/8=";
url = "https://static.mendeley.com/bin/desktop/mendeley-reference-manager-${version}-x86_64.AppImage";
hash = "sha256-vs430WLApRu+Xw2gYgriOD0jsQqTW+qhI1g4r67W9aM=";
};
appimageContents = appimageTools.extractType2 {
inherit name src;
inherit pname version src;
};
in appimageTools.wrapType2 rec {
inherit name src;
in appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
mv $out/bin/${name} $out/bin/${executableName}
mv $out/bin/$name $out/bin/${executableName}
install -m 444 -D ${appimageContents}/${executableName}.desktop $out/share/applications/${executableName}.desktop
${imagemagick}/bin/convert ${appimageContents}/${executableName}.png -resize 512x512 ${name}_512.png
install -m 444 -D ${name}_512.png $out/share/icons/hicolor/512x512/apps/${executableName}.png
${imagemagick}/bin/convert ${appimageContents}/${executableName}.png -resize 512x512 ${pname}_512.png
install -m 444 -D ${pname}_512.png $out/share/icons/hicolor/512x512/apps/${executableName}.png
substituteInPlace $out/share/applications/${executableName}.desktop \
--replace 'Exec=AppRun' 'Exec=${executableName}'

View File

@ -7,13 +7,13 @@
let
pname = "trilium-desktop";
version = "0.61.14";
version = "0.62.2";
linuxSource.url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz";
linuxSource.sha256 = "1yxkgbnajlzhc62g4siq1hs7vd5hkvmdg4zsk1wqijhp0f4iix3s";
linuxSource.sha256 = "17vg22kzg6346c8fb2kzm5zdspb9p24isd2irxhw7gh2z6vnwh1d";
darwinSource.url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-mac-x64-${version}.zip";
darwinSource.sha256 = "1pvyy1k50n90ww3spm7bkmx0lzdi22na66mcpcwyls15r9kqb1ib";
darwinSource.sha256 = "03y5wkpdf4hc7724sjipgahlp6nh72z0wgm0qsqji5x5sxpambb8";
meta = metaCommon // {
mainProgram = "trilium";

View File

@ -3,8 +3,8 @@
let
serverSource.url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz";
serverSource.sha256 = "0l49jnsgbzppc2sfh4fykidl0skzlc2kbgsyz0dcnh9g2i562fq9";
version = "0.61.14";
serverSource.sha256 = "0vip61c24n9d6bnpcgg9dwxc604xigmi1ayvm1mmlgah1fk56swg";
version = "0.62.2";
in stdenv.mkDerivation {
pname = "trilium-server";
inherit version;

View File

@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
description = "Amateur radio logbook software";
license = with licenses; [ gpl3Only ];
homepage = "https://github.com/foldynl/QLog";
maintainers = with maintainers; [ mkg20001 ];
maintainers = with maintainers; [ oliver-koss mkg20001 ];
platforms = with platforms; unix;
};
}

View File

@ -8,11 +8,11 @@
python3.pkgs.buildPythonApplication rec {
pname = "quisk";
version = "4.2.22";
version = "4.2.24";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-F6xSE1EgWlHlrd4W79tmhTg/FS7QUPH3NWzWIljAAg4=";
sha256 = "sha256-myxWcx1/a9sMv+sfa0Gwjx72t0rGoxn5USEfFgfKEro=";
};
buildInputs = [

View File

@ -17,14 +17,18 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "sets the X root window to an image of the Earth";
homepage = "http://xplanet.org";
homepage = "https://xearth.org";
longDescription =
'' Xearth sets the X root window to an image of the Earth, as seen from your favorite vantage point in space,
correctly shaded for the current position of the Sun.
By default, xearth updates the displayed image every five minutes.
'';
maintainers = [ maintainers.mafo ];
license = "xearth";
license = {
fullName = "xearth license";
url = "https://xearth.org/copyright.html";
free = true;
};
platforms=platforms.unix;
};

View File

@ -22,6 +22,12 @@ stdenv.mkDerivation rec {
autoSignDarwinBinariesHook
];
env = {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int";
} // lib.optionalAttrs (stdenv.isDarwin && stdenv.isx86_64) {
NIX_LDFLAGS = "-headerpad_max_install_names";
};
dontConfigure = true;
buildPhase =

View File

@ -0,0 +1,27 @@
{fetchFromGitHub, lib, stdenv}:
stdenv.mkDerivation {
pname = "git-cache";
version = "2018-06-18";
src = fetchFromGitHub {
owner = "Seb35";
repo = "git-cache";
rev = "354f661e40b358c5916c06957bd6b2c65426f452";
hash = "sha256-V7rQOy+s9Lzdc+RTA2QGPfyavw4De/qQ+tWrzYtO2qA=";
};
dontBuild = true;
installPhase = ''
install -Dm555 git-cache $out/bin/git-cache
'';
meta = with lib; {
homepage = "https://github.com/Seb35/git-cache";
license = licenses.wtfpl;
description = "A program to add and manage a system-wide or user-wide cache for remote git repositories";
platforms = platforms.unix;
maintainers = with maintainers; [ maxhearnden ];
};
}

View File

@ -6,12 +6,12 @@
python3Packages.buildPythonApplication rec {
pname = "streamlink";
version = "6.3.1";
version = "6.4.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-k8Dfrl0Xie5zF/GhVdP/RKGajDyGblAwu49UekX1WEQ=";
hash = "sha256-jj2ssAkzS60gbcm1Ddw3aNakifx4JKxCu0vHDQqSbqw=";
};
nativeCheckInputs = with python3Packages; [

View File

@ -7,16 +7,16 @@
buildGoModule rec {
pname = "kraftkit";
version = "0.6.6";
version = "0.7.0";
src = fetchFromGitHub {
owner = "unikraft";
repo = "kraftkit";
rev = "v${version}";
hash = "sha256-3dI3F1cCeLEOd+zusWUDZWLrVaaKHXzwOL/mF/yPZC8=";
hash = "sha256-4T108ZMM10evGricLj8S+XYw3NXfUI68KlcraWA+nd0=";
};
vendorHash = "sha256-4zciooCUNVLTQ/0tctqV3hExR5vRY5VumHzGtL8xdws=";
vendorHash = "sha256-qu0GQdjaYXj932KKBphP4CQWsAOssI4+42tPAD3iqik=";
ldflags = [
"-s"

View File

@ -0,0 +1,67 @@
{ pkgs
, lib
, glibcLocales
, python
, fetchFromGitHub
# Usage: bumblebee-status.override { plugins = p: [p.arandr p.bluetooth2]; };
, plugins ? p: [ ]
}:
let
version = "2.2.0";
# { <name> = { name = "..."; propagatedBuildInputs = [ ... ]; buildInputs = [ ... ]; } }
allPlugins =
lib.mapAttrs
(name: value: value // { inherit name; })
(import ./plugins.nix { inherit pkgs python; });
# [ { name = "..."; propagatedBuildInputs = [ ... ]; buildInputs = [ ... ]; } ]
selectedPlugins = plugins allPlugins;
in
python.pkgs.buildPythonPackage {
pname = "bumblebee-status";
inherit version;
src = fetchFromGitHub {
owner = "tobi-wan-kenobi";
repo = "bumblebee-status";
rev = "v${version}";
hash = "sha256-+RCg2XZv0AJnexi7vnQhEXB1qSoKBN1yKWm3etdys1s=";
};
buildInputs = lib.concatMap (p: p.buildInputs or [ ]) selectedPlugins;
propagatedBuildInputs = lib.concatMap (p: p.propagatedBuildInputs or [ ]) selectedPlugins;
checkInputs = with python.pkgs; [ freezegun netifaces psutil pytest pytest-mock requests ];
checkPhase = ''
runHook preCheck
# Fixes `locale.Error: unsupported locale setting` in some tests.
export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive";
# FIXME: We skip the `dunst` module tests, some of which fail with
# `RuntimeError: killall -s SIGUSR2 dunst not found`.
# This is not solved by adding `pkgs.killall` to `checkInputs`.
${python.interpreter} -m pytest -k 'not test_dunst.py'
runHook postCheck
'';
postInstall = ''
# Remove binary cache files
find $out -name "__pycache__" -type d | xargs rm -rv
# Make themes available for bumblebee-status to detect them
cp -r ./themes $out/${python.sitePackages}
'';
meta = with lib; {
description = "A modular, theme-able status line generator for the i3 window manager";
homepage = "https://github.com/tobi-wan-kenobi/bumblebee-status";
mainProgram = "bumblebee-status";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ augustebaum ];
};
}

View File

@ -0,0 +1,162 @@
{ pkgs
, python
, ...
}:
# propagatedBuildInputs are for Python libraries and executables
# buildInputs are for libraries
let
py = python.pkgs;
in
{
amixer.propagatedBuildInputs = [ pkgs.alsa-utils ];
# aptitude is unpackaged
# apt.propagatedBuildInputs = [aptitude];
arandr.propagatedBuildInputs = [ py.tkinter pkgs.arandr pkgs.xorg.xrandr ];
# checkupdates is unpackaged
# arch-update.propagatedBuildInputs = [checkupdates];
# checkupdates is unpackaged
# arch_update.propagatedBuildInputs = [checkupdates];
# yay is unpackaged
# aur-update.propagatedBuildInputs = [yay];
battery = { };
battery-upower = { };
battery_upower = { };
bluetooth.propagatedBuildInputs = [ pkgs.bluez pkgs.blueman pkgs.dbus ];
bluetooth2.propagatedBuildInputs = [ pkgs.bluez pkgs.blueman pkgs.dbus py.dbus-python ];
blugon.propagatedBuildInputs = [ pkgs.blugon ];
# If you do not allow this plugin to query the system's ACPI, i.e. the plugin option `use_acpi` is set to `False`, then you need at least one of [ brightnessctl light xbacklight ]
brightness.propagatedBuildInputs = [ ];
caffeine.propagatedBuildInputs = [ pkgs.xdg-utils pkgs.xdotool pkgs.xorg.xprop pkgs.libnotify ];
cmus.propagatedBuildInputs = [ pkgs.cmus ];
cpu.propagatedBuildInputs = [ py.psutil pkgs.gnome.gnome-system-monitor ];
cpu2.propagatedBuildInputs = [ py.psutil pkgs.lm_sensors ];
cpu3.propagatedBuildInputs = [ py.psutil pkgs.lm_sensors ];
currency.propagatedBuildInputs = [ py.requests ];
date = { };
datetime = { };
datetimetz.propagatedBuildInputs = [ py.tzlocal py.pytz ];
datetz = { };
deadbeef.propagatedBuildInputs = [ pkgs.deadbeef ];
debug = { };
deezer.propagatedBuildInputs = [ py.dbus-python ];
disk = { };
# dnf is unpackaged
# dnf.propagatedBuildInputs = [dnf];
docker_ps.propagatedBuildInputs = [ py.docker ];
dunst.propagatedBuildInputs = [ pkgs.dunst ];
dunstctl.propagatedBuildInputs = [ pkgs.dunst ];
# emerge is unpackaged
# emerge_status.propagatedBuildInputs = [emerge];
error = { };
gcalendar.propagatedBuildInputs = [
py.google-api-python-client
py.google-auth-httplib2
py.google-auth-oauthlib
];
getcrypto.propagatedBuildInputs = [ py.requests ];
git.propagatedBuildInputs = [ pkgs.xcwd pkgs.pygit2 ];
github.propagatedBuildInputs = [ py.requests ];
gitlab.propagatedBuildInputs = [ py.requests ];
# gpmdp-remote is unpackaged
# gpmdp.propagatedBuildInputs = [gpmdp-remote];
hddtemp = { };
hostname = { };
http_status = { };
indicator.propagatedBuildInputs = [ pkgs.xorg.xset ];
kernel = { };
keys = { };
# python3Packages.xkbgroup is unpackaged
layout = {
buildInputs = [ pkgs.xorg.libX11 ];
# propagatedBuildInputs = [py.xkbgroup];
};
# python3Packages.xkbgroup is unpackaged
layout-xkb = {
buildInputs = [ pkgs.xorg.libX11 ];
# propagatedBuildInputs = [py.xkbgroup];
};
layout-xkbswitch.propagatedBuildInputs = [ pkgs.xkb-switch ];
# python3Packages.xkbgroup is unpackaged
# NOTE: Yes, there is also a plugin named `layout-xkb` with a dash.
layout_xkb = {
buildInputs = [ pkgs.xorg.libX11 ];
# propagatedBuildInputs = [python3Packages.xkbgroup];
};
# NOTE: Yes, there is also a plugin named `layout-xkbswitch` with a dash.
layout_xkbswitch.propagatedBuildInputs = [ pkgs.xkb-switch ];
libvirtvms.propagatedBuildInputs = [ py.libvirt ];
load.propagatedBuildInputs = [ pkgs.gnome.gnome-system-monitor ];
memory.propagatedBuildInputs = [ pkgs.gnome.gnome-system-monitor ];
messagereceiver = { };
mocp.propagatedBuildInputs = [ pkgs.moc ];
mpd.propagatedBuildInputs = [ pkgs.mpc-cli ];
network.propagatedBuildInputs = [ py.netifaces pkgs.iw ];
network_traffic.propagatedBuildInputs = [ py.netifaces ];
nic.propagatedBuildInputs = [ py.netifaces pkgs.iw ];
notmuch_count.propagatedBuildInputs = [ pkgs.notmuch ];
# nvidian-smi is unpackaged
# nvidiagpu.propagatedBuildInputs = [nvidia-smi];
octoprint.propagatedBuildInputs = [ py.tkinter ];
# optimus-manager is unpackaged
# optman.propagatedBuildInputs = [optimus-manager];
pacman.propagatedBuildInputs = [ pkgs.fakeroot pkgs.pacman ];
pamixer.propagatedBuildInputs = [ pkgs.pamixer ];
persian_date.propagatedBuildInputs = [ py.jdatetime ];
pihole = { };
ping.propagatedBuildInputs = [ pkgs.iputils ];
pipewire.buildInputs = [ pkgs.wireplumber ];
playerctl.propagatedBuildInputs = [ pkgs.playerctl ];
pomodoro = { };
# emerge is unpackaged
# portage_status.propagatedBuildInputs = [emerge];
# prime-select is unpackaged
# prime.propagatedBuildInputs = [prime-select];
progress.propagatedBuildInputs = [ pkgs.progress ];
publicip.propagatedBuildInputs = [ py.netifaces ];
# Deprecated in favor of pulsectl
# pulseaudio = {};
pulsectl.propagatedBuildInputs = [ pkgs.pulsectl ];
redshift.propagatedBuildInputs = [ pkgs.redshift ];
# rofication is unpackaged
# rofication.propagatedBuildInputs = [rofication];
rotation.propagatedBuildInputs = [ pkgs.xorg.xrandr ];
rss = { };
sensors.propagatedBuildInputs = [ pkgs.lm_sensors ];
sensors2.propagatedBuildInputs = [ pkgs.lm_sensors ];
shell = { };
shortcut = { };
smartstatus.propagatedBuildInputs = [ pkgs.smartmontools ];
solaar.propagatedBuildInputs = [ pkgs.solaar ];
spaceapi.propagatedBuildInputs = [ py.requests ];
spacer = { };
speedtest.propagatedBuildInputs = [ py.speedtest-cli ];
spotify.propagatedBuildInputs = [ py.dbus-python ];
stock = { };
# suntime is not packaged yet
# sun.propagatedBuildInputs = [ py.requests python-dateutil suntime ];
system.propagatedBuildInputs = [ py.tkinter ];
taskwarrior.propagatedBuildInputs = [ py.taskw ];
test = { };
thunderbird = { };
time = { };
timetz = { };
title.propagatedBuildInputs = [ py.i3ipc ];
todo = { };
todo_org = { };
todoist.propagatedBuildInputs = [ py.requests ];
traffic = { };
# Needs `systemctl`
twmn.propagatedBuildInputs = [ ];
uptime = { };
usage.propagatedBuildInputs = [ py.sqlite pkgs.activitywatch ];
vault.propagatedBuildInputs = [ pkgs.pass ];
vpn.propagatedBuildInputs = [ py.tkinter pkgs.networkmanager ];
wakatime.propagatedBuildInputs = [ py.requests ];
watson.propagatedBuildInputs = [ pkgs.watson ];
weather.propagatedBuildInputs = [ py.requests ];
xkcd = { };
# i3 is optional
xrandr.propagatedBuildInputs = [ pkgs.xorg.xrandr ];
yubikey.propagatedBuildInputs = [ pkgs.yubico ];
zpool = { };
}

View File

@ -11,6 +11,7 @@
, lm_sensors
, iw
, iproute2
, withICUCalendar ? false
}:
rustPlatform.buildRustPackage rec {
@ -34,7 +35,7 @@ rustPlatform.buildRustPackage rec {
"notmuch"
"maildir"
"pulseaudio"
];
] ++ (lib.optionals withICUCalendar [ "icu_calendar" ]);
prePatch = ''
substituteInPlace src/util.rs \

View File

@ -32,5 +32,6 @@ stdenv.mkDerivation {
Since the secret is read from a file, it won't be leaked through
'/proc/<pid>/cmdline', unlike when 'sed' or 'replace' is used.
'';
mainProgram = "replace-secret";
};
}

View File

@ -0,0 +1,31 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d9ad07..2f3b4b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,26 +2,6 @@ cmake_minimum_required(VERSION 2.4)
project(acc)
-if(MSVC)
- # Create list of _FLAGS variables
- foreach(FLAGS_SUFFIX "" _DEBUG _RELEASE _MINSIZEREL _RELWITHDEBINFO)
- set(FLAGS_VARIABLES ${FLAGS_VARIABLES} CMAKE_C_FLAGS${FLAGS_SUFFIX} CMAKE_CXX_FLAGS${FLAGS_SUFFIX})
- endforeach()
-
- # Change compiler flags to use static runtime
- foreach(FLAGS_VARIABLE ${FLAGS_VARIABLES})
- if(${FLAGS_VARIABLE} MATCHES "/MD")
- string(REGEX REPLACE "/MD" "/MT" ${FLAGS_VARIABLE} "${${FLAGS_VARIABLE}}")
- endif()
- endforeach()
-endif()
-
-if (NOT APPLE AND NOT MSVC)
- # use static runtimes on Linux and MinGW
- set(CMAKE_C_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES} -static -static-libgcc -static-libstdc++")
- set(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -static -static-libgcc -static-libstdc++")
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static -static-libgcc -static-libstdc++")
-endif()
add_executable(acc
acc.c

View File

@ -0,0 +1,40 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation (finalAttrs: {
pname = "acc";
version = "1.60";
src = fetchFromGitHub {
owner = "zdoom";
repo = "acc";
rev = finalAttrs.version;
hash = "sha256-HGF4O4LcMDY4f/ZuBbkvx5Wd86+8Ict624eKTJ88/rQ=";
};
patches = [
# Don't force static builds
./disable-static.patch
];
nativeBuildInputs = [ cmake ];
installPhase = ''
runHook preInstall
install -D acc $out/bin/acc
runHook postInstall
'';
meta = with lib; {
description = "ACS script compiler for use with ZDoom and Hexen";
homepage = "https://zdoom.org/wiki/ACC";
license = licenses.activision;
maintainers = with maintainers; [ emilytrau ];
platforms = platforms.all;
mainProgram = "acc";
};
})

View File

@ -14,16 +14,16 @@ let
in
buildGoModule rec {
pname = "centrifugo";
version = "5.1.1";
version = "5.1.2";
src = fetchFromGitHub {
owner = "centrifugal";
repo = "centrifugo";
rev = "v${version}";
hash = "sha256-g496cXjgliDi2XLkdE+dERrUl5hBGLICJx5JundeOfo=";
hash = "sha256-p0OUzbI5ldl0XBU80nrgK1rfYc11Sij2S2ibfp9xmZ4=";
};
vendorHash = "sha256-VuxnP9Dryo0L7sGvtvAIicYGkHoQ2iGVBtAdkmiqL7E=";
vendorHash = "sha256-/uWFkLk2RTtGK4CWKZF52jgRHrh5mZLSUoVoe4cUhgk=";
ldflags = [
"-s"

View File

@ -0,0 +1,18 @@
--- a/resources/systems/unix/es_find_rules.xml 2023-11-22 15:18:15.912747163 -0500
+++ b/resources/systems/unix/es_find_rules.xml 2023-11-22 15:20:38.628250448 -0500
@@ -45,6 +45,8 @@
<entry>/usr/local/lib/libretro</entry>
<!-- NetBSD repository -->
<entry>/usr/pkg/lib/libretro</entry>
+ <!-- NixOS / Nixpkgs -->
+ <entry>/run/current-system/sw/lib/retroarch/cores</entry>
</rule>
</core>
<emulator name="3DSEN-WINDOWS">
@@ -1079,4 +1081,4 @@
<entry>~/bin/ZEsarUX/zesarux</entry>
</rule>
</emulator>
-</ruleList>
\ No newline at end of file
+</ruleList>

View File

@ -0,0 +1,59 @@
{
lib,
stdenv,
cmake,
fetchzip,
pkg-config,
alsa-lib,
curl,
ffmpeg,
freeimage,
freetype,
libgit2,
poppler,
pugixml,
SDL2
}:
stdenv.mkDerivation {
pname = "emulationstation-de";
version = "2.2.1";
src = fetchzip {
url = "https://gitlab.com/es-de/emulationstation-de/-/archive/v2.2.1/emulationstation-de-v2.2.1.tar.gz";
hash = "sha256:1kp9p3fndnx4mapgfvy742zwisyf0y5k57xkqkis0kxyibx0z8i6";
};
patches = [ ./001-add-nixpkgs-retroarch-cores.patch ];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
alsa-lib
curl
ffmpeg
freeimage
freetype
libgit2
poppler
pugixml
SDL2
];
installPhase = ''
install -D ../emulationstation $out/bin/emulationstation
cp -r ../resources/ $out/bin/resources/
'';
meta = {
description = "EmulationStation Desktop Edition is a frontend for browsing and launching games from your multi-platform game collection.";
homepage = "https://es-de.org";
maintainers = with lib.maintainers; [ ivarmedi ];
license = lib.licenses.mit;
platforms = lib.platforms.linux;
mainProgram = "emulationstation";
};
}

View File

@ -26,13 +26,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "labwc";
version = "0.6.5";
version = "0.6.6";
src = fetchFromGitHub {
owner = "labwc";
repo = "labwc";
rev = finalAttrs.version;
hash = "sha256-nQLxE2Q4GiLUjkag/yqctzmkKKWFw1XNFjotE8MMgBA=";
hash = "sha256-ahupqI4mLrgQQjzdfLeQATc2iXQ0V6Sz5f6Yv1koLL0=";
};
nativeBuildInputs = [

View File

@ -0,0 +1,28 @@
{ lib
, fetchFromGitHub
, buildNpmPackage
}:
buildNpmPackage rec {
pname = "mapscii";
version = "0.3.1";
src = fetchFromGitHub {
owner = "rastapasta";
repo = "mapscii";
rev = "v${version}";
hash = "sha256-IFVX3l2b3pu0nfMZebVix0mwHUvnE2NUNrB3+jr3G2Q=";
};
npmDepsHash = "sha256-w/gTRritttShxrj6n6RzjCVin6TjJl+o/sVoBafAM+0=";
dontNpmBuild = true;
meta = with lib; {
description = "MapSCII is a Braille & ASCII world map renderer for your console";
homepage = "https://github.com/rastapasta/mapscii";
license = licenses.mit;
maintainers = with maintainers; [ kinzoku ];
mainProgram = "mapscii";
platforms = platforms.all;
};
}

View File

@ -2,20 +2,20 @@
, fetchFromGitHub
, lib
, pkg-config
, webkitgtk
, webkitgtk_4_1
, glib
, fuse
, installShellFiles
}:
let
pname = "onedriver";
version = "0.13.0-2";
version = "0.14.1";
src = fetchFromGitHub {
owner = "jstaf";
repo = "onedriver";
rev = "v${version}";
hash = "sha256-Bcjgmx9a4pTRhkzR3tbOB6InjvuH71qomv4t+nRNc+w=";
hash = "sha256-mA5otgqXQAw2UYUOJaC1zyJuzEu2OS/pxmjJnWsVdxs=";
};
in
buildGoModule {
@ -23,7 +23,7 @@ buildGoModule {
vendorHash = "sha256-OOiiKtKb+BiFkoSBUQQfqm4dMfDW3Is+30Kwcdg8LNA=";
nativeBuildInputs = [ pkg-config installShellFiles ];
buildInputs = [ webkitgtk glib fuse ];
buildInputs = [ webkitgtk_4_1 glib fuse ];
ldflags = [ "-X github.com/jstaf/onedriver/cmd/common.commit=v${version}" ];
@ -34,14 +34,14 @@ buildGoModule {
postInstall = ''
echo "Running postInstall"
install -Dm644 ./resources/onedriver.svg $out/share/icons/onedriver/onedriver.svg
install -Dm644 ./resources/onedriver.png $out/share/icons/onedriver/onedriver.png
install -Dm644 ./resources/onedriver-128.png $out/share/icons/onedriver/onedriver-128.png
install -Dm644 ./pkg/resources/onedriver.svg $out/share/icons/onedriver/onedriver.svg
install -Dm644 ./pkg/resources/onedriver.png $out/share/icons/onedriver/onedriver.png
install -Dm644 ./pkg/resources/onedriver-128.png $out/share/icons/onedriver/onedriver-128.png
install -Dm644 ./resources/onedriver.desktop $out/share/applications/onedriver.desktop
install -Dm644 ./pkg/resources/onedriver.desktop $out/share/applications/onedriver.desktop
mkdir -p $out/share/man/man1
installManPage ./resources/onedriver.1
installManPage ./pkg/resources/onedriver.1
substituteInPlace $out/share/applications/onedriver.desktop \
--replace "/usr/bin/onedriver-launcher" "$out/bin/onedriver-launcher" \

View File

@ -0,0 +1,28 @@
{ buildNpmPackage
, fetchFromGitHub
, lib
}:
buildNpmPackage rec {
pname = "promptfoo";
version = "0.28.0";
src = fetchFromGitHub {
owner = "promptfoo";
repo = "promptfoo";
rev = "${version}";
hash = "sha256-fJZeao5/iTF1QTSdhUT4VurH0witOAVs0NT2sb2McYM=";
};
npmDepsHash = "sha256-IcMD8t+2Z2RwQ87j08zNQWlNhtRqDi2cD60ZPEAezww=";
dontNpmBuild = true;
meta = with lib; {
description = "Test your prompts, models, RAGs. Evaluate and compare LLM outputs, catch regressions, and improve prompt quality.";
homepage = "https://www.promptfoo.dev/";
changelog = "https://github.com/promptfoo/promptfoo/releases/tag/${version}";
license = licenses.mit;
maintainers = [ maintainers.nathanielbrough ];
};
}

View File

@ -0,0 +1,58 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, qt5
, qt6
, wayland
, nix-update-script
, useQt6 ? false
# Shadows support on Qt5 requires the feature backported from Qt6:
# https://src.fedoraproject.org/rpms/qt5-qtwayland/blob/rawhide/f/qtwayland-decoration-support-backports-from-qt6.patch
, qt5ShadowsSupport ? false
}:
let
qt = if useQt6 then qt6 else qt5;
qtVersion = if useQt6 then "6" else "5";
in stdenv.mkDerivation (finalAttrs: {
pname = "qadwaitadecorations";
version = "0.1.3";
src = fetchFromGitHub {
owner = "FedoraQt";
repo = "QAdwaitaDecorations";
rev = finalAttrs.version;
hash = "sha256-9uK2ojukuwzOz/genWiCch4c3pL5qEfyy8ERpFxS8/8=";
};
nativeBuildInputs = [
cmake
];
buildInputs = with qt; [
qtbase
qtsvg
qtwayland
wayland
];
dontWrapQtApps = true;
cmakeFlags = [
"-DQT_PLUGINS_DIR=${placeholder "out"}/${qt.qtbase.qtPluginPrefix}"
] ++ lib.optional useQt6 "-DUSE_QT6=true"
++ lib.optional qt5ShadowsSupport "-DHAS_QT6_SUPPORT=true";
passthru.updateScript = nix-update-script { };
meta = {
description = "Qt${qtVersion} Wayland decoration plugin using libadwaita style";
homepage = "https://github.com/FedoraQt/QAdwaitaDecorations";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ samlukeyes123 ];
platforms = lib.platforms.linux;
};
})

View File

@ -0,0 +1,37 @@
diff --git a/Program.cs b/Program.cs
index 5697d79..7cfba20 100644
--- a/Program.cs
+++ b/Program.cs
@@ -79,6 +79,8 @@ app.MapGet ( "/proxyvideolist", ProxyHandler.ProxyVideolist );
app.MapGet ( "/proxyvideopart", ProxyHandler.ProxyVideoPart );
app.MapGet ( "/playerws", ExternalPlayer.ExternalWebSocket );
+Console.WriteLine ($"BaseFolder: {GlobalConfiguration.BaseFolder}");
+
await TorrentHandler.LoadState ();
app.Run ();
diff --git a/StreamHandler.cs b/StreamHandler.cs
index 43aa61c..7d26681 100644
--- a/StreamHandler.cs
+++ b/StreamHandler.cs
@@ -110,7 +110,8 @@ namespace TorrentStream {
context.Response.StatusCode = 302;
context.Response.Headers.Location = ( RuntimeInformation.IsOSPlatform ( OSPlatform.Windows ) ? "file:///" : "file://" ) + currentFile.FullPath;
}
- } catch {
+ } catch (Exception e) {
+ Console.WriteLine($"Exception caught: {e.Message}");
context.Response.StatusCode = 500;
}
}
@@ -192,7 +193,8 @@ namespace TorrentStream {
}
context.Response.StatusCode = 200;
await context.Response.WriteAsync ( "Downloading started" );
- } catch {
+ } catch (Exception e) {
+ Console.WriteLine($"Exception caught: {e.Message}");
context.Response.StatusCode = 500;
}
}

39
pkgs/by-name/to/torrentstream/deps.nix generated Normal file
View File

@ -0,0 +1,39 @@
# This file was automatically generated by passthru.fetch-deps.
# Please dont edit it manually, your changes might get overwritten!
{ fetchNuGet }: [
(fetchNuGet { pname = "Microsoft.Extensions.Configuration"; version = "7.0.0"; sha256 = "0n1grglxql9llmrsbbnlz5chx8mxrb5cpvjngm0hfyrkgzcwz90d"; })
(fetchNuGet { pname = "Microsoft.Extensions.Configuration.Abstractions"; version = "7.0.0"; sha256 = "1as8cygz0pagg17w22nsf6mb49lr2mcl1x8i3ad1wi8lyzygy1a3"; })
(fetchNuGet { pname = "Microsoft.Extensions.Configuration.Binder"; version = "7.0.0"; sha256 = "1qifb1pv7s76lih8wnjk418wdk4qwn87q2n6dx54knfvxai410bl"; })
(fetchNuGet { pname = "Microsoft.Extensions.Configuration.CommandLine"; version = "7.0.0"; sha256 = "1pmgjrvwdzqrxjb24cg3fd624r64lgywbqc9symd5hyl4175pwk8"; })
(fetchNuGet { pname = "Microsoft.Extensions.Configuration.EnvironmentVariables"; version = "7.0.0"; sha256 = "0nhh7rnh45s39x8sjn88czg7nyfpry85pkm0g619j8b468zj8nb4"; })
(fetchNuGet { pname = "Microsoft.Extensions.Configuration.FileExtensions"; version = "7.0.0"; sha256 = "1fk7dcz6gfhd1k1d8ksz22rnjvj1waqjzk29ym4i3dz73rsq8j1i"; })
(fetchNuGet { pname = "Microsoft.Extensions.Configuration.Json"; version = "7.0.0"; sha256 = "05zjmrpp99l128wijp1fy8asskc11ls871qaqr4mjnz3gbfycxnj"; })
(fetchNuGet { pname = "Microsoft.Extensions.Configuration.UserSecrets"; version = "7.0.0"; sha256 = "0ks7lcyvfvr3ar36f5gp89bnnblxzic5vawppfcrvhw1ivas4mp1"; })
(fetchNuGet { pname = "Microsoft.Extensions.DependencyInjection"; version = "7.0.0"; sha256 = "121zs4jp8iimgbpzm3wsglhjwkc06irg1pxy8c1zcdlsg34cfq1p"; })
(fetchNuGet { pname = "Microsoft.Extensions.DependencyInjection.Abstractions"; version = "7.0.0"; sha256 = "181d7mp9307fs17lyy42f8cxnjwysddmpsalky4m0pqxcimnr6g7"; })
(fetchNuGet { pname = "Microsoft.Extensions.FileProviders.Abstractions"; version = "7.0.0"; sha256 = "0ff20yklyjgyjzdyv7sybczgqhgd557m05dbwxzjznr0x41b180d"; })
(fetchNuGet { pname = "Microsoft.Extensions.FileProviders.Physical"; version = "7.0.0"; sha256 = "1f1h0l47abw0spssd64qkhgd7b54pyzslyb586zp21milimcfmgv"; })
(fetchNuGet { pname = "Microsoft.Extensions.FileSystemGlobbing"; version = "7.0.0"; sha256 = "1812vnkn8n0i4yr3k5azcxcfx1bbpcsmms95rdyxjfrzfksr05ai"; })
(fetchNuGet { pname = "Microsoft.Extensions.Hosting"; version = "7.0.0"; sha256 = "0wx50kswqv8jw1vr8sma1hf1mm3wkwsnml0hzzlilvak9ql7cr3n"; })
(fetchNuGet { pname = "Microsoft.Extensions.Hosting.Abstractions"; version = "7.0.0"; sha256 = "1h5szfsr1dalsvdj9c18y6362853chisfns0hfpsq44hz0pr8j9q"; })
(fetchNuGet { pname = "Microsoft.Extensions.Hosting.Systemd"; version = "7.0.0"; sha256 = "07cr2lzmlczmz1f9sjv1i9sfqwinkcmkq1q0kkscnh9bqa85aaqd"; })
(fetchNuGet { pname = "Microsoft.Extensions.Hosting.WindowsServices"; version = "7.0.0"; sha256 = "1cvc24ma18vi2hb3kwkb9k7hfx5v8lcfdvy9n8bc12d5nhmh9zcc"; })
(fetchNuGet { pname = "Microsoft.Extensions.Logging"; version = "7.0.0"; sha256 = "1bqd3pqn5dacgnkq0grc17cgb2i0w8z1raw12nwm3p3zhrfcvgxf"; })
(fetchNuGet { pname = "Microsoft.Extensions.Logging.Abstractions"; version = "7.0.0"; sha256 = "1gn7d18i1wfy13vrwhmdv1rmsb4vrk26kqdld4cgvh77yigj90xs"; })
(fetchNuGet { pname = "Microsoft.Extensions.Logging.Configuration"; version = "7.0.0"; sha256 = "1f5fhpvzwyrwxh3g1ry027s4skmklf6mbm2w0p13h0x6fbmxcb24"; })
(fetchNuGet { pname = "Microsoft.Extensions.Logging.Console"; version = "7.0.0"; sha256 = "1m8ri2m3vlv9vzk0068jkrx0vkk4sqmk1kxmn8pc3wys38d38qaf"; })
(fetchNuGet { pname = "Microsoft.Extensions.Logging.Debug"; version = "7.0.0"; sha256 = "14p7hrhdd58fxdhjbyjwmlzr00vs03bmns3sf2f6alsgpvbf2h1i"; })
(fetchNuGet { pname = "Microsoft.Extensions.Logging.EventLog"; version = "7.0.0"; sha256 = "0q1cgi456shngxs70ar0ibshpm5qk8whw369jrl6xdxnf1vxkkq8"; })
(fetchNuGet { pname = "Microsoft.Extensions.Logging.EventSource"; version = "7.0.0"; sha256 = "11rskmrijf6xv78slm38zywj6l3wjlm017kijhan1kfg56f1kvdk"; })
(fetchNuGet { pname = "Microsoft.Extensions.Options"; version = "7.0.0"; sha256 = "0b90zkrsk5dw3wr749rbynhpxlg4bgqdnd7d5vdlw2g9c7zlhgx6"; })
(fetchNuGet { pname = "Microsoft.Extensions.Options.ConfigurationExtensions"; version = "7.0.0"; sha256 = "1liyprh0zha2vgmqh92n8kkjz61zwhr7g16f0gmr297z2rg1j5pj"; })
(fetchNuGet { pname = "Microsoft.Extensions.Primitives"; version = "7.0.0"; sha256 = "1b4km9fszid9vp2zb3gya5ni9fn8bq62bzaas2ck2r7gs0sdys80"; })
(fetchNuGet { pname = "Mono.Nat"; version = "3.0.0"; sha256 = "17lyjcpwp5j2dwx0gi975x710r7kqkx50c1wmyzwdyqhar3kszi8"; })
(fetchNuGet { pname = "MonoTorrent"; version = "3.0.0-beta.rev0106"; sha256 = "0zz64nnb02d4pjpffs9x26jvbalm48yaghbgj3vc7j8ff0sm8xr4"; })
(fetchNuGet { pname = "ReusableTasks"; version = "2.0.2"; sha256 = "0dkyirzspp8spmgd3ad9mak5jhqfmib6m437r2bmmyb3m4mxp5rb"; })
(fetchNuGet { pname = "System.Diagnostics.EventLog"; version = "7.0.0"; sha256 = "16p8z975dnzmncfifa9gw9n3k9ycpr2qvz7lglpghsvx0fava8k9"; })
(fetchNuGet { pname = "System.ServiceProcess.ServiceController"; version = "7.0.0"; sha256 = "0xgg9y06j6ch3h65lyrpnghb7iaf9g97w1kg5sz0ji6ikfiqlkxz"; })
(fetchNuGet { pname = "System.Text.Encodings.Web"; version = "7.0.0"; sha256 = "1151hbyrcf8kyg1jz8k9awpbic98lwz9x129rg7zk1wrs6vjlpxl"; })
(fetchNuGet { pname = "System.Text.Json"; version = "7.0.0"; sha256 = "0scb0lp7wbgcinaa4kqiqs7b8i5nx4ppfad81138jiwd1sl37pyp"; })
]

View File

@ -0,0 +1,46 @@
{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, fetchpatch
}:
buildDotnetModule rec {
pname = "torrentstream";
version = "1.0.1.6";
src = fetchFromGitHub {
owner = "trueromanus";
repo = "TorrentStream";
rev = version;
hash = "sha256-41zlzrQ+YGY2wEvq4Su/lp6lOmGW4u0F37ub2a3z+7o=";
};
sourceRoot = "source/src";
projectFile = "TorrentStream.sln";
nugetDeps = ./deps.nix;
dotnet-sdk = dotnetCorePackages.sdk_7_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_7_0;
executables = [ "TorrentStream" ];
patches = [
(fetchpatch {
name = "allow-setting-listen-address.patch";
url = "https://github.com/trueromanus/TorrentStream/compare/1.0.1.6..6900b6f33f2b4b94888a8a1355029a81767e66a4.patch";
hash = "sha256-jOUs5SO2BnNnkz3wJ710Z4stVlhZ8nKqpmHr4BNlGs0=";
stripLen = 1;
excludes = [ "README.md" ];
})
./0001-display-the-message-of-caught-exceptions.patch
];
meta = {
homepage = "https://github.com/trueromanus/TorrentStream";
description = "Simple web server for streaming torrent files in video players";
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
mainProgram = "TorrentStream";
maintainers = with lib.maintainers; [ _3JlOy-PYCCKUi ];
};
}

View File

@ -2,13 +2,13 @@
stdenvNoCC.mkDerivation rec {
pname = "numix-icon-theme-square";
version = "23.10.09";
version = "23.11.11";
src = fetchFromGitHub {
owner = "numixproject";
repo = pname;
rev = version;
sha256 = "sha256-NAvgrD0ckAC0vpF7BkEVWGmsuoWeMuSOdp2c9wEzv4s=";
sha256 = "sha256-yu9ufr1l21l6v8bRXLJcVkpBD0fDIlgePbStTLH+CDc=";
};
nativeBuildInputs = [ gtk3 ];

View File

@ -1,7 +1,6 @@
{ lib
, stdenvNoCC
, fetchFromGitHub
, fetchurl
, glib
, gnome-shell
, gtk-engine-murrine
@ -23,20 +22,20 @@
let
pname = "mojave-gtk-theme";
version = "2023-06-13";
version = "2023-08-04";
main_src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = version;
hash = "sha256-0jb/VQ6Z0BGaEka57BWM0pBweP08cr4jfPRdEN/BJ1M=";
hash = "sha256-boS/GPjuJV5lZjyHW7tG74T6a3SASQVGnSz++5HkCuw=";
};
wallpapers_src = fetchFromGitHub {
owner = "vinceliuice";
repo = pname;
rev = "0c4ae6ddff7e3fab4959469461c4d4042deb1b2f";
hash = "sha256-7LSZSsRt6zTVPLWzuBgwRC1q1MHp5pN/pMl3x2wR8Ow=";
rev = "1dc23c2b45d7e073e080cfb02f43aab0e59b6b2c";
hash = "sha256-nkw8gXYx8fN1yn0A5M2fWwOvfUQ6izynxRw5JA61InM=";
name = "wallpapers";
};
@ -118,6 +117,7 @@ stdenvNoCC.mkDerivation rec {
${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \
${lib.optionalString (opacityVariants != []) "--opacity " + builtins.toString opacityVariants} \
${lib.optionalString (themeVariants != []) "--theme " + builtins.toString themeVariants} \
--icon nixos \
--dest $out/share/themes
${lib.optionalString wallpapers ''

View File

@ -1,19 +1,26 @@
{ lib, stdenv, fetchFromGitHub, sass, glib, libxml2, gdk-pixbuf
{ lib
, stdenv
, fetchFromGitHub
, sassc
, glib
, libxml2
, gdk-pixbuf
, gtk-engine-murrine
, gitUpdater
}:
stdenv.mkDerivation rec {
version = "2.6.7";
pname = "numix-gtk-theme";
version = "unstable-2021-06-08";
src = fetchFromGitHub {
repo = "numix-gtk-theme";
owner = "numixproject";
rev = version;
sha256 = "12mw0kr0kkvg395qlbsvkvaqccr90cmxw5rrsl236zh43kj8grb7";
rev = "ad4b345cb19edba96bec72d6dc97ed1b568755a8";
hash = "sha256-7KX5xC6Gr6azqL2qyc8rYb3q9UhcGco2uEfltsQ+mgo=";
};
nativeBuildInputs = [ sass glib libxml2 gdk-pixbuf ];
nativeBuildInputs = [ sassc glib libxml2 gdk-pixbuf ];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
@ -22,6 +29,8 @@ stdenv.mkDerivation rec {
patchShebangs .
'';
passthru.updateScript = gitUpdater { };
meta = {
description = "Modern flat theme with a combination of light and dark elements (GNOME, Unity, Xfce and Openbox)";
homepage = "https://numixproject.github.io";

View File

@ -38,5 +38,10 @@ rustPlatform.buildRustPackage rec {
homepage = "https://rustpython.github.io";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
# = note: Undefined symbols for architecture x86_64:
# "_utimensat", referenced from:
# rustpython_vm::function::builtin::IntoPyNativeFn::into_func::... in
# rustpython-10386d81555652a7.rustpython_vm-f0b5bedfcf056d0b.rustpython_vm.7926b68e665728ca-cgu.08.rcgu.o.rcgu.o
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}

View File

@ -1,62 +1,210 @@
{ lib
, stdenv
, fetchFromGitHub
{ blas
, boost
, clblast
, cmake
, pkg-config
, opencl-clhpp
, ocl-icd
, config
, cudaPackages
, fetchFromGitHub
, fftw
, fftwFloat
, blas
, lapack
, boost
, mesa
, libGLU
, libGL
, fmt_9
, forge
, freeimage
, gtest
, lapack
, lib
, libGL
, mesa
, ocl-icd
, opencl-clhpp
, pkg-config
, python3
, clfft
, clblas
, doxygen
, buildDocs ? false
, config
, span-lite
, stdenv
# NOTE: We disable tests by default, because they cannot be run easily on
# non-NixOS systems when either CUDA or OpenCL support is enabled (CUDA and
# OpenCL need access to drivers that are installed outside of Nix on
# non-NixOS systems).
, doCheck ? false
, cpuSupport ? true
, cudaSupport ? config.cudaSupport
, cudatoolkit
, darwin
# OpenCL needs mesa which is broken on Darwin
, openclSupport ? !stdenv.isDarwin
# This argument lets one run CUDA & OpenCL tests on non-NixOS systems by
# telling Nix where to find the drivers. If you know the version of the
# NVidia driver that is installed on your system, you can do:
#
# arrayfire.override {
# nvidiaComputeDrivers =
# callPackage
# (prev.linuxPackages.nvidiaPackages.mkDriver {
# version = cudaVersion; # our driver version
# sha256_64bit = cudaHash; # sha256 of the .run binary
# useGLVND = false;
# useProfiles = false;
# useSettings = false;
# usePersistenced = false;
# ...
# })
# { libsOnly = true; };
# }
, nvidiaComputeDrivers ? null
}:
# ArrayFire compiles with 64-bit BLAS, but some tests segfault or throw
# exceptions, which means that it isn't really supported yet...
assert blas.isILP64 == false;
stdenv.mkDerivation rec {
pname = "arrayfire";
version = "3.7.3";
version = "3.9.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "0gcbg6b6gs38xhks5pp0vkcqs89zl7rh9982jqlzsd0h724qddw0";
fetchSubmodules = true;
rev = "v3.9.0";
hash = "sha256-80fxdkaeAQ5u0X/UGPaI/900cdkZ/vXNcOn5tkZ+C3Y=";
};
# We cannot use the clfft from Nixpkgs because ArrayFire maintain a fork
# of clfft where they've modified the CMake build system, and the
# CMakeLists.txt of ArrayFire assumes that we're using that fork.
#
# This can be removed once ArrayFire upstream their changes.
clfft = fetchFromGitHub {
owner = pname;
repo = "clfft";
rev = "760096b37dcc4f18ccd1aac53f3501a83b83449c";
sha256 = "sha256-vJo1YfC2AJIbbRj/zTfcOUmi0Oj9v64NfA9MfK8ecoY=";
};
glad = fetchFromGitHub {
owner = pname;
repo = "glad";
rev = "ef8c5508e72456b714820c98e034d9a55b970650";
sha256 = "sha256-u9Vec7XLhE3xW9vzM7uuf+b18wZsh/VMtGbB6nMVlno=";
};
threads = fetchFromGitHub {
owner = pname;
repo = "threads";
rev = "4d4a4f0384d1ac2f25b2c4fc1d57b9e25f4d6818";
sha256 = "sha256-qqsT9woJDtQvzuV323OYXm68pExygYs/+zZNmg2sN34=";
};
test-data = fetchFromGitHub {
owner = pname;
repo = "arrayfire-data";
rev = "a5f533d7b864a4d8f0dd7c9aaad5ff06018c4867";
sha256 = "sha256-AWzhsrDXyZrQN2bd0Ng/XlE8v02x7QWTiFTyaAuRXSw=";
};
# ArrayFire fails to compile with newer versions of spdlog, so we can't use
# the one in Nixpkgs. Once they upgrade, we can switch to using spdlog from
# Nixpkgs.
spdlog = fetchFromGitHub {
owner = "gabime";
repo = "spdlog";
rev = "v1.9.2";
hash = "sha256-GSUdHtvV/97RyDKy8i+ticnSlQCubGGWHg4Oo+YAr8Y=";
};
cmakeFlags = [
"-DAF_BUILD_OPENCL=OFF"
"-DBUILD_TESTING=ON"
# We do not build examples, because building tests already takes long enough...
"-DAF_BUILD_EXAMPLES=OFF"
"-DBUILD_TESTING=OFF"
] ++ lib.optional cudaSupport "-DCMAKE_LIBRARY_PATH=${cudatoolkit}/lib/stubs";
# No need to build forge, because it's a separate package
"-DAF_BUILD_FORGE=OFF"
"-DAF_COMPUTE_LIBRARY='FFTW/LAPACK/BLAS'"
# Prevent ArrayFire from trying to download some matrices from the Internet
"-DAF_TEST_WITH_MTX_FILES=OFF"
# Have to use the header-only version, because we're not using the version
# from Nixpkgs. Otherwise, libaf.so won't be able to find the shared
# library, because ArrayFire's CMake files do not run the install step of
# spdlog.
"-DAF_WITH_SPDLOG_HEADER_ONLY=ON"
(if cpuSupport then "-DAF_BUILD_CPU=ON" else "-DAF_BUILD_CPU=OFF")
(if openclSupport then "-DAF_BUILD_OPENCL=ON" else "-DAF_BUILD_OPENCL=OFF")
(if cudaSupport then "-DAF_BUILD_CUDA=ON" else "-DAF_BUILD_CUDA=OFF")
] ++ lib.optionals cudaSupport [
# ArrayFire use deprecated FindCUDA in their CMake files, so we help CMake
# locate cudatoolkit.
"-DCUDA_LIBRARIES_PATH=${cudaPackages.cudatoolkit}/lib"
];
patches = [ ./no-download.patch ];
# ArrayFire have a repo with assets for the examples. Since we don't build
# the examples anyway, remove the dependency on assets.
patches = [ ./no-assets.patch ./no-download.patch ];
postPatch = ''
mkdir -p ./build/third_party/clFFT/src
cp -R --no-preserve=mode,ownership ${clfft.src}/ ./build/third_party/clFFT/src/clFFT-ext/
mkdir -p ./build/third_party/clBLAS/src
cp -R --no-preserve=mode,ownership ${clblas.src}/ ./build/third_party/clBLAS/src/clBLAS-ext/
mkdir -p ./build/include/CL
cp -R --no-preserve=mode,ownership ${opencl-clhpp}/include/CL/cl2.hpp ./build/include/CL/cl2.hpp
mkdir -p ./extern/af_glad-src
mkdir -p ./extern/af_threads-src
mkdir -p ./extern/af_test_data-src
mkdir -p ./extern/ocl_clfft-src
mkdir -p ./extern/spdlog-src
cp -R --no-preserve=mode,ownership ${glad}/* ./extern/af_glad-src/
cp -R --no-preserve=mode,ownership ${threads}/* ./extern/af_threads-src/
cp -R --no-preserve=mode,ownership ${test-data}/* ./extern/af_test_data-src/
cp -R --no-preserve=mode,ownership ${clfft}/* ./extern/ocl_clfft-src/
cp -R --no-preserve=mode,ownership ${spdlog}/* ./extern/spdlog-src/
# libaf.so (the unified backend) tries to load the right shared library at
# runtime, and the search paths are hard-coded... We tweak them to point to
# the installation directory in the Nix store.
substituteInPlace src/api/unified/symbol_manager.cpp \
--replace '"/opt/arrayfire-3/lib/",' \
"\"$out/lib/\", \"/opt/arrayfire-3/lib/\","
'';
preBuild = lib.optionalString cudaSupport ''
export CUDA_PATH="${cudatoolkit}"
'';
inherit doCheck;
checkPhase =
let
LD_LIBRARY_PATH = builtins.concatStringsSep ":" (
[ "${forge}/lib" "${freeimage}/lib" ]
++ lib.optional cudaSupport "${cudaPackages.cudatoolkit}/lib64"
# On non-NixOS systems, help the tests find Nvidia drivers
++ lib.optional (nvidiaComputeDrivers != null) "${nvidiaComputeDrivers}/lib"
);
ctestFlags = builtins.concatStringsSep " " (
# We have to run with "-j1" otherwise various segfaults occur on non-NixOS systems.
[ "--output-on-errors" "-j1" ]
# See https://github.com/arrayfire/arrayfire/issues/3484
++ lib.optional openclSupport "-E '(inverse_dense|cholesky_dense)'"
);
in
''
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
'' +
# On non-NixOS systems, help the tests find Nvidia drivers
lib.optionalString (openclSupport && nvidiaComputeDrivers != null) ''
export OCL_ICD_VENDORS=${nvidiaComputeDrivers}/etc/OpenCL/vendors
'' + ''
# Note: for debugging, enable AF_TRACE=all
AF_PRINT_ERRORS=1 ctest ${ctestFlags}
'';
buildInputs = [
blas
boost.dev
boost.out
clblast
fftw
fftwFloat
# We need fmt_9 because ArrayFire fails to compile with newer versions.
fmt_9
forge
freeimage
gtest
lapack
libGL
ocl-icd
opencl-clhpp
span-lite
]
++ lib.optionals cudaSupport [
cudaPackages.cudatoolkit
cudaPackages.cudnn
cudaPackages.cuda_cccl
]
++ lib.optionals openclSupport [
mesa
];
nativeBuildInputs = [
cmake
@ -64,30 +212,6 @@ stdenv.mkDerivation rec {
python3
];
strictDeps = true;
buildInputs = [
opencl-clhpp
fftw
fftwFloat
blas
lapack
libGLU
libGL
mesa
freeimage
boost.out
boost.dev
] ++ lib.optionals stdenv.isLinux [
ocl-icd
] ++ lib.optionals cudaSupport [
cudatoolkit
] ++ lib.optionals buildDocs [
doxygen
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk_11_0.frameworks.Accelerate
];
meta = with lib; {
description = "A general-purpose library for parallel and massively-parallel computations";
longDescription = ''
@ -95,7 +219,7 @@ stdenv.mkDerivation rec {
'';
license = licenses.bsd3;
homepage = "https://arrayfire.com/";
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ chessai ];
platforms = platforms.linux;
maintainers = with maintainers; [ chessai twesterhout ];
};
}

View File

@ -0,0 +1,35 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 12d6e557c..cc004555d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -321,11 +321,6 @@ if(NOT TARGET nonstd::span-lite)
endif()
-af_dep_check_and_populate(${assets_prefix}
- URI https://github.com/arrayfire/assets.git
- REF master
-)
-set(ASSETS_DIR ${${assets_prefix}_SOURCE_DIR})
# when crosscompiling use the bin2cpp file from the native bin directory
if(CMAKE_CROSSCOMPILING)
@@ -473,18 +468,6 @@ install(FILES ${ArrayFire_BINARY_DIR}/include/af/version.h
DESTINATION "${AF_INSTALL_INC_DIR}/af/"
COMPONENT headers)
-# install the examples irrespective of the AF_BUILD_EXAMPLES value
-# only the examples source files are installed, so the installation of these
-# source files does not depend on AF_BUILD_EXAMPLES
-# when AF_BUILD_EXAMPLES is OFF, the examples source is installed without
-# building the example executables
-install(DIRECTORY examples/ #NOTE The slash at the end is important
- DESTINATION ${AF_INSTALL_EXAMPLE_DIR}
- COMPONENT examples)
-
-install(DIRECTORY ${ASSETS_DIR}/examples/ #NOTE The slash at the end is important
- DESTINATION ${AF_INSTALL_EXAMPLE_DIR}
- COMPONENT examples)
install(DIRECTORY "${ArrayFire_SOURCE_DIR}/LICENSES/"
DESTINATION LICENSES

View File

@ -1,28 +1,31 @@
diff --git a/CMakeModules/build_clBLAS.cmake b/CMakeModules/build_clBLAS.cmake
index 8de529e8..6361b613 100644
--- a/CMakeModules/build_clBLAS.cmake
+++ b/CMakeModules/build_clBLAS.cmake
@@ -14,8 +14,7 @@ find_package(OpenCL)
ExternalProject_Add(
clBLAS-ext
- GIT_REPOSITORY https://github.com/arrayfire/clBLAS.git
- GIT_TAG arrayfire-release
+ DOWNLOAD_COMMAND true
BUILD_BYPRODUCTS ${clBLAS_location}
PREFIX "${prefix}"
INSTALL_DIR "${prefix}"
diff --git a/CMakeModules/build_clFFT.cmake b/CMakeModules/build_clFFT.cmake
index 28be38a3..85e3915e 100644
--- a/CMakeModules/build_clFFT.cmake
+++ b/CMakeModules/build_clFFT.cmake
@@ -20,8 +20,7 @@ ENDIF()
ExternalProject_Add(
clFFT-ext
- GIT_REPOSITORY https://github.com/arrayfire/clFFT.git
- GIT_TAG arrayfire-release
+ DOWNLOAD_COMMAND true
PREFIX "${prefix}"
INSTALL_DIR "${prefix}"
UPDATE_COMMAND ""
diff --git a/CMakeModules/AFconfigure_deps_vars.cmake b/CMakeModules/AFconfigure_deps_vars.cmake
index aac332f5a..e9e711159 100644
--- a/CMakeModules/AFconfigure_deps_vars.cmake
+++ b/CMakeModules/AFconfigure_deps_vars.cmake
@@ -94,7 +94,7 @@ macro(af_dep_check_and_populate dep_prefix)
URL ${adcp_args_URI}
URL_HASH ${adcp_args_REF}
DOWNLOAD_COMMAND \"\"
- UPDATE_DISCONNECTED ON
+ UPDATE_COMMAND \"\"
SOURCE_DIR "${ArrayFire_SOURCE_DIR}/extern/${dep_prefix}-src"
BINARY_DIR "${ArrayFire_BINARY_DIR}/extern/${dep_prefix}-build"
SUBBUILD_DIR "${ArrayFire_BINARY_DIR}/extern/${dep_prefix}-subbuild"
@@ -104,7 +104,7 @@ macro(af_dep_check_and_populate dep_prefix)
QUIET
URL ${adcp_args_URI}
DOWNLOAD_COMMAND \"\"
- UPDATE_DISCONNECTED ON
+ UPDATE_COMMAND \"\"
SOURCE_DIR "${ArrayFire_SOURCE_DIR}/extern/${dep_prefix}-src"
BINARY_DIR "${ArrayFire_BINARY_DIR}/extern/${dep_prefix}-build"
SUBBUILD_DIR "${ArrayFire_BINARY_DIR}/extern/${dep_prefix}-subbuild"
@@ -116,7 +116,7 @@ macro(af_dep_check_and_populate dep_prefix)
GIT_REPOSITORY ${adcp_args_URI}
GIT_TAG ${adcp_args_REF}
DOWNLOAD_COMMAND \"\"
- UPDATE_DISCONNECTED ON
+ UPDATE_COMMAND \"\"
SOURCE_DIR "${ArrayFire_SOURCE_DIR}/extern/${dep_prefix}-src"
BINARY_DIR "${ArrayFire_BINARY_DIR}/extern/${dep_prefix}-build"
SUBBUILD_DIR "${ArrayFire_BINARY_DIR}/extern/${dep_prefix}-subbuild"

View File

@ -8,13 +8,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "cpp-utilities";
version = "5.24.1";
version = "5.24.2";
src = fetchFromGitHub {
owner = "Martchus";
repo = "cpp-utilities";
rev = "v${finalAttrs.version}";
sha256 = "sha256-Prb593+jXhYzwPHQnwen2qgaNfdX1Atiz1FhmXm9X7U=";
sha256 = "sha256-boV0OO8GzgH0HpNh00nYLM2+wCmvuDxwKHvCMCdmiJs=";
};
nativeBuildInputs = [ cmake ];

View File

@ -1,19 +1,50 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, arrayfire, expat, fontconfig, freeimage, freetype, boost
, mesa, libGLU, libGL, glfw3, SDL2, cudatoolkit
{ boost
, cmake
, expat
, fetchFromGitHub
, fontconfig
, freeimage
, freetype
, glfw3
, glm
, lib
, libGLU
, libGL
, mesa
, opencl-clhpp
, pkg-config
, stdenv
, SDL2
}:
stdenv.mkDerivation rec {
pname = "forge";
version = "1.0.4";
version = "1.0.8";
src = fetchFromGitHub {
owner = "arrayfire";
repo = "forge";
rev = "v${version}";
sha256 = "00pmky6kccd7pwi8sma79qpmzr2f9pbn6gym3gyqm64yckw6m484";
fetchSubmodules = true;
repo = pname;
rev = "v1.0.8";
sha256 = "sha256-lSZAwcqAHiuZkpYcVfwvZCfNmEF3xGN9S/HuZQrGeKU=";
};
glad = fetchFromGitHub {
owner = "arrayfire";
repo = "glad";
rev = "b94680aee5b8ce01ae1644c5f2661769366c765a";
hash = "sha256-CrZy76gOGMpy9f1NuMK4tokZ57U//zYeNH5ZYY0SC2U=";
};
# This patch ensures that Forge does not try to fetch glad from GitHub and
# uses our sources that we've checked out via Nix.
patches = [ ./no-download-glad.patch ];
postPatch = ''
mkdir -p ./extern
cp -R --no-preserve=mode,ownership ${glad} ./extern/fg_glad-src
ln -s ${opencl-clhpp} ./extern/cl2hpp
'';
cmakeFlags = [ "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" ];
nativeBuildInputs = [
cmake
@ -21,18 +52,19 @@ stdenv.mkDerivation rec {
];
buildInputs = [
expat
fontconfig
freetype
boost.out
boost.dev
expat
fontconfig
freeimage
mesa
libGLU libGL
freetype
glfw3
glm
libGL
libGLU
opencl-clhpp
SDL2
cudatoolkit
arrayfire
mesa
];
meta = with lib; {
@ -45,7 +77,6 @@ stdenv.mkDerivation rec {
license = licenses.bsd3;
homepage = "https://arrayfire.com/";
platforms = platforms.linux;
maintainers = with maintainers; [ chessai ];
maintainers = with maintainers; [ chessai twesterhout ];
};
}

View File

@ -0,0 +1,31 @@
diff --git a/CMakeModules/ForgeConfigureDepsVars.cmake b/CMakeModules/ForgeConfigureDepsVars.cmake
index ee5c2fc..2f75181 100644
--- a/CMakeModules/ForgeConfigureDepsVars.cmake
+++ b/CMakeModules/ForgeConfigureDepsVars.cmake
@@ -84,7 +84,7 @@ macro(fg_dep_check_and_populate dep_prefix)
URL ${fdcp_args_URI}
URL_HASH ${fdcp_args_REF}
DOWNLOAD_COMMAND \"\"
- UPDATE_DISCONNECTED ON
+ UPDATE_COMMAND \"\"
SOURCE_DIR "${Forge_SOURCE_DIR}/extern/${dep_prefix}-src"
BINARY_DIR "${Forge_BINARY_DIR}/extern/${dep_prefix}-build"
SUBBUILD_DIR "${Forge_BINARY_DIR}/extern/${dep_prefix}-subbuild"
@@ -94,7 +94,7 @@ macro(fg_dep_check_and_populate dep_prefix)
QUIET
URL ${fdcp_args_URI}
DOWNLOAD_COMMAND \"\"
- UPDATE_DISCONNECTED ON
+ UPDATE_COMMAND \"\"
SOURCE_DIR "${Forge_SOURCE_DIR}/extern/${dep_prefix}-src"
BINARY_DIR "${Forge_BINARY_DIR}/extern/${dep_prefix}-build"
SUBBUILD_DIR "${Forge_BINARY_DIR}/extern/${dep_prefix}-subbuild"
@@ -106,7 +106,7 @@ macro(fg_dep_check_and_populate dep_prefix)
GIT_REPOSITORY ${fdcp_args_URI}
GIT_TAG ${fdcp_args_REF}
DOWNLOAD_COMMAND \"\"
- UPDATE_DISCONNECTED ON
+ UPDATE_COMMAND \"\"
SOURCE_DIR "${Forge_SOURCE_DIR}/extern/${dep_prefix}-src"
BINARY_DIR "${Forge_BINARY_DIR}/extern/${dep_prefix}-build"
SUBBUILD_DIR "${Forge_BINARY_DIR}/extern/${dep_prefix}-subbuild"

View File

@ -37,6 +37,17 @@ stdenv.mkDerivation rec {
url = "https://gitlab.com/inkscape/lib2geom/-/commit/23d9393af4bee17aeb66a3c13bdad5dbed982d08.patch";
hash = "sha256-LAaGMIXpDI/Wzv5E2LasW1Y2/G4ukhuEzDmFu3AzZOA=";
})
# Fix ellipses rendering near page corners.
# https://gitlab.com/inkscape/lib2geom/-/issues/66
(fetchpatch {
url = "https://gitlab.com/inkscape/lib2geom/-/commit/039ce8d4af23a0a2a9d48eb970b321d9795dcc08.patch";
hash = "sha256-JfgGrqBcYSYKcdl4Bt7vGZ4aTBPSHM6JjZ95IlzxPwI=";
})
(fetchpatch {
url = "https://gitlab.com/inkscape/lib2geom/-/commit/cf523857e48c87f9f6a09217bdf935fff457823d.patch";
hash = "sha256-BRg8ANHMSgoi6vt9PNbhwG1fRkzEPXb4gPTPO3sY0XE=";
})
];
nativeBuildInputs = [
@ -70,7 +81,13 @@ stdenv.mkDerivation rec {
# Broken on all platforms, test just accidentally passes on some.
# https://gitlab.com/inkscape/lib2geom/-/issues/63
"elliptical-arc-test"
];
]
++ lib.optionals stdenv.hostPlatform.isMusl [
# Fails due to rounding differences
# https://gitlab.com/inkscape/lib2geom/-/issues/70
"circle-test"
]
;
in ''
runHook preCheck
ctest --output-on-failure -E '^${lib.concatStringsSep "|" disabledTests}$'

View File

@ -42,11 +42,11 @@ stdenv.mkDerivation rec {
sed -i -e "s@Cflags: @Cflags: $($PKG_CONFIG --cflags libglibutil) @g" $dev/lib/pkgconfig/$pname.pc
'';
meta = with lib; {
meta = {
description = "GLib-style interface to binder";
homepage = "https://github.com/mer-hybris/libgbinder";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ mcaju ];
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ mcaju ];
};
}

View File

@ -39,11 +39,11 @@ stdenv.mkDerivation rec {
sed -i -e "s@Cflags: @Cflags: $($PKG_CONFIG --cflags glib-2.0) @g" $dev/lib/pkgconfig/$pname.pc
'';
meta = with lib; {
meta = {
description = "Library of glib utilities.";
homepage = "https://git.sailfishos.org/mer-core/libglibutil";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ mcaju ];
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ mcaju ];
};
}

View File

@ -8,11 +8,11 @@
stdenv.mkDerivation (finalAttrs: {
pname = "cfitsio";
version = "4.3.0";
version = "4.3.1";
src = fetchurl {
url = "https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-${finalAttrs.version}.tar.gz";
hash = "sha256-/a3AHQnPn1QlOALF7IfrEN5RzkEwQRQVrojDCUBiG4s=";
hash = "sha256-R6fI7gVoe+Hh2O7rlPuI8GD7882KTfUsy4jV6w9QYr4=";
};
patches = [

View File

@ -31,7 +31,7 @@
stdenv.mkDerivation (finalAttrs: {
pname = "xdg-desktop-portal";
version = "1.18.1";
version = "1.18.2";
outputs = [ "out" "installedTests" ];
@ -39,7 +39,7 @@ stdenv.mkDerivation (finalAttrs: {
owner = "flatpak";
repo = "xdg-desktop-portal";
rev = finalAttrs.version;
sha256 = "sha256-S4I578gX1ONbixWGcQLY3WqzACoVfAtLuOFBhh36hFY=";
hash = "sha256-Pd5IKrVp/OOE10Ozy4R3XbubVc6iz0znG+YB0Uu+68E=";
};
patches = [
@ -109,7 +109,7 @@ stdenv.mkDerivation (finalAttrs: {
"-Dinstalled-tests=true"
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
] ++ lib.optionals (!enableGeoLocation) [
"-Dgeoclue=false"
"-Dgeoclue=disabled"
];
doCheck = true;

View File

@ -83,6 +83,17 @@ let
patches = optionals stdenv.isDarwin [ ./patches/cffi-libffi-darwin-ffi-h.patch ];
};
cl-environments = super.cl-environments.overrideLispAttrs (old: {
patches = old.patches or [] ++ [
# Needed because SB-INT:TRULY-DYNAMIC-EXTENT has been removed since sbcl 2.3.10.
# The update isn't available on quicklisp yet, but we can fetch from upstream directly
(pkgs.fetchpatch {
url = "https://github.com/alex-gutev/cl-environments/commit/1bd7ecf68adeaf654616c6fb763c1239e0f2e221.patch";
sha256 = "sha256-i6KdthYqPlJPvxM2c2kossHYvXNhpZHl/7NzELNrOHU=";
})
];
});
cl-unicode = build-with-compile-into-pwd {
pname = "cl-unicode";
version = "0.1.6";

View File

@ -2,10 +2,12 @@
, aiohttp
, aioresponses
, buildPythonPackage
, ciso8601
, click
, fetchFromGitHub
, pydantic
, mashumaro
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, yarl
@ -13,39 +15,41 @@
buildPythonPackage rec {
pname = "aiortm";
version = "0.6.4";
format = "pyproject";
version = "0.8.5";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = pname;
repo = "aiortm";
rev = "refs/tags/v${version}";
hash = "sha256-PFZ8B2Wtjg3xUFYcnthTW5QXLk//lFH25jwpF7hygxQ=";
hash = "sha256-qFjMNU/sUFtCzBNG7vauz2p1BSr9ra81kyUtaz5vSTg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=aiortm --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
ciso8601
click
pydantic
mashumaro
yarl
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=aiortm --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"aiortm"
];

View File

@ -13,8 +13,8 @@
buildPythonPackage rec {
pname = "aiowaqi";
version = "3.0.0";
format = "pyproject";
version = "3.0.1";
pyproject = true;
disabled = pythonOlder "3.11";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "joostlek";
repo = "python-waqi";
rev = "refs/tags/v${version}";
hash = "sha256-FHpZVY7TFjk+2YNBejEwSdYWK41V9bti1JxpWivemw4=";
hash = "sha256-+4l820FGQI66GGr+KGEeDmPUFwRrMNvYFJuSouesakY=";
};
postPatch = ''
@ -50,6 +50,15 @@ buildPythonPackage rec {
"aiowaqi"
];
disabledTests = [
# Upstream mocking fails
"test_search"
];
pytestFlagsArray = [
"--snapshot-update"
];
meta = with lib; {
description = "Module to interact with the WAQI API";
homepage = "https://github.com/joostlek/python-waqi";

View File

@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "aiowithings";
version = "1.0.2";
version = "1.0.3";
pyproject = true;
disabled = pythonOlder "3.11";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "joostlek";
repo = "python-withings";
rev = "refs/tags/v${version}";
hash = "sha256-6yfhAMQIwhjKXlnN58bL9It8q6CXH9RxKBkB8BfSY1o=";
hash = "sha256-n76bpFIWUfztTDEg32uopxukAtvFT3tdbtqWOLghi4I=";
};
postPatch = ''

View File

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "aws-lambda-builders";
version = "1.41.0";
version = "1.42.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "awslabs";
repo = "aws-lambda-builders";
rev = "refs/tags/v${version}";
hash = "sha256-Uxf52UzzCqXFFnQD1DwcSy3ylY+rYq6qbI5XK5JiVto=";
hash = "sha256-rgRGKpthZ0nitO91Z5xUimakDFvcLh4UFKnxnEmRLHI=";
};
postPatch = ''

View File

@ -12,14 +12,14 @@
buildPythonPackage rec {
pname = "awscrt";
version = "0.19.12";
version = "0.19.17";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-skkkwtmSbGJV6MRBJMfNhu+pWEBuMkB7ozTh9wiyYVM=";
hash = "sha256-v3CANF5cfUG31AiqAFpRmnLeOfGm7I8H+VIUTo6qVJI=";
};
buildInputs = lib.optionals stdenv.isDarwin [

View File

@ -9,8 +9,8 @@
buildPythonPackage rec {
pname = "bitstring";
version = "4.1.2";
format = "pyproject";
version = "4.1.3";
pyproject = true;
disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "scott-griffiths";
repo = pname;
rev = "refs/tags/bitstring-${version}";
hash = "sha256-e4OnXwEuXz5m8d2PZOL5zDw8iGEzUg8LLk+xs/eGleA=";
hash = "sha256-RbHy36AnDlu/Ym5Ty2O9XfPj5xXd9hTgoClvISPoGBc=";
};
nativeBuildInputs = [

View File

@ -11,7 +11,7 @@
buildPythonPackage rec {
pname = "bluetooth-data-tools";
version = "1.14.0";
version = "1.15.0";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -20,7 +20,7 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-eO17EuZ9K6tLAyEGmTaxw1Cxfz3XPPwNCcIwZ2/uHug=";
hash = "sha256-8Gbw2vXqKvWo30QKExrmH7lUkZBg7zd3o2xWEqGxSBM=";
};
# The project can build both an optimized cython version and an unoptimized

View File

@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "ciso8601";
version = "2.3.0";
version = "2.3.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "closeio";
repo = "ciso8601";
rev = "refs/tags/v${version}";
hash = "sha256-qTpt91Wf3L6Jl7FU8sn9PvGMRd/cjhQ1mQvUaQeLFQU=";
hash = "sha256-KkMa1Rr3Z+5VnZfj25LDYpTfRyKqWA9u0vq6dZpwEy0=";
};
nativeBuildInputs = [

View File

@ -33,11 +33,11 @@ buildPythonPackage rec {
setupPyGlobalFlags = [ "--cython" ];
meta = with lib; {
meta = {
description = "Python bindings for libgbinder";
homepage = "https://github.com/erfanoabdi/gbinder-python";
license = licenses.gpl3;
maintainers = with maintainers; [ mcaju ];
platforms = platforms.linux;
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ mcaju ];
};
}

View File

@ -12,7 +12,7 @@
buildPythonPackage rec {
pname = "ha-mqtt-discoverable";
version = "0.11.0";
version = "0.12.0";
pyproject = true;
disabled = pythonOlder "3.10";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "unixorn";
repo = "ha-mqtt-discoverable";
rev = "refs/tags/v${version}";
hash = "sha256-9bK4akcyhQnGWVg2AkV4l2uiCjj0bkstqajxVXklMq0=";
hash = "sha256-Mfn3Hl73CdwaGcdrEFbW2upjFemCJ6xutQJo92sKlaE=";
};
nativeBuildInputs = [

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
, bluepy
, pythonOlder
, cryptography
}:
buildPythonPackage rec {
pname = "miauth";
version = "0.9.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "dnandha";
repo = "miauth";
# Release is not tagged properly, https://github.com/dnandha/miauth/issues/15
# rev = "refs/tags/${version}";
rev = "refs/tags/release";
hash = "sha256-+aoY0Eyd9y7xQTA3uSC6YIZisViilsHlFaOXmhPMcBY=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
bluepy
cryptography
];
pythonImportsCheck = [
"miauth"
];
meta = with lib; {
description = "Authenticate and interact with Xiaomi devices over BLE";
homepage = "https://github.com/dnandha/miauth";
license = licenses.agpl3Only;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -0,0 +1,55 @@
{ lib
, bleak
, bleak-retry-connector
, bluetooth-data-tools
, bluetooth-sensor-state-data
, buildPythonPackage
, fetchFromGitHub
, miauth
, pythonOlder
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "ninebot-ble";
version = "0.0.6";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "ownbee";
repo = "ninebot-ble";
rev = "refs/tags/${version}";
hash = "sha256-gA3VTs45vVpO0Iy8MbvvDf9j99vsFzrkADaJEslx6y0=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
bleak
bleak-retry-connector
bluetooth-data-tools
bluetooth-sensor-state-data
miauth
];
# Module has no test
doCheck = false;
pythonImportsCheck = [
"ninebot_ble"
];
meta = with lib; {
description = "Ninebot scooter BLE client";
homepage = "https://github.com/ownbee/ninebot-ble";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -6,14 +6,14 @@
buildPythonPackage rec {
pname = "peaqevcore";
version = "19.5.13";
version = "19.5.16";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-0WixwsBvfRgHxKrs/eAhzDNgFIpPdUbfEdJxnlaGmCA=";
hash = "sha256-utQJcJAP+gF1kNyPBHHKxdL/tXobia8pEauJQND4B0w=";
};
postPatch = ''

View File

@ -40,11 +40,11 @@ buildPythonPackage rec {
runHook postCheck
'';
meta = with lib; {
meta = {
broken = stdenv.isDarwin;
description = "Cross-platform clipboard utilities supporting both binary and text data";
homepage = "https://github.com/spyoungtech/pyclip";
license = licenses.asl20;
maintainers = with maintainers; [ mcaju ];
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ mcaju ];
};
}

View File

@ -15,7 +15,7 @@
buildPythonPackage rec {
pname = "pysigma";
version = "0.10.6";
version = "0.10.9";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -24,7 +24,7 @@ buildPythonPackage rec {
owner = "SigmaHQ";
repo = "pySigma";
rev = "refs/tags/v${version}";
hash = "sha256-CmIhNZraDawiiKg6WuHUVRMwXSVEizg1KEv7o2ZP1Hc=";
hash = "sha256-zKV2yDLhoRTvlDZ/bwEyJhtE6hx1IAgKNI37J31nQo8=";
};
pythonRelaxDeps = [
@ -49,7 +49,7 @@ buildPythonPackage rec {
];
disabledTests = [
# require network connection
# Tests require network connection
"test_sigma_plugin_directory_default"
"test_sigma_plugin_installation"
];

View File

@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "pyvicare";
version = "2.28.1";
version = "2.29.0";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -19,7 +19,7 @@ buildPythonPackage rec {
owner = "somm15";
repo = "PyViCare";
rev = "refs/tags/${version}";
hash = "sha256-6tyFSKD8Igai9A5wn7vRJdTryy+lv2MkxaskNpCwqV8=";
hash = "sha256-FTvlRCPajRqKLCb5x1Gz/EGZIdMhXow4nP+WlWbjLko=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;

View File

@ -6,33 +6,29 @@
, numpy
, pytestCheckHook
, pythonOlder
, requests
, scipy
, seaborn
, requests
, setuptools
}:
buildPythonPackage rec {
pname = "simpful";
version = "2.11.0";
format = "setuptools";
version = "2.11.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aresio";
repo = pname;
repo = "simpful";
rev = "refs/tags/${version}";
hash = "sha256-1CU/Iz83CKRx7dsOTGfdJm98TUfc2kxCHKIEUXP36HQ=";
hash = "sha256-54WkKnPB3xA2CaOpmasqxgDoga3uAqoC1nOivytXmGY=";
};
# patch dated use of private matplotlib interface
# https://github.com/aresio/simpful/issues/22
postPatch = ''
substituteInPlace simpful/simpful.py \
--replace \
"next(ax._get_lines.prop_cycler)['color']" \
"ax._get_lines.get_next_color()"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
numpy
@ -56,11 +52,11 @@ buildPythonPackage rec {
];
meta = with lib; {
broken = stdenv.isDarwin;
description = "Library for fuzzy logic";
homepage = "https://github.com/aresio/simpful";
changelog = "https://github.com/aresio/simpful/releases/tag/${version}";
license = with licenses; [ lgpl3Only ];
maintainers = with maintainers; [ fab ];
broken = stdenv.isDarwin;
};
}

View File

@ -5,12 +5,12 @@
buildPythonPackage rec {
pname = "types-setuptools";
version = "68.2.0.1";
version = "68.2.0.2";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-jzHoIB55aXieDrI0Y7U+vl9n2SQX30tkim6jw1fKT1E=";
hash = "sha256-Ce/DgK1cf3jjC8oVRvcGRpVozyYITPq3Ps+D3qHShEY=";
};
# Module doesn't have tests

View File

@ -5,14 +5,14 @@
python3.pkgs.buildPythonApplication rec {
pname = "checkov";
version = "3.1.11";
version = "3.1.14";
pyproject = true;
src = fetchFromGitHub {
owner = "bridgecrewio";
repo = "checkov";
rev = "refs/tags/${version}";
hash = "sha256-BpMjpdZ7kmHGJZSHggUN0NYhhAo+ludMZQYOMxeGnl8=";
hash = "sha256-ouMJ0wUH86J/Gy36DIKIEaQkNM7OHDgap9Y9dxd7ss4=";
};
patches = [

View File

@ -7,16 +7,16 @@
buildGoModule rec {
pname = "bearer";
version = "1.29.0";
version = "1.31.1";
src = fetchFromGitHub {
owner = "bearer";
repo = "bearer";
rev = "refs/tags/v${version}";
hash = "sha256-18kXDdkwT0bINpwQ5sG+ic0ZFJS/vBMidzo67/C/fbM=";
hash = "sha256-GjCb0b8wT1mfk8Od1r5U6+a3yUzliS1ExIYIV6vnUPs=";
};
vendorHash = "sha256-UbXKMeia6j5xARzO8GjRiDn6GGYz7gjEIdP8ylvJGT4=";
vendorHash = "sha256-QDtjB1h7mNBEpTwoQfex3c6oba/kztKlgQpbmNHvoz0=";
subPackages = [
"cmd/bearer"

View File

@ -17,7 +17,7 @@ let
inherit version;
src = fetchgit { inherit url rev sha256; };
nativeBuildInputs = [ pkg-config cpio python3 python3.pkgs.setuptools ];
buildInputs = [ elfutils gettext ];
buildInputs = [ elfutils gettext python3 ];
enableParallelBuilding = true;
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=deprecated-declarations" ]; # Needed with GCC 12
};

View File

@ -5,7 +5,7 @@ buildTileSet {
version = "2020-07-08";
src = fetchFromGitHub {
owner = "SomeDeadGuy";
owner = "jmz-b";
repo = "UndeadPeopleTileset";
rev = "f7f13b850fafe2261deee051f45d9c611a661534";
sha256 = "0r06srjr7rq51jk9yfyxz80nfgb98mkn86cbcjfxpibgbqvcp0zm";
@ -15,7 +15,7 @@ buildTileSet {
meta = with lib; {
description = "Cataclysm DDA tileset based on MSX++ tileset";
homepage = "https://github.com/SomeDeadGuy/UndeadPeopleTileset";
homepage = "https://github.com/jmz-b/UndeadPeopleTileset";
license = licenses.unfree;
maintainers = with maintainers; [ mnacamura ];
platforms = platforms.all;

File diff suppressed because it is too large Load Diff

View File

@ -1,83 +0,0 @@
{ lib, stdenv, writeScript, fetchurl, requireFile, unzip, clang, mono, which,
xorg, xdg-user-dirs }:
let
deps = import ./cdn-deps.nix { inherit fetchurl; };
linkDeps = writeScript "link-deps.sh" (lib.concatMapStringsSep "\n" (hash:
let prefix = lib.concatStrings (lib.take 2 (lib.stringToCharacters hash));
in ''
mkdir -p .git/ue4-gitdeps/${prefix}
ln -s ${lib.getAttr hash deps} .git/ue4-gitdeps/${prefix}/${hash}
''
) (lib.attrNames deps));
libPath = lib.makeLibraryPath [
xorg.libX11 xorg.libXScrnSaver xorg.libXau xorg.libXcursor xorg.libXext
xorg.libXfixes xorg.libXi xorg.libXrandr xorg.libXrender xorg.libXxf86vm
xorg.libxcb
];
in
stdenv.mkDerivation rec {
pname = "ue4";
version = "4.10.2";
sourceRoot = "UnrealEngine-${version}-release";
src = requireFile {
name = "${sourceRoot}.zip";
url = "https://github.com/EpicGames/UnrealEngine/releases/tag/${version}";
sha256 = "1rh6r2z00kjzq1i2235py65bg9i482az4rwr14kq9n4slr60wkk1";
};
unpackPhase = ''
${unzip}/bin/unzip $src
'';
configurePhase = ''
${linkDeps}
# Sometimes mono segfaults and things start downloading instead of being
# deterministic. Let's just fail in that case.
export http_proxy="nodownloads"
patchShebangs Setup.sh
patchShebangs Engine/Build/BatchFiles/Linux
./Setup.sh
./GenerateProjectFiles.sh
'';
installPhase = ''
mkdir -p $out/bin $out/share/UnrealEngine
sharedir="$out/share/UnrealEngine"
cat << EOF > $out/bin/UE4Editor
#! $SHELL -e
sharedir="$sharedir"
# Can't include spaces, so can't piggy-back off the other Unreal directory.
workdir="\$HOME/.config/unreal-engine-nix-workdir"
if [ ! -e "\$workdir" ]; then
mkdir -p "\$workdir"
${xorg.lndir}/bin/lndir "\$sharedir" "\$workdir"
unlink "\$workdir/Engine/Binaries/Linux/UE4Editor"
cp "\$sharedir/Engine/Binaries/Linux/UE4Editor" "\$workdir/Engine/Binaries/Linux/UE4Editor"
fi
cd "\$workdir/Engine/Binaries/Linux"
export PATH="${xdg-user-dirs}/bin\''${PATH:+:}\$PATH"
export LD_LIBRARY_PATH="${libPath}\''${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH"
exec ./UE4Editor "\$@"
EOF
chmod +x $out/bin/UE4Editor
cp -r . "$sharedir"
'';
buildInputs = [ clang mono which xdg-user-dirs ];
meta = {
description = "A suite of integrated tools for game developers to design and build games, simulations, and visualizations";
homepage = "https://www.unrealengine.com/what-is-unreal-engine-4";
license = lib.licenses.unfree;
platforms = lib.platforms.linux;
maintainers = [ ];
# See issue https://github.com/NixOS/nixpkgs/issues/17162
broken = true;
};
}

View File

@ -1,37 +0,0 @@
#!/bin/sh
go() {
file="$1"
IFS=$'\n'
for pack in $(perl -n -e '/(<Pack .*\/>)/ && print "$1\n"' $file); do
remotepath=$(echo "$pack" | perl -n -e '/RemotePath="([^"]*)"/ && print $1')
hash=$(echo "$pack" | perl -n -e '/Hash="([^"]*)"/ && print $1')
url="http://cdn.unrealengine.com/dependencies/$remotepath/$hash"
until sha256=$(nix-prefetch-url $url --type sha256); do
true
done
cat <<EOF
"$hash" = fetchurl {
url = $url;
sha256 = "$sha256";
};
EOF
done
}
cat <<EOF
{ fetchurl }:
{
EOF
go Engine/Build/Commit.gitdeps.xml
go Engine/Build/Promoted.gitdeps.xml
cat <<EOF
}
EOF

View File

@ -78,11 +78,11 @@ python3Packages.buildPythonApplication rec {
--replace '"sh"' '"${runtimeShell}"'
'';
meta = with lib; {
meta = {
description = "Waydroid is a container-based approach to boot a full Android system on a regular GNU/Linux system like Ubuntu";
homepage = "https://github.com/waydroid/waydroid";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ mcaju ];
license = lib.licenses.gpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ mcaju ];
};
}

View File

@ -2,14 +2,14 @@
python3.pkgs.buildPythonApplication rec {
pname = "headphones";
version = "0.6.0";
version = "0.6.1";
format = "other";
src = fetchFromGitHub {
owner = "rembo10";
repo = "headphones";
rev = "v${version}";
sha256 = "0wx0kj9brcd4i9fdc4hmp39cgr27qybya6bp108cfgfv9x7150iw";
sha256 = "1pj6xrcc6g336lb2knlc9l3qxgj3jaaymnbd7bmfjahgq5cp4d4v";
};
dontBuild = true;

View File

@ -7,11 +7,11 @@
stdenv.mkDerivation rec {
pname = "snappymail";
version = "2.29.2";
version = "2.29.4";
src = fetchurl {
url = "https://github.com/the-djmaze/snappymail/releases/download/v${version}/snappymail-${version}.tar.gz";
sha256 = "sha256-f7xjjYy7uPSgssEftXPrfEcNrU6OFlXgwoTTWXgHfUU=";
sha256 = "sha256-dWWwBee7pfYMo8trX9KnqNaMw+CZe8svj/pjmZnl/qo=";
};
sourceRoot = "snappymail";

View File

@ -3,9 +3,9 @@
, fetchFromGitHub
, fetchYarnDeps
, makeWrapper
, prefetch-yarn-deps
, nodejs
, yarn
, yarn2nix-moretea
, nixosTests
}:
@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
hash = "sha256-t1m9pKsM9E2iAg9vv/nKmQioRi6kMjFGcTXzcT3cMxs=";
};
nativeBuildInputs = [ makeWrapper yarn2nix-moretea.fixup_yarn_lock ];
nativeBuildInputs = [ makeWrapper prefetch-yarn-deps ];
buildInputs = [ yarn nodejs ];
yarnOfflineCache = fetchYarnDeps {
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
export NODE_OPTIONS=--openssl-legacy-provider
yarn config --offline set yarn-offline-mirror $yarnOfflineCache
fixup_yarn_lock yarn.lock
fixup-yarn-lock yarn.lock
yarn install --offline \
--frozen-lockfile \

View File

@ -2,13 +2,13 @@
buildGoModule rec {
pname = "wander";
version = "0.11.2";
version = "0.12.6";
src = fetchFromGitHub {
owner = "robinovitch61";
repo = pname;
rev = "v${version}";
sha256 = "sha256-zAvPtTUrSHeIMy9MgJviyMvMJ0Ny5Nkx6oLwWPSc9bE=";
sha256 = "sha256-DYlbMdh5vgf3PjHVRU7F31upOe4QX5t2D3YdR3e736I=";
};
vendorHash = "sha256-SqDGXV8MpvEQFAkcE1NWvWjdzYsvbO5vA6k+hpY0js0=";

View File

@ -32,6 +32,7 @@ python3.pkgs.buildPythonApplication rec {
nativeBuildInputs = with python3.pkgs; [
pythonRelaxDepsHook
setuptools
setuptools-scm
wheel
];
@ -61,7 +62,6 @@ python3.pkgs.buildPythonApplication rec {
nativeCheckInputs = with python3.pkgs; [
mock
pytestCheckHook
setuptools-scm
];
preCheck = ''

View File

@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub, stdenv }:
{ clang_15, lib, rustPlatform, fetchFromGitHub, stdenv }:
rustPlatform.buildRustPackage rec {
pname = "qrscan";
@ -12,7 +12,9 @@ rustPlatform.buildRustPackage rec {
};
nativeBuildInputs = [
rustPlatform.bindgenHook
(rustPlatform.bindgenHook.overrideAttrs {
libclang = clang_15.cc.lib;
})
];
cargoHash = "sha256-P40IwFRtEQp6BGRgmt1x3UXtAKtWaMjR3kqhYq+p7wQ=";

View File

@ -20,9 +20,12 @@ stdenv.mkDerivation rec {
file from a PFA or PFB font.
'';
homepage = "https://www.lcdf.org/type/";
# README from tarball says "BSD-like" and points to non-existing LICENSE
# file...
license = "Click"; # MIT with extra clause, https://github.com/kohler/t1utils/blob/master/LICENSE
license = {
shortName = "Click"; # README.md says BSD-like, see LICENSE
url = "https://github.com/kohler/t1utils/blob/master/LICENSE";
free = true;
redistributable = true;
};
platforms = platforms.all;
maintainers = [ maintainers.bjornfor ];
};

View File

@ -9,13 +9,13 @@
buildGoModule rec {
pname = "tbls";
version = "1.71.0";
version = "1.72.0";
src = fetchFromGitHub {
owner = "k1LoW";
repo = "tbls";
rev = "v${version}";
hash = "sha256-cV5t4gNhPODGzJoLZdft6/9gBBVio50BJKYEI24a8qg=";
hash = "sha256-FxG8vTbBMgFa+z1/8+ci7UxOfU88JynenZfVBh+0UPM=";
};
vendorHash = "sha256-1w1pQyHTuEJ1w01lJIZhXuEArFigjoFKGvi0cpFd8m0=";

View File

@ -64,6 +64,7 @@ in buildGoModule rec {
"process"
"log"
"secrets"
"zlib"
]
++ lib.optionals withSystemd [ "systemd" ]
++ extraTags;

View File

@ -5,16 +5,16 @@
buildGoModule rec {
pname = "muffet";
version = "2.9.2";
version = "2.9.3";
src = fetchFromGitHub {
owner = "raviqqe";
repo = "muffet";
rev = "v${version}";
hash = "sha256-M+yId2cNTO1n+E0UmMJK7aLmeDdXnI3McqTxL5EvB+A=";
hash = "sha256-w9PoKGxZdP/sKdlTlnWBMqDPDLUvcYubkCyNHUm3AAc=";
};
vendorHash = "sha256-NTQlhLlSPh9+Il08T9I2qc+BqIo9RniOFG9Dgeez1QA=";
vendorHash = "sha256-2an4xj1gqQqj9NrSdTAss7hn6SiWoiq3RQ2xxUlSuaE=";
meta = with lib; {
description = "A website link checker which scrapes and inspects all pages in a website recursively";

View File

@ -89,7 +89,7 @@ buildGoModule rec {
'')
modules) + lib.optionalString (stdenv.isLinux && ui) ''
mkdir -p $out/share/pixmaps
cp $src/client/ui/disconnected.png $out/share/pixmaps/netbird.png
cp $src/client/ui/netbird-systemtray-default.png $out/share/pixmaps/netbird.png
mkdir -p $out/share/applications
cp $src/client/ui/netbird.desktop $out/share/applications/netbird.desktop

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