Merge master into haskell-updates
This commit is contained in:
commit
2b224e812b
148 changed files with 3069 additions and 730 deletions
|
@ -5622,6 +5622,12 @@
|
|||
githubId = 2147649;
|
||||
name = "Euan Kemp";
|
||||
};
|
||||
eureka-cpu = {
|
||||
email = "github.eureka@gmail.com";
|
||||
github = "eureka-cpu";
|
||||
githubId = 57543709;
|
||||
name = "Chris O'Brien";
|
||||
};
|
||||
evalexpr = {
|
||||
name = "Jonathan Wilkins";
|
||||
email = "nixos@wilkins.tech";
|
||||
|
|
|
@ -35,6 +35,12 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
|
|||
- `services.avahi.nssmdns` got split into `services.avahi.nssmdns4` and `services.avahi.nssmdns6` which enable the mDNS NSS switch for IPv4 and IPv6 respectively.
|
||||
Since most mDNS responders only register IPv4 addresses, most users want to keep the IPv6 support disabled to avoid long timeouts.
|
||||
|
||||
- `networking.iproute2.enable` now does not set `environment.etc."iproute2/rt_tables".text`.
|
||||
|
||||
Setting `environment.etc."iproute2/{CONFIG_FILE_NAME}".text` will override the whole configuration file instead of appending it to the upstream configuration file.
|
||||
|
||||
`CONFIG_FILE_NAME` includes `bpf_pinning`, `ematch_map`, `group`, `nl_protos`, `rt_dsfield`, `rt_protos`, `rt_realms`, `rt_scopes`, and `rt_tables`.
|
||||
|
||||
## Other Notable Changes {#sec-release-24.05-notable-changes}
|
||||
|
||||
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
|
||||
|
@ -57,6 +63,10 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
|
|||
existing process, but will need to start that process from gdb (so it is a
|
||||
child). Or you can set `boot.kernel.sysctl."kernel.yama.ptrace_scope"` to 0.
|
||||
|
||||
- [Nginx virtual hosts](#opt-services.nginx.virtualHosts) using `forceSSL` or
|
||||
`globalRedirect` can now have redirect codes other than 301 through
|
||||
`redirectCode`.
|
||||
|
||||
- Gitea 1.21 upgrade has several breaking changes, including:
|
||||
- Custom themes and other assets that were previously stored in `custom/public/*` now belong in `custom/public/assets/*`
|
||||
- New instances of Gitea using MySQL now ignore the `[database].CHARSET` config option and always use the `utf8mb4` charset, existing instances should migrate via the `gitea doctor convert` CLI command.
|
||||
|
|
|
@ -18,10 +18,9 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.etc."iproute2/rt_tables" = {
|
||||
environment.etc."iproute2/rt_tables.d/nixos.conf" = {
|
||||
mode = "0644";
|
||||
text = (fileContents "${pkgs.iproute2}/lib/iproute2/rt_tables")
|
||||
+ (optionalString (cfg.rttablesExtraConfig != "") "\n\n${cfg.rttablesExtraConfig}");
|
||||
text = cfg.rttablesExtraConfig;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ in {
|
|||
services.dbus.packages = [ pkgs.flatpak ];
|
||||
|
||||
systemd.packages = [ pkgs.flatpak ];
|
||||
systemd.tmpfiles.packages = [ pkgs.flatpak ];
|
||||
|
||||
environment.profiles = [
|
||||
"$HOME/.local/share/flatpak/exports"
|
||||
|
|
|
@ -377,7 +377,7 @@ let
|
|||
server_name ${vhost.serverName} ${concatStringsSep " " vhost.serverAliases};
|
||||
${acmeLocation}
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
return ${toString vhost.redirectCode} https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
''}
|
||||
|
@ -396,7 +396,7 @@ let
|
|||
${optionalString (vhost.root != null) "root ${vhost.root};"}
|
||||
${optionalString (vhost.globalRedirect != null) ''
|
||||
location / {
|
||||
return 301 http${optionalString hasSSL "s"}://${vhost.globalRedirect}$request_uri;
|
||||
return ${toString vhost.redirectCode} http${optionalString hasSSL "s"}://${vhost.globalRedirect}$request_uri;
|
||||
}
|
||||
''}
|
||||
${optionalString hasSSL ''
|
||||
|
|
|
@ -162,10 +162,11 @@ with lib;
|
|||
type = types.bool;
|
||||
default = false;
|
||||
description = lib.mdDoc ''
|
||||
Whether to add a separate nginx server block that permanently redirects (301)
|
||||
all plain HTTP traffic to HTTPS. This will set defaults for
|
||||
`listen` to listen on all interfaces on the respective default
|
||||
ports (80, 443), where the non-SSL listens are used for the redirect vhosts.
|
||||
Whether to add a separate nginx server block that redirects (defaults
|
||||
to 301, configurable with `redirectCode`) all plain HTTP traffic to
|
||||
HTTPS. This will set defaults for `listen` to listen on all interfaces
|
||||
on the respective default ports (80, 443), where the non-SSL listens
|
||||
are used for the redirect vhosts.
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -307,8 +308,20 @@ with lib;
|
|||
default = null;
|
||||
example = "newserver.example.org";
|
||||
description = lib.mdDoc ''
|
||||
If set, all requests for this host are redirected permanently to
|
||||
the given hostname.
|
||||
If set, all requests for this host are redirected (defaults to 301,
|
||||
configurable with `redirectCode`) to the given hostname.
|
||||
'';
|
||||
};
|
||||
|
||||
redirectCode = mkOption {
|
||||
type = types.ints.between 300 399;
|
||||
default = 301;
|
||||
example = 308;
|
||||
description = lib.mdDoc ''
|
||||
HTTP status used by `globalRedirect` and `forceSSL`. Possible usecases
|
||||
include temporary (302, 307) redirects, keeping the request method and
|
||||
body (307, 308), or explicitly resetting the method to GET (303).
|
||||
See <https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections>.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -583,6 +583,7 @@ in {
|
|||
nginx-njs = handleTest ./nginx-njs.nix {};
|
||||
nginx-proxyprotocol = handleTest ./nginx-proxyprotocol {};
|
||||
nginx-pubhtml = handleTest ./nginx-pubhtml.nix {};
|
||||
nginx-redirectcode = handleTest ./nginx-redirectcode.nix {};
|
||||
nginx-sso = handleTest ./nginx-sso.nix {};
|
||||
nginx-status-page = handleTest ./nginx-status-page.nix {};
|
||||
nginx-tmpdir = handleTest ./nginx-tmpdir.nix {};
|
||||
|
|
|
@ -7,6 +7,7 @@ makeInstalledTest {
|
|||
testConfig = {
|
||||
xdg.portal.enable = true;
|
||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||
xdg.portal.config.common.default = "gtk";
|
||||
services.flatpak.enable = true;
|
||||
environment.systemPackages = with pkgs; [ gnupg ostree python3 ];
|
||||
virtualisation.memorySize = 2047;
|
||||
|
|
25
nixos/tests/nginx-redirectcode.nix
Normal file
25
nixos/tests/nginx-redirectcode.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
||||
name = "nginx-redirectcode";
|
||||
meta.maintainers = with lib.maintainers; [ misterio77 ];
|
||||
|
||||
nodes = {
|
||||
webserver = { pkgs, lib, ... }: {
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts.localhost = {
|
||||
globalRedirect = "example.com/foo";
|
||||
# With 308 (and 307), the method and body are to be kept when following it
|
||||
redirectCode = 308;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
webserver.wait_for_unit("nginx")
|
||||
webserver.wait_for_open_port(80)
|
||||
|
||||
# Check the status code
|
||||
webserver.succeed("curl -si http://localhost | grep '^HTTP/[0-9.]\+ 308 Permanent Redirect'")
|
||||
'';
|
||||
})
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config
|
||||
, libjack2, alsa-lib, freetype, libX11, libXrandr, libXinerama, libXext, libXcursor
|
||||
}:
|
||||
|
||||
|
@ -38,6 +38,14 @@ in stdenv.mkDerivation rec {
|
|||
sha256 = "06y1h895yxh44gp4vxzrna59lf7nlfw7aacd3kk4l1g56jhy9pdx";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "fix-gcc-11-build.patch";
|
||||
url = "https://github.com/robbert-vdh/diopser/commit/a7284439bd4e23455132e7806a214f9db12efae9.patch";
|
||||
hash = "sha256-r3yxhnhPUQ47srhfAKeurpe2xyEBdSvqIbgqs9/6gD4=";
|
||||
})
|
||||
];
|
||||
|
||||
postUnpack = ''
|
||||
(
|
||||
cd "$sourceRoot"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
let
|
||||
pname = "erigon";
|
||||
version = "2.54.0";
|
||||
version = "2.55.1";
|
||||
in
|
||||
buildGoModule {
|
||||
inherit pname version;
|
||||
|
@ -11,11 +11,11 @@ buildGoModule {
|
|||
owner = "ledgerwatch";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-1kgbIg/3SvVT83UfwAYUixs1RQk4PP1quiOcI1mzbZ0=";
|
||||
hash = "sha256-ttBJIx2QR3H5JFyquoGwZpWwT10r7X7GnGE4uEzuRZA=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
vendorHash = "sha256-Gr9mrME8/ZDxp2ORKessNhfguklDf+jC4RSpzLOSBhQ=";
|
||||
vendorHash = "sha256-QLuWxec1gwMnVo0Zw8z4Ef8vzxc4xFpLL/TT986Sljo=";
|
||||
proxyVendor = true;
|
||||
|
||||
# Build errors in mdbx when format hardening is enabled:
|
||||
|
|
|
@ -30,6 +30,7 @@ stdenv.mkDerivation rec {
|
|||
description = "A general purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ pacien ];
|
||||
mainProgram = "howl";
|
||||
|
||||
# LuaJIT and Howl builds fail for x86_64-darwin and aarch64-linux respectively
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
|
|
|
@ -37,6 +37,7 @@ mkDerivation rec {
|
|||
description = "Neovim client library and GUI, in Qt5";
|
||||
homepage = "https://github.com/equalsraf/neovim-qt";
|
||||
license = licenses.isc;
|
||||
mainProgram = "nvim-qt";
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
inherit (neovim.meta) platforms;
|
||||
};
|
||||
|
|
|
@ -49,13 +49,13 @@ in
|
|||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "imagemagick";
|
||||
version = "7.1.1-21";
|
||||
version = "7.1.1-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ImageMagick";
|
||||
repo = "ImageMagick";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-DqVonNh6bFNK91Pd6MwIO1yMrshfGAWNWPpHHQUA2sQ=";
|
||||
hash = "sha256-ytDMCZN+vavOtiPju5z87nJmSafRTt1gGycZtl3seGI=";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
{ lib, stdenv
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitLab
|
||||
, alsa-lib
|
||||
, bzip2
|
||||
, fftw
|
||||
, freeglut
|
||||
, freetype
|
||||
, glew
|
||||
, libjack2
|
||||
, libGL
|
||||
, libGLU
|
||||
, libjpeg
|
||||
, liblo
|
||||
, libpng
|
||||
, libsndfile
|
||||
, libtiff
|
||||
, ode
|
||||
|
@ -19,12 +16,11 @@
|
|||
, openssl
|
||||
, racket_7_9
|
||||
, scons
|
||||
, zlib
|
||||
}:
|
||||
let
|
||||
racket = racket_7_9;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation {
|
||||
pname = "fluxus";
|
||||
version = "0.19";
|
||||
src = fetchFromGitLab {
|
||||
|
@ -53,6 +49,10 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ scons ];
|
||||
|
||||
patches = [ ./fix-build.patch ];
|
||||
postPatch = ''
|
||||
substituteInPlace src/Unicode.cpp \
|
||||
--replace "(byte)" "(unsigned char)"
|
||||
'';
|
||||
sconsFlags = [
|
||||
"RacketPrefix=${racket}"
|
||||
"RacketInclude=${racket}/include/racket"
|
||||
|
@ -72,6 +72,6 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.gpl2;
|
||||
homepage = "http://www.pawfal.org/fluxus/";
|
||||
maintainers = [ maintainers.brainrape ];
|
||||
broken = true;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -153,5 +153,6 @@ perlPackages.buildPerlPackage rec {
|
|||
homepage = "https://gscan2pdf.sourceforge.net/";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ pacien ];
|
||||
mainProgram = "gscan2pdf";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,59 +4,59 @@
|
|||
|
||||
{
|
||||
agenda = {
|
||||
version = "0.5.1";
|
||||
version = "0.5.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/agenda/0.5.1/agenda-0.5.1.tar.xz";
|
||||
sha256 = "1c45fnlg15pjd3ljmm3w2jcrq94jirrykpq1xrvgfbv5d50796x7";
|
||||
name = "agenda-0.5.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/agenda/0.5.2/agenda-0.5.2.tar.xz";
|
||||
sha256 = "160y0pq3mj72wxyfnnl45488j4kpl26xpf83vlnfshiwvc6c0m3y";
|
||||
name = "agenda-0.5.2.tar.xz";
|
||||
};
|
||||
};
|
||||
arca = {
|
||||
version = "0.5.1";
|
||||
version = "0.5.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/arca/0.5.1/arca-0.5.1.tar.xz";
|
||||
sha256 = "0irbc1ysnia5wp398ddijad77qg7gd076fkm972wgk4pmqnm0rcz";
|
||||
name = "arca-0.5.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/arca/0.5.2/arca-0.5.2.tar.xz";
|
||||
sha256 = "0l0x24m55hc20yc40yjj0zx910yzh31qn911swdli39iy4c6mxk2";
|
||||
name = "arca-0.5.2.tar.xz";
|
||||
};
|
||||
};
|
||||
bonsai = {
|
||||
version = "2.2.0";
|
||||
version = "1.1.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/bonsai/1.0.0/bonsai-2.2.0.tar.xz";
|
||||
sha256 = "0gpqdj30brqv9nsiis93w9lad4xn7d301gxncj04pcpybmbksg4r";
|
||||
name = "bonsai-2.2.0.tar.xz";
|
||||
url = "${mirror}/stable/maui/bonsai/1.1.2/bonsai-1.1.2.tar.xz";
|
||||
sha256 = "0nzp0ixxap3q1llv42l71rygxv98hvcmqwqdw7690w650hja7zvj";
|
||||
name = "bonsai-1.1.2.tar.xz";
|
||||
};
|
||||
};
|
||||
booth = {
|
||||
version = "1.1.1";
|
||||
version = "1.1.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/booth/1.1.1/booth-1.1.1.tar.xz";
|
||||
sha256 = "1s3h083qbjjj5dmm27vc66vx0mzgpl4klhi9cc07z3apjldf1si0";
|
||||
name = "booth-1.1.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/booth/1.1.2/booth-1.1.2.tar.xz";
|
||||
sha256 = "06gg4zgpn8arnzmi54x7xbdg5wyc3a86v9z5x6y101imh6cwbhyw";
|
||||
name = "booth-1.1.2.tar.xz";
|
||||
};
|
||||
};
|
||||
buho = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/buho/3.0.1/buho-3.0.1.tar.xz";
|
||||
sha256 = "0favgdwnb8gvmpisq58bmjvnajzgdk886z5m07vz4mfj7ipjjzbv";
|
||||
name = "buho-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/buho/3.0.2/buho-3.0.2.tar.xz";
|
||||
sha256 = "0sllffddngzxc2wi2wszjxzb75rca0a42bdylm7pxmr5p8mafn1l";
|
||||
name = "buho-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
clip = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/clip/3.0.1/clip-3.0.1.tar.xz";
|
||||
sha256 = "1acjnam8ljc6mw7xbphh99li9437kqlmdb258j7w3vgnqh2psipx";
|
||||
name = "clip-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/clip/3.0.2/clip-3.0.2.tar.xz";
|
||||
sha256 = "0pjqk1l1cwkvwrlv1lb113cl8kggppxqhdsild83wrzbfqx9nrva";
|
||||
name = "clip-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
communicator = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/communicator/3.0.1/communicator-3.0.1.tar.xz";
|
||||
sha256 = "1j4yaw8w1hyvndra881r70ayz4ph00w41hhysqhgccxr36abcncl";
|
||||
name = "communicator-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/communicator/3.0.2/communicator-3.0.2.tar.xz";
|
||||
sha256 = "0hmapwsgrlaiwvprpmllfy943w0sclnk4vg7sb6rys1i96f3yz6r";
|
||||
name = "communicator-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
era = {
|
||||
|
@ -68,139 +68,139 @@
|
|||
};
|
||||
};
|
||||
fiery = {
|
||||
version = "1.1.1";
|
||||
version = "1.1.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/fiery/1.1.1/fiery-1.1.1.tar.xz";
|
||||
sha256 = "03aszdvksx5bsrh479wl6vq28l026ddfv8p9privigjpcdbbaslk";
|
||||
name = "fiery-1.1.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/fiery/1.1.2/fiery-1.1.2.tar.xz";
|
||||
sha256 = "0ba3bxhvfzkpwrrnfyhbvprlhdv2vmgmi41lpq2pian0d3nkc05s";
|
||||
name = "fiery-1.1.2.tar.xz";
|
||||
};
|
||||
};
|
||||
index-fm = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/index/3.0.1/index-fm-3.0.1.tar.xz";
|
||||
sha256 = "046in0bqblpqcxp4rz417pjpy1m57p611wlzdsw8hp4dl1l2qmn9";
|
||||
name = "index-fm-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/index/3.0.2/index-fm-3.0.2.tar.xz";
|
||||
sha256 = "08ncjliqzx71scmfxl3h24w9s8dgrp6gd7nf6pczyn5arqf96d81";
|
||||
name = "index-fm-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
mauikit = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/mauikit/3.0.1/mauikit-3.0.1.tar.xz";
|
||||
sha256 = "0vlxs13k3wk2kk3jcxrdmpa3d9gblvzp22sqqd7nys6kilq8kzdb";
|
||||
name = "mauikit-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/mauikit/3.0.2/mauikit-3.0.2.tar.xz";
|
||||
sha256 = "19317xfbyy3cg9nm1dqknvypsj9kq8phz36srwvwfyxd26kaqs2s";
|
||||
name = "mauikit-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
mauikit-accounts = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/mauikit-accounts/3.0.1/mauikit-accounts-3.0.1.tar.xz";
|
||||
sha256 = "1b6nmnh5fh6gis7r56s41204g9y7cp5g2qmsk0r6b3a3x0ndwmqj";
|
||||
name = "mauikit-accounts-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/mauikit-accounts/3.0.2/mauikit-accounts-3.0.2.tar.xz";
|
||||
sha256 = "1h876vz9vfyl44pryhf5s4lkzik00zwhjvyrv7f4b1zwjz3xbqai";
|
||||
name = "mauikit-accounts-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
mauikit-calendar = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/mauikit-calendar/3.0.1/mauikit-calendar-3.0.1.tar.xz";
|
||||
sha256 = "1s95nkbyc4k8999hsnr5aw80qhr66q4z51wq2ail3h0df7p1f700";
|
||||
name = "mauikit-calendar-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/mauikit-calendar/3.0.2/mauikit-calendar-3.0.2.tar.xz";
|
||||
sha256 = "098d2alw1dnhpqwkdy0wrl6cvanyb6vg8qy5aqmgmsk0hil1s8x1";
|
||||
name = "mauikit-calendar-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
mauikit-documents = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/mauikit-documents/3.0.1/mauikit-documents-3.0.1.tar.xz";
|
||||
sha256 = "1w2dszggxbqla5ab3739l1j79l2qa3br8drvkidivir8vwxifj3v";
|
||||
name = "mauikit-documents-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/mauikit-documents/3.0.2/mauikit-documents-3.0.2.tar.xz";
|
||||
sha256 = "1ln8nk6n2wcqdjd4l5pzam9291rx52mal7rdxs06f6fwszwifhyr";
|
||||
name = "mauikit-documents-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
mauikit-filebrowsing = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/mauikit-filebrowsing/3.0.1/mauikit-filebrowsing-3.0.1.tar.xz";
|
||||
sha256 = "0z8070p1m2c2mv3xdhsz4scnasbwxf698mql0svqzmjiy8vjfnn2";
|
||||
name = "mauikit-filebrowsing-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/mauikit-filebrowsing/3.0.2/mauikit-filebrowsing-3.0.2.tar.xz";
|
||||
sha256 = "03dcmpw8l19mziswhhsvyiiid07qx0c4ddh8986llsz6xngdnlib";
|
||||
name = "mauikit-filebrowsing-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
mauikit-imagetools = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/mauikit-imagetools/3.0.1/mauikit-imagetools-3.0.1.tar.xz";
|
||||
sha256 = "0aayhmmk6bd3n5p1mgm9k1jycsw8li5fs1xq7x42h93zhvxcw1va";
|
||||
name = "mauikit-imagetools-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/mauikit-imagetools/3.0.2/mauikit-imagetools-3.0.2.tar.xz";
|
||||
sha256 = "1xryms7mc3lq8p67m2h3cxffyd9dk8m738ap30aq9ym62qq76psl";
|
||||
name = "mauikit-imagetools-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
mauikit-terminal = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/mauikit-terminal/3.0.1/mauikit-terminal-3.0.1.tar.xz";
|
||||
sha256 = "1w7d04cdq2b4mkjl7ngj1v580dlhrpvr1n0gy5jcfv6x4ia3g8k3";
|
||||
name = "mauikit-terminal-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/mauikit-terminal/3.0.2/mauikit-terminal-3.0.2.tar.xz";
|
||||
sha256 = "0abywv56ljxbmsi5y3x9agbgbhvscnkznja9adwjj073pavvaf1g";
|
||||
name = "mauikit-terminal-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
mauikit-texteditor = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/mauikit-texteditor/3.0.1/mauikit-texteditor-3.0.1.tar.xz";
|
||||
sha256 = "063zxzc530zgamr6fm5brm2rqpmq4rx4wsq7cx7sxfgyknag52m6";
|
||||
name = "mauikit-texteditor-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/mauikit-texteditor/3.0.2/mauikit-texteditor-3.0.2.tar.xz";
|
||||
sha256 = "09wdvjy8c0b5lka0fj28kl99w5y3w0nvz2mnr3ic5kn825ay1wmy";
|
||||
name = "mauikit-texteditor-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
mauiman = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/mauiman/3.0.1/mauiman-3.0.1.tar.xz";
|
||||
sha256 = "0nygvb0nixcidla94xhwa4rrdwi3r2kcq62m9a3sabpl0z22mppq";
|
||||
name = "mauiman-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/mauiman/3.0.2/mauiman-3.0.2.tar.xz";
|
||||
sha256 = "0aqzgdkcs6cdlsbsyiyhadambcwwa0xj2q2yj5hv5d42q25ibfs1";
|
||||
name = "mauiman-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
nota = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/nota/3.0.1/nota-3.0.1.tar.xz";
|
||||
sha256 = "1ynnpkwjmj9xx5xzlz32y0k6mcrz2y50z1s4lq5kshiwa3vbjn61";
|
||||
name = "nota-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/nota/3.0.2/nota-3.0.2.tar.xz";
|
||||
sha256 = "11lqdxwsdvf1vz9y1d9r38vxfsz4jfnin3c1ipsvjl0f0zn1glr6";
|
||||
name = "nota-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
pix = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/pix/3.0.1/pix-3.0.1.tar.xz";
|
||||
sha256 = "1c1fz21x324r606ab7qsnbqpz3xvc4b6794xbf7vm6p7cfsgkdq7";
|
||||
name = "pix-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/pix/3.0.2/pix-3.0.2.tar.xz";
|
||||
sha256 = "0wlpqqbf4j7dlylxhfixrcjz0yz9csni4vnbqv9l5vkxxwf0mq4k";
|
||||
name = "pix-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
shelf = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/shelf/3.0.1/shelf-3.0.1.tar.xz";
|
||||
sha256 = "02qg37qpfccan3n87pbq3i7zyl22g32ipr8smbdcpwdyhxz1v00q";
|
||||
name = "shelf-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/shelf/3.0.2/shelf-3.0.2.tar.xz";
|
||||
sha256 = "1x27grdn9qa7ysxh4fb35h5376crpbl39vpd6hn0a7c3fk74w95q";
|
||||
name = "shelf-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
station = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/station/3.0.1/station-3.0.1.tar.xz";
|
||||
sha256 = "11nbhax5xxrypy6ly5i609yvg7n754fhwjdpbf8c5c8j7285lnbz";
|
||||
name = "station-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/station/3.0.2/station-3.0.2.tar.xz";
|
||||
sha256 = "14i4z5lkj2rg7p5nkglqpzvrrxmf7b07kf49hh1jdk08753abc76";
|
||||
name = "station-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
strike = {
|
||||
version = "2.2.0";
|
||||
version = "1.1.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/strike/1.0.0/strike-2.2.0.tar.xz";
|
||||
sha256 = "159l1i0mi3q5avcg45aq5ixz8wjfryhip61h9gynxr1m77qdpfnc";
|
||||
name = "strike-2.2.0.tar.xz";
|
||||
url = "${mirror}/stable/maui/strike/1.1.2/strike-1.1.2.tar.xz";
|
||||
sha256 = "01ak3h6n0z3l346nbzfabkgbzwbx1fm3l9g7myiip4518cb2n559";
|
||||
name = "strike-1.1.2.tar.xz";
|
||||
};
|
||||
};
|
||||
vvave = {
|
||||
version = "3.0.1";
|
||||
version = "3.0.2";
|
||||
src = fetchurl {
|
||||
url = "${mirror}/stable/maui/vvave/3.0.1/vvave-3.0.1.tar.xz";
|
||||
sha256 = "0z7y27sdwcpxh0jr8k0h17rk0smljvky28ck741ysxqdv992bbk9";
|
||||
name = "vvave-3.0.1.tar.xz";
|
||||
url = "${mirror}/stable/maui/vvave/3.0.2/vvave-3.0.2.tar.xz";
|
||||
sha256 = "1py46ryi57757wyqfvxc2h02x33n11g1v04f0hac0zkjilp5l21k";
|
||||
name = "vvave-3.0.2.tar.xz";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
||||
, gtest, fmt
|
||||
, cmake, ninja, installShellFiles
|
||||
}:
|
||||
|
@ -20,6 +20,13 @@ stdenv.mkDerivation rec {
|
|||
popd
|
||||
'';
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ericwa/ericw-tools/commit/c9570260fa895dde5a21272d76f9a3b05d59efdd.patch";
|
||||
hash = "sha256-dZr2LWuJBAIT//XHXYEz2vhaK2mxtxkSJ4IQla8OXKI=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ninja installShellFiles ];
|
||||
|
||||
outputs = [ "out" "doc" "man" ];
|
||||
|
@ -44,5 +51,6 @@ stdenv.mkDerivation rec {
|
|||
description = "Map compile tools for Quake and Hexen 2";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ astro ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -60,7 +60,5 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ foo-dogsquared ];
|
||||
# never built on aarch64-linux since first introduction in nixpkgs
|
||||
broken = stdenv.isLinux && stdenv.isAarch64;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
{ lib, stdenv, fetchurl, db, gtk2, bzip2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "jigdo";
|
||||
version = "0.7.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://ftp.de.debian.org/debian/pool/main/j/jigdo/jigdo_${version}.orig.tar.gz";
|
||||
sha256 = "1qvqzgzb0dzq82fa1ffs6hyij655rajnfwkljk1y0mnkygnha1xv";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchurl {
|
||||
url = "http://ftp.de.debian.org/debian/pool/main/j/jigdo/jigdo_0.7.3-4.diff.gz";
|
||||
sha256 = "03zsh57fijciiv23lf55k6fbfhhzm866xjhx83x54v5s1g2h6m8y";
|
||||
})
|
||||
./sizewidth.patch
|
||||
];
|
||||
|
||||
buildInputs = [ db gtk2 bzip2 ];
|
||||
|
||||
configureFlags = [ "--without-libdb" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Download utility that can fetch files from several sources simultaneously";
|
||||
homepage = "http://atterer.org/jigdo/";
|
||||
license = licenses.gpl2Only;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
diff --git i/src/mkimage.cc w/src/mkimage.cc
|
||||
index 02e65b1..b263796 100755
|
||||
--- i/src/mkimage.cc
|
||||
+++ w/src/mkimage.cc
|
||||
@@ -285,27 +285,27 @@ bostream& JigdoDescVec::put(bostream& file, MD5Sum* md) const {
|
||||
//______________________________________________________________________
|
||||
|
||||
namespace {
|
||||
- const int SIZE_WIDTH = 12;
|
||||
+ const int MKIMAGE_SIZE_WIDTH = 12;
|
||||
}
|
||||
|
||||
ostream& JigdoDesc::ImageInfo::put(ostream& s) const {
|
||||
- s << "image-info " << setw(SIZE_WIDTH) << size() << " "
|
||||
+ s << "image-info " << setw(MKIMAGE_SIZE_WIDTH) << size() << " "
|
||||
<< md5() << ' ' << blockLength() << '\n';
|
||||
return s;
|
||||
}
|
||||
ostream& JigdoDesc::UnmatchedData::put(ostream& s) const {
|
||||
- s << "in-template " << setw(SIZE_WIDTH) << offset() << ' '
|
||||
- << setw(SIZE_WIDTH) << size() << '\n';
|
||||
+ s << "in-template " << setw(MKIMAGE_SIZE_WIDTH) << offset() << ' '
|
||||
+ << setw(MKIMAGE_SIZE_WIDTH) << size() << '\n';
|
||||
return s;
|
||||
}
|
||||
ostream& JigdoDesc::MatchedFile::put(ostream& s) const {
|
||||
- s << "need-file " << setw(SIZE_WIDTH) << offset() << ' '
|
||||
- << setw(SIZE_WIDTH) << size() << ' ' << md5() << ' ' << rsync() << '\n';
|
||||
+ s << "need-file " << setw(MKIMAGE_SIZE_WIDTH) << offset() << ' '
|
||||
+ << setw(MKIMAGE_SIZE_WIDTH) << size() << ' ' << md5() << ' ' << rsync() << '\n';
|
||||
return s;
|
||||
}
|
||||
ostream& JigdoDesc::WrittenFile::put(ostream& s) const {
|
||||
- s << "have-file " << setw(SIZE_WIDTH) << offset() << ' '
|
||||
- << setw(SIZE_WIDTH) << size() << ' ' << md5() << ' ' << rsync() << '\n';
|
||||
+ s << "have-file " << setw(MKIMAGE_SIZE_WIDTH) << offset() << ' '
|
||||
+ << setw(MKIMAGE_SIZE_WIDTH) << size() << ' ' << md5() << ' ' << rsync() << '\n';
|
||||
return s;
|
||||
}
|
||||
|
|
@ -14,11 +14,11 @@ stdenv.mkDerivation (finalAttrs: let
|
|||
|
||||
in {
|
||||
pname = "logseq";
|
||||
version = "0.10.0";
|
||||
version = "0.10.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/logseq/logseq/releases/download/${version}/logseq-linux-x64-${version}.AppImage";
|
||||
hash = "sha256-igZM+kNe1GDPYckXU6fOjyovHe9gwyBWr7Mc3BxAzOA=";
|
||||
hash = "sha256-jDIfOHGki4InGuLvsnxdd2/FMPbT3VyuHtPxA4r3s5c=";
|
||||
name = "${pname}-${version}.AppImage";
|
||||
};
|
||||
|
||||
|
|
|
@ -39,5 +39,6 @@ python3.pkgs.buildPythonApplication rec {
|
|||
changelog = "https://github.com/firecat53/urlscan/releases/tag/${version}";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ dpaetzel ];
|
||||
mainProgram = "urlscan";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -176,7 +176,7 @@ let
|
|||
|
||||
|
||||
base = rec {
|
||||
pname = "${packageName}-unwrapped";
|
||||
pname = "${lib.optionalString ungoogled "ungoogled-"}${packageName}-unwrapped";
|
||||
inherit (upstream-info) version;
|
||||
inherit packageName buildType buildPath;
|
||||
|
||||
|
@ -237,7 +237,7 @@ let
|
|||
++ lib.optional pulseSupport libpulseaudio;
|
||||
|
||||
patches = [
|
||||
./cross-compile.patch
|
||||
./patches/cross-compile.patch
|
||||
# Optional patch to use SOURCE_DATE_EPOCH in compute_build_timestamp.py (should be upstreamed):
|
||||
./patches/no-build-timestamps.patch
|
||||
# For bundling Widevine (DRM), might be replaceable via bundle_widevine_cdm=true in gnFlags:
|
||||
|
@ -256,7 +256,7 @@ let
|
|||
})
|
||||
] ++ lib.optionals (chromiumVersionAtLeast "120") [
|
||||
# We need to revert this patch to build M120+ with LLVM 16:
|
||||
./chromium-120-llvm-16.patch
|
||||
./patches/chromium-120-llvm-16.patch
|
||||
] ++ lib.optionals (!chromiumVersionAtLeast "119.0.6024.0") [
|
||||
# Fix build with at-spi2-core ≥ 2.49
|
||||
# This version is still needed for electron.
|
||||
|
@ -387,9 +387,13 @@ let
|
|||
# depending on which part of the codebase you are in; see:
|
||||
# https://github.com/chromium/chromium/blob/d36462cc9279464395aea5e65d0893d76444a296/build/config/BUILDCONFIG.gn#L17-L44
|
||||
custom_toolchain = "//build/toolchain/linux/unbundle:default";
|
||||
host_toolchain = "//build/toolchain/linux/unbundle:default";
|
||||
# We only build those specific toolchains when we cross-compile, as native non-cross-compilations would otherwise
|
||||
# end up building much more things than they need to (roughtly double the build steps and time/compute):
|
||||
} // lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) {
|
||||
host_toolchain = "//build/toolchain/linux/unbundle:host";
|
||||
v8_snapshot_toolchain = "//build/toolchain/linux/unbundle:host";
|
||||
|
||||
} // {
|
||||
host_pkg_config = "${pkgsBuildBuild.pkg-config}/bin/pkg-config";
|
||||
pkg_config = "${pkgsBuildHost.pkg-config}/bin/${stdenv.cc.targetPrefix}pkg-config";
|
||||
|
||||
|
|
|
@ -33,11 +33,11 @@
|
|||
|
||||
firefox-beta = buildMozillaMach rec {
|
||||
pname = "firefox-beta";
|
||||
version = "121.0b5";
|
||||
version = "121.0b9";
|
||||
applicationName = "Mozilla Firefox Beta";
|
||||
src = fetchurl {
|
||||
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
|
||||
sha512 = "1c9d2e8fe32687e95af5cf335ef219e70847977568ca636a322c2804f6408d054236df4196e03fc666ac3245ca4a3a9785caf56e1d928a1850f4b34ab5237f8c";
|
||||
sha512 = "a107ba7127f40763325335136c5aeaf6d873dd9ca1c8ca95d93e96b377b41a0974056c84e8323c51ed57e01a2e4ef9996ef2ee2d804053aa2226bd837026523a";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
@ -62,13 +62,13 @@
|
|||
|
||||
firefox-devedition = buildMozillaMach rec {
|
||||
pname = "firefox-devedition";
|
||||
version = "121.0b5";
|
||||
version = "121.0b9";
|
||||
applicationName = "Mozilla Firefox Developer Edition";
|
||||
requireSigning = false;
|
||||
branding = "browser/branding/aurora";
|
||||
src = fetchurl {
|
||||
url = "mirror://mozilla/devedition/releases/${version}/source/firefox-${version}.source.tar.xz";
|
||||
sha512 = "cf23b18abece88f4cee418892791a8a4076ccc14cfe0f1d58f9284ec72f109e44a5397a88b4350f963a3e02e53dd91d7b777c36debd9a3621081499519659f6e";
|
||||
sha512 = "732c2b3f1e47512bee9af696e8763ce13b39497a6ec9af0de9904ce4f55b03bc799e628e17e84ce7062ebd5a7dc50290fbbfa17b0f41622ce5088f1d548897b5";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -18,15 +18,15 @@
|
|||
let
|
||||
isQt6 = lib.versions.major qtbase.version == "6";
|
||||
pdfjs = let
|
||||
version = "3.9.179";
|
||||
version = "4.0.269";
|
||||
in
|
||||
fetchzip {
|
||||
url = "https://github.com/mozilla/pdf.js/releases/download/v${version}/pdfjs-${version}-dist.zip";
|
||||
hash = "sha256-QoJFb7MlZN6lDe2Yalsd10sseukL6+tNRi6JzLPVBYw=";
|
||||
hash = "sha256-8gwJUxygcdvERDni/k6WIx3tzk7yb+qHZ4NsfkP0VDo=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
version = "3.0.2";
|
||||
version = "3.1.0";
|
||||
in
|
||||
|
||||
python3.pkgs.buildPythonApplication {
|
||||
|
@ -34,7 +34,7 @@ python3.pkgs.buildPythonApplication {
|
|||
inherit version;
|
||||
src = fetchurl {
|
||||
url = "https://github.com/qutebrowser/qutebrowser/releases/download/v${version}/qutebrowser-${version}.tar.gz";
|
||||
hash = "sha256-pRiT3koSNRmvuDcjuc7SstmPTKUoUnjIHpvdqR7VvFE=";
|
||||
hash = "sha256-UA3MHMoI1rC4FPowbiII4lM1rL4OLPmZ+1GRbg9LLl8=";
|
||||
};
|
||||
|
||||
# Needs tox
|
||||
|
@ -117,6 +117,7 @@ python3.pkgs.buildPythonApplication {
|
|||
--set-default QSG_RHI_BACKEND vulkan
|
||||
''}
|
||||
${lib.optionalString enableWideVine ''--add-flags "--qt-flag widevine-path=${widevine-cdm}/share/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"''}
|
||||
--set QTWEBENGINE_RESOURCES_PATH "${qtwebengine}/resources"
|
||||
)
|
||||
'';
|
||||
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
let
|
||||
package = buildGoModule rec {
|
||||
pname = "opentofu";
|
||||
version = "1.6.0-beta3";
|
||||
version = "1.6.0-beta4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "opentofu";
|
||||
repo = "opentofu";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-71QJ6rhzFAE78v6RxO1nSroyjF0vrlKC3UIp9ksZolk=";
|
||||
hash = "sha256-AFy7xg1UwVWlFZjelYhxfkhj4Tk93uVvF1i3PHa2jEM=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-kSm5RZqQRgbmPaKt5IWmuMhHwAu+oJKTX1q1lbE7hWk=";
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "terragrunt";
|
||||
version = "0.54.0";
|
||||
version = "0.54.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gruntwork-io";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-PcQuPV0wZa+CgikI9grdsGqNwXlXnu/kM+h4KfPW7SU=";
|
||||
hash = "sha256-BbJ8XJ2zdKm1awDEkWZIZMDku/NWN3Y+nl/GtBBHgBQ=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-OIkrDvNk4XD11j/+BdOkzbw86cYUj0Vz7pZ5/vIZopY=";
|
||||
|
|
|
@ -3,16 +3,16 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "discordo";
|
||||
version = "unstable-2023-11-14";
|
||||
version = "unstable-2023-12-11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ayn2op";
|
||||
repo = pname;
|
||||
rev = "002e382c0de1d87e2ce7fd579346da4f339880ca";
|
||||
hash = "sha256-eOlPc2WDjc73UlFH9d6Kw4/nEbjhBv4xLopxdTnFTYk=";
|
||||
rev = "9c9ea0dc2fdd4ca18c68b08585bcc5b276388d62";
|
||||
hash = "sha256-6gGbro4OsPh+HK9GR01uOUN80lgwMd7oLq9ASWtpNoY=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-1evMzQECqZvKJzNUk9GjrQej9vmnHs9Fm4kXJ0i5gMw=";
|
||||
vendorHash = "sha256-8qr1erKGyJvR4LDKHkZf7nR0tQOcvUHQyJt7OlqNS44=";
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@ buildPythonApplication rec {
|
|||
homepage = "https://pypi.python.org/pypi/rss2email";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ ekleog ];
|
||||
mainProgram = "r2e";
|
||||
};
|
||||
passthru.tests = {
|
||||
smoke-test = nixosTests.rss2email;
|
||||
|
|
|
@ -1,52 +1,53 @@
|
|||
{ branch ? "stable", callPackage, fetchurl, lib, stdenv }:
|
||||
let
|
||||
versions = if stdenv.isLinux then {
|
||||
stable = "0.0.35";
|
||||
ptb = "0.0.56";
|
||||
canary = "0.0.184";
|
||||
development = "0.0.0";
|
||||
} else {
|
||||
stable = "0.0.284";
|
||||
ptb = "0.0.87";
|
||||
canary = "0.0.340";
|
||||
development = "0.0.2";
|
||||
};
|
||||
versions =
|
||||
if stdenv.isLinux then {
|
||||
stable = "0.0.37";
|
||||
ptb = "0.0.59";
|
||||
canary = "0.0.213";
|
||||
development = "0.0.1";
|
||||
} else {
|
||||
stable = "0.0.287";
|
||||
ptb = "0.0.90";
|
||||
canary = "0.0.365";
|
||||
development = "0.0.10";
|
||||
};
|
||||
version = versions.${branch};
|
||||
srcs = rec {
|
||||
x86_64-linux = {
|
||||
stable = fetchurl {
|
||||
url = "https://dl.discordapp.net/apps/linux/${version}/discord-${version}.tar.gz";
|
||||
hash = "sha256-VcSRV9LDiUXduRt20kVeAnwinl6FmACQgn//W6eFyys=";
|
||||
hash = "sha256-uyflZ1Zks7M1Re6DxuNUAkIuPY4wFSydf2AGMtIube8=";
|
||||
};
|
||||
ptb = fetchurl {
|
||||
url = "https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz";
|
||||
hash = "sha256-RDXApmhlu2aQTjWVXMyRp0CL29btsQufIPuxjjtJGIU=";
|
||||
hash = "sha256-WhDEyRMjuy2e1N51tUj3v97Y0qWabCFPThaehadXFWs=";
|
||||
};
|
||||
canary = fetchurl {
|
||||
url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz";
|
||||
hash = "sha256-Pu0kei/ls9yrDEpRQcgDAaEkRbYkFmp/jTwOkljoy18=";
|
||||
hash = "sha256-DGRq58Xj5p/7BunY/vFds9LVmxYOl9LcF8ESHrCLly4=";
|
||||
};
|
||||
development = fetchurl {
|
||||
url = "https://dl-development.discordapp.net/apps/linux/${version}/discord-development-${version}.tar.gz";
|
||||
hash = "sha256-/+9NyreRkXu2++uhwCh3/C1Cos39hfzB0Yjf0Otg9pk=";
|
||||
hash = "sha256-unzPakomF2hmiikrNfnOueBdcuZCz2z3oCA7Djn6OmY=";
|
||||
};
|
||||
};
|
||||
x86_64-darwin = {
|
||||
stable = fetchurl {
|
||||
url = "https://dl.discordapp.net/apps/osx/${version}/Discord.dmg";
|
||||
hash = "sha256-TTzhc6P0hFG9BFMviNx8CCg1cVEKDiB3gtb8oR/slNA=";
|
||||
hash = "sha256-DTkWrUgSYP98IVFTWcm4muRR91Kfvs5pBxc1tvPmj/s=";
|
||||
};
|
||||
ptb = fetchurl {
|
||||
url = "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg";
|
||||
hash = "sha256-cl6+kTth/7j+HJHPU4Oy1N5EnmMbpdvltKzrU1by+Ik=";
|
||||
hash = "sha256-wOTgcHRUu/CjdnvQVNL+rkazhVbZjwI+UbfmsF6aveg=";
|
||||
};
|
||||
canary = fetchurl {
|
||||
url = "https://dl-canary.discordapp.net/apps/osx/${version}/DiscordCanary.dmg";
|
||||
hash = "sha256-LfixXyCoTnifw2GVAnCDnBla757JyGzbvUJwY4UhgGI=";
|
||||
hash = "sha256-a4MyO2Wst+ZYNSpUaF0TXJKtDQcPRLehapwRzp10R2k=";
|
||||
};
|
||||
development = fetchurl {
|
||||
url = "https://dl-development.discordapp.net/apps/osx/${version}/DiscordDevelopment.dmg";
|
||||
hash = "sha256-iMw61dXtThXvz2GnZiM4+tURMRfXhrN/ze1RTBL6zy8=";
|
||||
hash = "sha256-FoYRW5SaR/53yKs/T2XKVKQevA3MxMWAJFjixtwsEF4=";
|
||||
};
|
||||
};
|
||||
aarch64-darwin = x86_64-darwin;
|
||||
|
|
|
@ -25,5 +25,6 @@ stdenv.mkDerivation {
|
|||
maintainers = with maintainers; [ mog ];
|
||||
platforms = platforms.unix;
|
||||
license = licenses.mit;
|
||||
mainProgram = "notmuch-addrlookup";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -146,5 +146,6 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ flokli puckipedia ];
|
||||
platforms = platforms.unix;
|
||||
mainProgram = "notmuch";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -83,6 +83,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
license = licenses.gpl2Plus;
|
||||
homepage = "https://gitlab.com/Remmina/Remmina";
|
||||
description = "Remote desktop client written in GTK";
|
||||
mainProgram = "remmina";
|
||||
maintainers = with maintainers; [ bbigras melsigl ryantm ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
};
|
||||
|
|
|
@ -71,5 +71,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ viric ];
|
||||
platforms = platforms.unix;
|
||||
mainProgram = "unison";
|
||||
};
|
||||
})
|
||||
|
|
|
@ -90,5 +90,6 @@ stdenv.mkDerivation rec {
|
|||
license = with licenses; [ agpl3 gpl3Plus ];
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ pacien dotlambda ];
|
||||
mainProgram = "beamerpresenter";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -16,22 +16,18 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "qlog";
|
||||
version = "0.29.2";
|
||||
version = "0.30.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "foldynl";
|
||||
repo = "QLog";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-g7WgFQPMOaD+3YllZqpykslmPYT/jNVK7/1xaPdbti4=";
|
||||
hash = "sha256-WgLUIWggUKHPjVa6brkJzeRMZli/qhfu4jatf+JYIRU=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
env.NIX_LDFLAGS = "-lhamlib";
|
||||
|
||||
patches = [
|
||||
./mac.patch
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
qtbase
|
||||
qtcharts
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
From 2b0ed30806b34315962da382cb41edf5f19b231e Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= <mkg20001@gmail.com>
|
||||
Date: Sat, 25 Nov 2023 14:22:24 +0100
|
||||
Subject: [PATCH] Add installation to PREFIX on mac when set
|
||||
|
||||
This allows the app to be shipped in a non-bundeled version
|
||||
|
||||
We need this to ship the app on macOS with nix
|
||||
---
|
||||
QLog.pro | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/QLog.pro b/QLog.pro
|
||||
index db6686f..576bfe1 100644
|
||||
--- a/QLog.pro
|
||||
+++ b/QLog.pro
|
||||
@@ -386,6 +386,12 @@ macx: {
|
||||
equals(QT_MAJOR_VERSION, 6): LIBS += -lqt6keychain
|
||||
equals(QT_MAJOR_VERSION, 5): LIBS += -lqt5keychain
|
||||
DISTFILES +=
|
||||
+
|
||||
+ # This allows the app to be shipped in a non-bundeled version
|
||||
+ !isEmpty(PREFIX) {
|
||||
+ target.path = $$PREFIX
|
||||
+ INSTALLS += target
|
||||
+ }
|
||||
}
|
||||
|
||||
win32: {
|
||||
--
|
||||
2.42.0
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{lib, stdenv, fetchFromGitHub, cmake, zlib, python2}:
|
||||
{lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, zlib, python2}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "strelka";
|
||||
|
@ -11,8 +11,28 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1nykbmim1124xh22nrhrsn8xgjb3s2y7akrdapn9sl1gdych4ppf";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Pull pending fix for gcc-12:
|
||||
# https://github.com/Illumina/strelka/pull/204
|
||||
(fetchpatch {
|
||||
name = "limits.patch";
|
||||
url = "https://github.com/Illumina/strelka/commit/98272cd345c6e4c672e6a5b7721204fcac0502d6.patch";
|
||||
hash = "sha256-psBiuN32nvwZ+QX51JQjIdRhEE3k7PfwbkD10ckqvZk=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/cmake/boost.cmake \
|
||||
--replace "1.58.0" "${boost.version}" \
|
||||
--replace "Boost_USE_STATIC_LIBS ON" "Boost_USE_STATIC_LIBS OFF"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ zlib python2 ];
|
||||
buildInputs = [ boost zlib python2 ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_CXX_STANDARD=14"
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = toString [
|
||||
"-Wno-error=maybe-uninitialized"
|
||||
|
@ -37,7 +57,7 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.gpl3;
|
||||
homepage = "https://github.com/Illumina/strelka";
|
||||
maintainers = with maintainers; [ jbedo ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -6,21 +6,16 @@
|
|||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "toil";
|
||||
version = "5.7.1";
|
||||
version = "5.12.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DataBiosphere";
|
||||
repo = pname;
|
||||
rev = "refs/tags/releases/${version}";
|
||||
hash = "sha256-m+XvNyzd0ly2YqKhgxezgGaCXLs3CmupJMnp5RIZqNI=";
|
||||
hash = "sha256-cTpbQo9tPZifUO59vbnIa3XUinFJ2/5Slfe4yszglFM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "docker>=3.7.2, <6" "docker"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
addict
|
||||
dill
|
||||
|
@ -42,7 +37,6 @@ python3.pkgs.buildPythonApplication rec {
|
|||
boto
|
||||
botocore
|
||||
flask
|
||||
mypy-boto3-s3
|
||||
pytestCheckHook
|
||||
stubserver
|
||||
]);
|
||||
|
@ -63,6 +57,10 @@ python3.pkgs.buildPythonApplication rec {
|
|||
"src/toil/test/src"
|
||||
"src/toil/test/wdl"
|
||||
"src/toil/test/utils/utilsTest.py"
|
||||
"src/toil/test/cwl/cwlTest.py"
|
||||
"src/toil/test/lib/test_ec2.py"
|
||||
"src/toil/test/lib/aws/test_iam.py"
|
||||
"src/toil/test/lib/aws/test_s3.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
|
|
|
@ -1,19 +1,16 @@
|
|||
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper }:
|
||||
{ lib, buildLua, fetchFromGitHub, makeWrapper }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
buildLua {
|
||||
pname = "video-cutter";
|
||||
version = "unstable-2021-02-03";
|
||||
version = "unstable-2023-11-09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rushmj";
|
||||
repo = "mpv-video-cutter";
|
||||
rev = "718d6ce9356e63fdd47208ec44f575a212b9068a";
|
||||
sha256 = "sha256-ramID1DPl0UqEzevpqdYKb9aaW3CAy3Dy9CPb/oJ4eY=";
|
||||
rev = "01a0396c075d5f8bbd1de5b571e6231f8899ab65";
|
||||
sha256 = "sha256-veoRFzUCRH8TrvR7x+WWoycpDyxqrJZ/bnp61dVc0pE=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
dontCheck = true;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postPatch = ''
|
||||
|
@ -27,21 +24,19 @@ stdenvNoCC.mkDerivation {
|
|||
--replace '~/.config/mpv/scripts' "''${XDG_CONFIG_HOME:-~/.config}/mpv/cutter"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 c_concat.sh $out/share/mpv/scripts/c_concat.sh
|
||||
install cutter.lua $out/share/mpv/scripts/cutter.lua
|
||||
passthru.scriptName = "cutter.lua";
|
||||
extraScripts = [ "c_concat.sh" ];
|
||||
|
||||
postInstall = ''
|
||||
chmod 0755 $out/share/mpv/scripts/c_concat.sh
|
||||
wrapProgram $out/share/mpv/scripts/c_concat.sh \
|
||||
--run "mkdir -p ~/.config/mpv/cutter/"
|
||||
'';
|
||||
|
||||
passthru.scriptName = "cutter.lua";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cut videos and concat them automatically";
|
||||
homepage = "https://github.com/rushmj/mpv-video-cutter";
|
||||
# repo doesn't have a license
|
||||
license = licenses.unfree;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lom ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ in lib.recurseIntoAttrs
|
|||
autoload = callPackage ./autoload.nix { };
|
||||
chapterskip = callPackage ./chapterskip.nix { inherit buildLua; };
|
||||
convert = callPackage ./convert.nix { inherit buildLua; };
|
||||
cutter = callPackage ./cutter.nix { inherit buildLua; };
|
||||
inhibit-gnome = callPackage ./inhibit-gnome.nix { };
|
||||
mpris = callPackage ./mpris.nix { };
|
||||
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { inherit buildLua; };
|
||||
|
@ -20,13 +21,13 @@ in lib.recurseIntoAttrs
|
|||
quality-menu = callPackage ./quality-menu.nix { inherit buildLua; };
|
||||
simple-mpv-webui = callPackage ./simple-mpv-webui.nix { inherit buildLua; };
|
||||
sponsorblock = callPackage ./sponsorblock.nix { };
|
||||
sponsorblock-minimal = callPackage ./sponsorblock-minimal.nix { inherit buildLua; };
|
||||
thumbfast = callPackage ./thumbfast.nix { inherit buildLua; };
|
||||
thumbnail = callPackage ./thumbnail.nix { inherit buildLua; };
|
||||
uosc = callPackage ./uosc.nix { inherit buildLua; };
|
||||
visualizer = callPackage ./visualizer.nix { };
|
||||
visualizer = callPackage ./visualizer.nix { inherit buildLua; };
|
||||
vr-reversal = callPackage ./vr-reversal.nix { };
|
||||
webtorrent-mpv-hook = callPackage ./webtorrent-mpv-hook.nix { };
|
||||
cutter = callPackage ./cutter.nix { };
|
||||
}
|
||||
// (callPackage ./occivink.nix { inherit buildLua; }))
|
||||
// lib.optionalAttrs config.allowAliases {
|
||||
|
|
32
pkgs/applications/video/mpv/scripts/sponsorblock-minimal.nix
Normal file
32
pkgs/applications/video/mpv/scripts/sponsorblock-minimal.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib
|
||||
, buildLua
|
||||
, fetchFromGitea
|
||||
, curl
|
||||
}:
|
||||
|
||||
buildLua {
|
||||
pname = "mpv_sponsorblock_minimal";
|
||||
version = "unstable-2023-08-20";
|
||||
scriptPath = "sponsorblock_minimal.lua";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "jouni";
|
||||
repo = "mpv_sponsorblock_minimal";
|
||||
rev = "ca2844b8cf7674bfccd282d389a50427742251d3";
|
||||
hash = "sha256-28HWZ6nOhKiE+5Ya1N3Vscd8aeH9OKS0t72e/xPfFQQ=";
|
||||
};
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace sponsorblock_minimal.lua \
|
||||
--replace "curl" "${lib.getExe curl}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A minimal script to skip sponsored segments of YouTube videos";
|
||||
homepage = "https://codeberg.org/jouni/mpv_sponsorblock_minimal";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ arthsmn ];
|
||||
};
|
||||
}
|
|
@ -2,22 +2,21 @@
|
|||
|
||||
buildLua {
|
||||
pname = "mpv-thumbfast";
|
||||
version = "unstable-2023-06-04";
|
||||
version = "unstable-2023-12-08";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "po5";
|
||||
repo = "thumbfast";
|
||||
rev = "4241c7daa444d3859b51b65a39d30e922adb87e9";
|
||||
hash = "sha256-7EnFJVjEzqhWXAvhzURoOp/kad6WzwyidWxug6u8lVw=";
|
||||
rev = "03e93feee5a85bf7c65db953ada41b4826e9f905";
|
||||
hash = "sha256-5u5WBvWOEydJrnr/vilEgW4+fxkxM6wNjb9Fyyxx/1c=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace thumbfast.lua \
|
||||
--replace 'mpv_path = "mpv"' 'mpv_path = "${lib.getExe mpv-unwrapped}"'
|
||||
'';
|
||||
|
||||
scriptPath = "thumbfast.lua";
|
||||
|
||||
passthru.extraWrapperArgs = [
|
||||
"--prefix" "PATH" ":" "${lib.getBin mpv-unwrapped}/bin"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "High-performance on-the-fly thumbnailer for mpv";
|
||||
homepage = "https://github.com/po5/thumbfast";
|
||||
|
|
|
@ -1,34 +1,22 @@
|
|||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
buildLua,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
stdenvNoCC.mkDerivation {
|
||||
buildLua {
|
||||
pname = "visualizer";
|
||||
version = "unstable-2021-07-10";
|
||||
version = "unstable-2023-08-13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mfcc64";
|
||||
repo = "mpv-scripts";
|
||||
rev = "a0cd87eeb974a4602c5d8086b4051b5ab72f42e1";
|
||||
sha256 = "1xgd1nd117lpj3ppynhgaa5sbkfm7l8n6c9a2fy8p07is2dkndrq";
|
||||
rev = "7dbbfb283508714b73ead2a57b6939da1d139bd3";
|
||||
sha256 = "zzB4uBc1M2Gdr/JKY2uk8MY0hmQl1XeomkfTzuM45oE=";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/mpv/scripts
|
||||
cp visualizer.lua $out/share/mpv/scripts
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.scriptName = "visualizer.lua";
|
||||
|
||||
meta = with lib; {
|
||||
description = "various audio visualization";
|
||||
homepage = "https://github.com/mfcc64/mpv-scripts";
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [kmein];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
}:
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "tart";
|
||||
version = "2.4.1";
|
||||
version = "2.4.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/cirruslabs/tart/releases/download/${finalAttrs.version}/tart.tar.gz";
|
||||
sha256 = "sha256-dCKUwDC7M3u8/8yJQp/v0zy7GuB7SvjnRmTLtodUz80=";
|
||||
sha256 = "sha256-4G6HAfCx7PzFGN0hc8g5z545ierogNyGwex7/+lDFSQ=";
|
||||
};
|
||||
sourceRoot = ".";
|
||||
|
||||
|
|
|
@ -19,5 +19,6 @@ buildPythonPackage rec {
|
|||
homepage = "https://pypi.org/project/i3-balance-workspace/";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ pacien ];
|
||||
mainProgram = "i3_balance_workspace";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
# Build a python package from info made available by setupcfg2nix.
|
||||
#
|
||||
# * src: The source of the package.
|
||||
# * info: The package information generated by setupcfg2nix.
|
||||
# * meta: Standard nixpkgs metadata.
|
||||
# * application: Whether this package is a python library or an
|
||||
# application which happens to be written in python.
|
||||
# * doCheck: Whether to run the test suites.
|
||||
lib: pythonPackages:
|
||||
{ src, info, meta ? {}, application ? false, doCheck ? true}: let
|
||||
build = if application
|
||||
then pythonPackages.buildPythonApplication
|
||||
else pythonPackages.buildPythonPackage;
|
||||
in build {
|
||||
inherit (info) pname version;
|
||||
|
||||
inherit src meta doCheck;
|
||||
|
||||
nativeBuildInputs = map (p: pythonPackages.${p}) (
|
||||
(info.setup_requires or []) ++
|
||||
(lib.optionals doCheck (info.tests_require or []))
|
||||
);
|
||||
|
||||
propagatedBuildInputs = map (p: pythonPackages.${p})
|
||||
(info.install_requires or []);
|
||||
}
|
|
@ -155,7 +155,7 @@ composerInstallInstallHook() {
|
|||
cp -r . "$out"/share/php/"${pname}"/
|
||||
|
||||
# Create symlinks for the binaries.
|
||||
jq -r -c 'try .bin[]' composer.json | while read -r bin; do
|
||||
jq -r -c 'try (.bin[] | select(test(".bat$")? | not) )' composer.json | while read -r bin; do
|
||||
mkdir -p "$out"/share/php/"${pname}" "$out"/bin
|
||||
makeWrapper "$out"/share/php/"${pname}"/"$bin" "$out"/bin/"$(basename "$bin")"
|
||||
done
|
||||
|
|
|
@ -19,17 +19,17 @@
|
|||
|
||||
buildGoModule rec {
|
||||
pname = "aaaaxy";
|
||||
version = "1.4.101";
|
||||
version = "1.4.119";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "divVerent";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Eg8RvViTPqlVmvUX3k+/ph4YYU7xfFQY1Gs/e1at6No=";
|
||||
hash = "sha256-M+HNYQl53vQZdKn/CyF5OZPyKGq/4A9DPoDV3fRdWMY=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
vendorHash = "sha256-Qd5ytSrW42pDzKt9xg3hWD9rWFvQi1PPYF+m56+/cHE=";
|
||||
vendorHash = "sha256-NoWfCn9P/i/8Xv0w2wqTFG3yoayGzc1TyF02zANP7Rg=";
|
||||
|
||||
buildInputs = [
|
||||
alsa-lib
|
|
@ -4,16 +4,16 @@
|
|||
}:
|
||||
buildGo121Module rec {
|
||||
pname = "athens";
|
||||
version = "0.12.1";
|
||||
version = "0.13.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gomods";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-m75Ut1UVwz7uWneBwPxUL7aPOXIpy6YPqIXMwczHOpY=";
|
||||
hash = "sha256-27BBPDK5lGwEFsgLf+/lE9CM8g1AbGUgM1iOL7XZqsU=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-zK4EE242Gbgew33oxAUNxylKdhRdPhqP0Hrpu4sYiFg=";
|
||||
vendorHash = "sha256-5U9ql0wszhr5H3hAo2utONuEh4mUSiO71XQHkAnMhZU=";
|
||||
|
||||
CGO_ENABLED = "0";
|
||||
ldflags = [ "-s" "-w" "-buildid=" "-X github.com/gomods/athens/pkg/build.version=${version}" ];
|
||||
|
|
34
pkgs/by-name/de/dependency-track-exporter/package.nix
Normal file
34
pkgs/by-name/de/dependency-track-exporter/package.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "dependency-track-exporter";
|
||||
version = "0.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jetstack";
|
||||
repo = "dependency-track-exporter";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-yvScGxgkyZzEdfeJCXk/tSk3cLW+jyw00XbJVrpU6MY=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-bEJFTsGQMDfZOt67ouv3PkKy+De4mL9Yk7iuslo1qYU=";
|
||||
|
||||
ldflags = [
|
||||
"-X=github.com/prometheus/common/version.Version=${version}"
|
||||
"-X=github.com/prometheus/common/version.Revision=${src.rev}"
|
||||
"-X=github.com/prometheus/common/version.Branch=${src.rev}"
|
||||
"-X=github.com/prometheus/common/version.BuildDate=1970-01-01T00:00:00Z"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Helper to export Prometheus metrics for Dependency-Track";
|
||||
homepage = "https://github.com/jetstack/dependency-track-exporter";
|
||||
changelog = "https://github.com/jetstack/dependency-track-exporter/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "dependency-track-exporter";
|
||||
};
|
||||
}
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
stdenv.mkDerivation {
|
||||
pname = "footswitch";
|
||||
version = "unstable-2022-04-12";
|
||||
version = "unstable-2023-10-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rgerganov";
|
||||
repo = "footswitch";
|
||||
rev = "1cf63643e18e688e4ebe96451db24edf52338cc0";
|
||||
sha256 = "0gfvi2wgrljndyz889cjjh2q13994fnaf11n7hpdd82c4wgg06kj";
|
||||
rev = "b7493170ecc956ac87df2c36183253c945be2dcf";
|
||||
sha256 = "sha256-vwjeWjIXQiFJ0o/wgEBrKP3hQi8Xa/azVS1IE/Q/MyY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
@ -27,9 +27,9 @@ stdenv.mkDerivation {
|
|||
|
||||
meta = with lib; {
|
||||
description = "Command line utlities for programming PCsensor and Scythe foot switches.";
|
||||
homepage = "https://github.com/rgerganov/footswitch";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
homepage = "https://github.com/rgerganov/footswitch";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ baloo ];
|
||||
};
|
||||
}
|
47
pkgs/by-name/gr/gruvbox-plus-icons/package.nix
Normal file
47
pkgs/by-name/gr/gruvbox-plus-icons/package.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, gtk3
|
||||
, breeze-icons
|
||||
, gnome-icon-theme
|
||||
, hicolor-icon-theme
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "gruvbox-plus-icons";
|
||||
version = "unstable-2023-12-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "SylEleuth";
|
||||
repo = "gruvbox-plus-icon-pack";
|
||||
rev = "f3109979fe93b31ea14eb2d5c04247a895302ea0";
|
||||
sha256 = "sha256-EijTEDkPmcDcMhCuL6fOWjU9eXFUwmeOEwfGlxadb1U=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
propagatedBuildInputs = [ breeze-icons gnome-icon-theme hicolor-icon-theme ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
cp -r Gruvbox-Plus-Dark $out/share/icons/
|
||||
gtk-update-icon-cache $out/share/icons/Gruvbox-Plus-Dark
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icon pack for Linux desktops based on the Gruvbox color scheme";
|
||||
homepage = "https://github.com/SylEleuth/gruvbox-plus-icon-pack";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ eureka-cpu RGBCube ];
|
||||
};
|
||||
}
|
23
pkgs/by-name/in/intiface-central/corrosion.patch
Normal file
23
pkgs/by-name/in/intiface-central/corrosion.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
diff --git a/linux/rust.cmake b/linux/rust.cmake
|
||||
index a96586c..f9b8677 100644
|
||||
--- a/linux/rust.cmake
|
||||
+++ b/linux/rust.cmake
|
||||
@@ -2,17 +2,7 @@
|
||||
# many dependencies we would need to install Corrosion on the system.
|
||||
# See instructions on https://github.com/AndrewGaspar/corrosion#cmake-install
|
||||
# Once done, uncomment this line:
|
||||
-# find_package(Corrosion REQUIRED)
|
||||
-
|
||||
-include(FetchContent)
|
||||
-
|
||||
-FetchContent_Declare(
|
||||
- Corrosion
|
||||
- GIT_REPOSITORY https://github.com/AndrewGaspar/corrosion.git
|
||||
- GIT_TAG origin/master # Optionally specify a version tag or branch here
|
||||
-)
|
||||
-
|
||||
-FetchContent_MakeAvailable(Corrosion)
|
||||
+find_package(Corrosion REQUIRED)
|
||||
|
||||
corrosion_import_crate(MANIFEST_PATH ../intiface-engine-flutter-bridge/Cargo.toml)
|
||||
|
1761
pkgs/by-name/in/intiface-central/deps.json
generated
Normal file
1761
pkgs/by-name/in/intiface-central/deps.json
generated
Normal file
File diff suppressed because it is too large
Load diff
79
pkgs/by-name/in/intiface-central/package.nix
Normal file
79
pkgs/by-name/in/intiface-central/package.nix
Normal file
|
@ -0,0 +1,79 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, flutter
|
||||
, corrosion
|
||||
, rustPlatform
|
||||
, cargo
|
||||
, rustc
|
||||
, udev
|
||||
, copyDesktopItems
|
||||
, makeDesktopItem
|
||||
}:
|
||||
flutter.buildFlutterApplication rec {
|
||||
pname = "intiface-central";
|
||||
version = "2.5.3";
|
||||
src = fetchFromGitHub {
|
||||
owner = "intiface";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-i0G3wCfJ9Q7DEmVMrQv2K6fy4YRWsEMNns9zMZkJxvY=";
|
||||
};
|
||||
patches = [
|
||||
./corrosion.patch
|
||||
];
|
||||
|
||||
depsListFile = ./deps.json;
|
||||
vendorHash = "sha256-06I9ugwUmMT16A6l5Is5v35Fu7pyE8+1mnDDPKxCYxM=";
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
name = "${pname}-${version}-cargo-deps";
|
||||
inherit src;
|
||||
sourceRoot = "source/intiface-engine-flutter-bridge";
|
||||
hash = "sha256-0sCHa3rMaLYaUG3E3fmsLi0dSdb9vGyv7qNR3JQkXuU=";
|
||||
};
|
||||
cargoRoot = "intiface-engine-flutter-bridge";
|
||||
|
||||
preConfigure = ''
|
||||
export CMAKE_PREFIX_PATH="${corrosion}:$CMAKE_PREFIX_PATH"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
corrosion
|
||||
rustPlatform.cargoSetupHook
|
||||
cargo
|
||||
rustc
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
udev
|
||||
];
|
||||
|
||||
# without this, only the splash screen will be shown and the logs will contain the
|
||||
# line `Failed to load dynamic library 'lib/libintiface_engine_flutter_bridge.so'`
|
||||
extraWrapProgramArgs = "--chdir $out/app";
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/pixmaps
|
||||
cp $out/app/data/flutter_assets/assets/icons/intiface_central_icon.png $out/share/pixmaps/intiface-central.png
|
||||
'';
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "intiface-central";
|
||||
exec = "intiface_central";
|
||||
icon = "intiface-central";
|
||||
comment = "Intiface Central (Buttplug Frontend) Application for Desktop";
|
||||
desktopName = "Intiface Central";
|
||||
})
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
mainProgram = "intiface_central";
|
||||
description = "Intiface Central (Buttplug Frontend) Application for Desktop";
|
||||
homepage = "https://intiface.com/";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ _999eagle ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
46
pkgs/by-name/ji/jigdo/package.nix
Normal file
46
pkgs/by-name/ji/jigdo/package.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, gettext
|
||||
, bzip2
|
||||
, db
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "jigdo";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.einval.com/~steve/software/jigdo/download/jigdo-${version}.tar.xz";
|
||||
hash = "sha256-NvKG2T+mtr94hfSJnJl4lNIdo6YhdlkqwWLZxqhkT54=";
|
||||
};
|
||||
|
||||
# unable to parse jigdo-file.sgml
|
||||
postPatch = ''
|
||||
sed \
|
||||
-e "s@.*cd doc.*@@g" \
|
||||
-e "s@.*/man1.*@\t\t:@g" \
|
||||
-i Makefile.in
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
gettext
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
bzip2
|
||||
db
|
||||
zlib
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Download utility that can fetch files from several sources simultaneously";
|
||||
homepage = "https://www.einval.com/~steve/software/jigdo/";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ wegank ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -6,18 +6,19 @@
|
|||
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "memtree";
|
||||
version = "unstable-2023-11-04";
|
||||
version = "unstable-2023-11-22";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nbraud";
|
||||
repo = "memtree";
|
||||
rev = "093caeef26ee944b5bf4408710f63494e442b5ff";
|
||||
hash = "sha256-j4LqWy7DxeV7pjwnCfpkHwug4p48kux6BM6oDJmvuUo=";
|
||||
rev = "edc09d91dcd72f175d6adc1d08b261dd95cc4fbf";
|
||||
hash = "sha256-YLZm0wjkjaTw/lHY5k4cqPXCgINe+49SGPLZq+eRdI4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
poetry-core
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
|
@ -29,12 +30,7 @@ python3Packages.buildPythonApplication {
|
|||
pytest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
python -m pytest -v
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [ "-v" ];
|
||||
pythonImportChecks = [ "memtree" ];
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
|
@ -45,6 +41,7 @@ python3Packages.buildPythonApplication {
|
|||
description = "Render cgroups tree annotated by memory usage";
|
||||
homepage = "https://github.com/nbraud/memtree";
|
||||
maintainers = with maintainers; [ nicoo ];
|
||||
mainProgram = "memtree";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
|
||||
php.buildComposerProject (finalAttrs: {
|
||||
pname = "platformsh";
|
||||
version = "4.10.0";
|
||||
version = "4.11.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "platformsh";
|
||||
repo = "legacy-cli";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-aEQxlotwMScEIfHrVDdXBgFxMqAIypkEl9TLi1Bvhnw=";
|
||||
hash = "sha256-4Fo4vmTEo0rSJNtoGz/mRv5dRCMq5vJmnwAxsvfs9qo=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-e89xxgTI6FajDfj8xr8VYlbxJD6lUZWz5+2UFQTClsY=";
|
||||
vendorHash = "sha256-MuZKa4lKvfls85cYjOTHHd6lKVVS0QJD6Pdn7csSzUo=";
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace config-defaults.yaml \
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnome-shell-extension-valent";
|
||||
version = "unstable-2023-03-18";
|
||||
version = "unstable-2023-11-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "andyholmes";
|
||||
repo = "gnome-shell-extension-valent";
|
||||
rev = "e7f759047c45833cd211ef18a8554008cb1b8b12";
|
||||
hash = "sha256-ylCyQbFbzCuSM2YrLuI36eXL2qQjTt1mYewJlCywKvI=";
|
||||
rev = "c0fad083db3c23382efca623488834054bbbd5cd";
|
||||
hash = "sha256-H0EjR7sYK0mepT59PoHgecbk4ksQN8Vyisf6Y+2vT8g=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
51
pkgs/desktops/plasma-5/3rdparty/addons/polonium.nix
vendored
Normal file
51
pkgs/desktops/plasma-5/3rdparty/addons/polonium.nix
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildNpmPackage
|
||||
, plasma-framework
|
||||
}:
|
||||
|
||||
# how to update:
|
||||
# 1. check out the tag for the version in question
|
||||
# 2. run `prefetch-npm-deps package-lock.json`
|
||||
# 3. update npmDepsHash with the output of the previous step
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "polonium";
|
||||
version = "0.6.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zeroxoneafour";
|
||||
repo = pname;
|
||||
rev = "v" + version;
|
||||
hash = "sha256-fZgNOcOq+owmqtplwnxeOIQpWmrga/WitCNCj89O5XA=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-25AtM1FweWIbFot+HUMSPYTu47/0eKNpRWSlBEL0yKk=";
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
# the installer does a bunch of stuff that fails in our sandbox, so just build here and then we
|
||||
# manually do the install
|
||||
buildFlags = [ "res" "src" ];
|
||||
|
||||
nativeBuildInputs = [ plasma-framework ];
|
||||
|
||||
dontNpmBuild = true;
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
plasmapkg2 --install pkg --packageroot $out/share/kwin/scripts
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Auto-tiler that uses KWin 5.27+ tiling functionality";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
inherit (plasma-framework.meta) platforms;
|
||||
};
|
||||
}
|
|
@ -49,7 +49,7 @@ let
|
|||
mirror = "mirror://kde";
|
||||
};
|
||||
|
||||
qtStdenv = libsForQt5.callPackage ({ stdenv }: stdenv) {};
|
||||
qtStdenv = libsForQt5.callPackage ({ stdenv }: stdenv) { };
|
||||
|
||||
packages = self:
|
||||
let
|
||||
|
@ -96,7 +96,7 @@ let
|
|||
|
||||
defaultSetupHook = if hasBin && hasDev then propagateBin else null;
|
||||
setupHook = args.setupHook or defaultSetupHook;
|
||||
nativeBuildInputs = (args.nativeBuildInputs or []) ++ [ libsForQt5.wrapQtAppsHook ];
|
||||
nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ libsForQt5.wrapQtAppsHook ];
|
||||
|
||||
meta =
|
||||
let meta = args.meta or { }; in
|
||||
|
@ -183,6 +183,7 @@ let
|
|||
kzones = callPackage ./3rdparty/kwin/scripts/kzones.nix { };
|
||||
lightly = callPackage ./3rdparty/lightly { };
|
||||
parachute = callPackage ./3rdparty/kwin/scripts/parachute.nix { };
|
||||
polonium = callPackage ./3rdparty/addons/polonium.nix { };
|
||||
};
|
||||
|
||||
} // lib.optionalAttrs config.allowAliases {
|
||||
|
|
|
@ -17,12 +17,12 @@ let
|
|||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "circt";
|
||||
version = "1.59.0";
|
||||
version = "1.61.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "llvm";
|
||||
repo = "circt";
|
||||
rev = "firtool-${version}";
|
||||
sha256 = "sha256-HsfvLxXyYvzUL+FO/i8iRbyQV8OFF3Cx8/g8/9aJE2M=";
|
||||
sha256 = "sha256-3zuaruaveUeJ7uKP5fMiDFPOGKcs6aTNuGOuhxV6nss=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
|
|
|
@ -1,24 +1,28 @@
|
|||
{ stdenvNoCC, lib, fetchurl }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "fasm-bin";
|
||||
|
||||
version = "1.73.31";
|
||||
version = "1.73.32";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://flatassembler.net/fasm-${version}.tgz";
|
||||
sha256 = "sha256-jzjLIayR+xulSGKhvQ9VxWhZC6qRZ/4IHSe3lD8LD+M=";
|
||||
url = "https://flatassembler.net/fasm-${finalAttrs.version}.tgz";
|
||||
hash = "sha256-WVXL4UNWXa9e7K3MSS0CXK3lczgog9V4XUoYChvvym8=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D fasm${lib.optionalString stdenvNoCC.isx86_64 ".x64"} $out/bin/fasm
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "x86(-64) macro assembler to binary, MZ, PE, COFF, and ELF";
|
||||
homepage = "https://flatassembler.net/download.php";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ orivej ];
|
||||
license = lib.licenses.bsd2;
|
||||
mainProgram = "fasm";
|
||||
maintainers = with lib.maintainers; [ orivej ];
|
||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
@ -281,7 +281,7 @@ in let
|
|||
# Has to be in tools despite mostly being a library,
|
||||
# because we use a native helper executable from a
|
||||
# non-cross build in cross builds.
|
||||
libclc = callPackage ./libclc {
|
||||
libclc = callPackage ../common/libclc.nix {
|
||||
inherit buildLlvmTools;
|
||||
};
|
||||
});
|
||||
|
|
|
@ -269,6 +269,12 @@ in let
|
|||
nixSupport.cc-cflags = [ "-fno-exceptions" ];
|
||||
});
|
||||
|
||||
# Has to be in tools despite mostly being a library,
|
||||
# because we use a native helper executable from a
|
||||
# non-cross build in cross builds.
|
||||
libclc = callPackage ../common/libclc.nix {
|
||||
inherit buildLlvmTools;
|
||||
};
|
||||
});
|
||||
|
||||
libraries = lib.makeExtensible (libraries: let
|
||||
|
|
|
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||
outputs = [ "out" "dev" ];
|
||||
|
||||
patches = [
|
||||
./libclc-gnu-install-dirs.patch
|
||||
./libclc/libclc-gnu-install-dirs.patch
|
||||
];
|
||||
|
||||
# cmake expects all required binaries to be in the same place, so it will not be able to find clang without the patch
|
||||
|
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
|
|||
--replace 'find_program( LLVM_OPT opt PATHS ''${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )' \
|
||||
'find_program( LLVM_OPT opt PATHS "${buildLlvmTools.llvm}/bin" NO_DEFAULT_PATH )' \
|
||||
--replace 'find_program( LLVM_SPIRV llvm-spirv PATHS ''${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )' \
|
||||
'find_program( LLVM_SPIRV llvm-spirv PATHS "${buildPackages.spirv-llvm-translator}/bin" NO_DEFAULT_PATH )'
|
||||
'find_program( LLVM_SPIRV llvm-spirv PATHS "${buildPackages.spirv-llvm-translator.override { inherit (buildLlvmTools) llvm; }}/bin" NO_DEFAULT_PATH )'
|
||||
'' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace 'COMMAND prepare_builtins' 'COMMAND ${buildLlvmTools.libclc.dev}/bin/prepare_builtins'
|
||||
|
@ -45,7 +45,6 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
homepage = "http://libclc.llvm.org/";
|
||||
description = "Implementation of the library requirements of the OpenCL C programming language";
|
||||
license = licenses.mit;
|
|
@ -1,20 +1,21 @@
|
|||
{ lib, stdenv, fetchFromGitHub, glfw, freetype, openssl, makeWrapper, upx, boehmgc, xorg, binaryen, darwin }:
|
||||
|
||||
let
|
||||
version = "weekly.2023.44";
|
||||
version = "0.4.3";
|
||||
ptraceSubstitution = ''
|
||||
#include <sys/types.h>
|
||||
#include <sys/ptrace.h>
|
||||
'';
|
||||
# Required for bootstrap.
|
||||
# vc is the V compiler's source translated to C (needed for boostrap).
|
||||
# So we fix its rev to correspond to the V version.
|
||||
vc = stdenv.mkDerivation {
|
||||
pname = "v.c";
|
||||
version = "unstable-2023-10-30";
|
||||
version = "0.4.3";
|
||||
src = fetchFromGitHub {
|
||||
owner = "vlang";
|
||||
repo = "vc";
|
||||
rev = "66b89ab916c13c5781753797d1f4ff08e427bb6b";
|
||||
hash = "sha256-5Y7/rlcoIHjbf79A1rqFysNFc5+p6CY09MRPQalo7Ak=";
|
||||
rev = "5e691a82c01957870b451e06216a9fb3a4e83a18";
|
||||
hash = "sha256-Ti2b88NDG1pppj34BeK8+UsT2HiG/jcAF2mHgiBBRaI=";
|
||||
};
|
||||
|
||||
# patch the ptrace reference for darwin
|
||||
|
@ -30,8 +31,8 @@ let
|
|||
markdown = fetchFromGitHub {
|
||||
owner = "vlang";
|
||||
repo = "markdown";
|
||||
rev = "61c47ea0a6c0c79e973a119dcbab3b8fdd0973ca";
|
||||
hash = "sha256-XBD30Pc9CGXzU1Gy6U0pDpTozYVwfgAvZRjIsnXp8ZM=";
|
||||
rev = "0c280130cb7ec410b7d21810d1247956c15b72fc";
|
||||
hash = "sha256-Fmhkrg9DBiWxInostNp+WfA3V5GgEIs5+KIYrqZosqY=";
|
||||
};
|
||||
boehmgcStatic = boehmgc.override {
|
||||
enableStatic = true;
|
||||
|
@ -45,7 +46,7 @@ stdenv.mkDerivation {
|
|||
owner = "vlang";
|
||||
repo = "v";
|
||||
rev = version;
|
||||
hash = "sha256-1yFuheSyKfvm4GqKIbXycdzKx3XcD9LSmmuKlcJmteg=";
|
||||
hash = "sha256-ZFBQD7SP38VnEMoOnwr/n8zZuLtR7GR3OCYhvfz3apI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ glfw freetype openssl ]
|
||||
|
@ -76,11 +77,6 @@ stdenv.mkDerivation {
|
|||
cp -r ${boehmgcStatic}/lib/* ./thirdparty/tcc/lib
|
||||
'';
|
||||
|
||||
# vcreate_test.v requires git, so we must remove it when building the tools.
|
||||
preInstall = ''
|
||||
mv cmd/tools/vcreate/vcreate_test.v $HOME/vcreate_test.v
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
|
@ -102,11 +98,6 @@ stdenv.mkDerivation {
|
|||
runHook postInstall
|
||||
'';
|
||||
|
||||
# Return vcreate_test.v and vtest.v, so the user can use it.
|
||||
postInstall = ''
|
||||
cp $HOME/vcreate_test.v $out/lib/cmd/tools/vcreate_test.v
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://vlang.io/";
|
||||
description = "Simple, fast, safe, compiled language for developing maintainable software";
|
||||
|
|
|
@ -5,7 +5,7 @@ with builtins // lib;
|
|||
let
|
||||
repo = "metacoq";
|
||||
owner = "MetaCoq";
|
||||
defaultVersion = with versions; lib.switch coq.coq-version [
|
||||
defaultVersion = with versions; switch coq.coq-version [
|
||||
{ case = "8.11"; out = "1.0-beta2-8.11"; }
|
||||
{ case = "8.12"; out = "1.0-beta2-8.12"; }
|
||||
# Do not provide 8.13 because it does not compile with equations 1.3 provided by default (only 1.2.3)
|
||||
|
@ -13,6 +13,8 @@ let
|
|||
{ case = "8.14"; out = "1.1-8.14"; }
|
||||
{ case = "8.15"; out = "1.1-8.15"; }
|
||||
{ case = "8.16"; out = "1.1-8.16"; }
|
||||
{ case = "8.17"; out = "1.2.1-8.17"; }
|
||||
{ case = "8.18"; out = "1.2.1-8.18"; }
|
||||
] null;
|
||||
release = {
|
||||
"1.0-beta2-8.11".sha256 = "sha256-I9YNk5Di6Udvq5/xpLSNflfjRyRH8fMnRzbo3uhpXNs=";
|
||||
|
@ -24,11 +26,15 @@ let
|
|||
"1.1-8.14".sha256 = "sha256-6vViCNQl6BnGgOHX3P/OLfFXN4aUfv4RbDokfz2BgQI=";
|
||||
"1.1-8.15".sha256 = "sha256-qCD3wFW4E+8vSVk4XoZ0EU4PVya0al+JorzS9nzmR/0=";
|
||||
"1.1-8.16".sha256 = "sha256-cTK4ptxpPPlqxAhasZFX3RpSlsoTZwhTqs2A3BZy9sA=";
|
||||
"1.2.1-8.17".sha256 = "sha256-FP4upuRsG8B5Q5FIr76t+ecRirrOUX0D1QiLq0/zMyE=";
|
||||
"1.2.1-8.18".sha256 = "sha256-49g5db2Bv8HpltptJdxA7zrmgNFGC6arx5h2mKHhrko=";
|
||||
};
|
||||
releaseRev = v: "v${v}";
|
||||
|
||||
# list of core metacoq packages sorted by dependency order
|
||||
packages = [ "template-coq" "pcuic" "safechecker" "erasure" "all" ];
|
||||
packages = if versionAtLeast coq.coq-version "8.17"
|
||||
then [ "utils" "common" "template-coq" "pcuic" "safechecker" "template-pcuic" "erasure" "quotation" "safechecker-plugin" "erasure-plugin" "all" ]
|
||||
else [ "template-coq" "pcuic" "safechecker" "erasure" "all" ];
|
||||
|
||||
template-coq = metacoq_ "template-coq";
|
||||
|
||||
|
@ -47,7 +53,16 @@ let
|
|||
mlPlugin = true;
|
||||
propagatedBuildInputs = [ equations coq.ocamlPackages.zarith ] ++ metacoq-deps;
|
||||
|
||||
patchPhase = ''
|
||||
patchPhase = if versionAtLeast coq.coq-version "8.17" then ''
|
||||
patchShebangs ./configure.sh
|
||||
patchShebangs ./template-coq/update_plugin.sh
|
||||
patchShebangs ./template-coq/gen-src/to-lower.sh
|
||||
patchShebangs ./safechecker-plugin/clean_extraction.sh
|
||||
patchShebangs ./erasure-plugin/clean_extraction.sh
|
||||
echo "CAMLFLAGS+=-w -60 # Unused module" >> ./safechecker/Makefile.plugin.local
|
||||
sed -i -e 's/mv $i $newi;/mv $i tmp; mv tmp $newi;/' ./template-coq/gen-src/to-lower.sh ./safechecker-plugin/clean_extraction.sh ./erasure-plugin/clean_extraction.sh
|
||||
'' else ''
|
||||
patchShebangs ./configure.sh
|
||||
patchShebangs ./template-coq/update_plugin.sh
|
||||
patchShebangs ./template-coq/gen-src/to-lower.sh
|
||||
patchShebangs ./pcuic/clean_extraction.sh
|
||||
|
@ -59,7 +74,7 @@ let
|
|||
|
||||
configurePhase = optionalString (package == "all") pkgallMake + ''
|
||||
touch ${pkgpath}/metacoq-config
|
||||
'' + optionalString (elem package ["safechecker" "erasure"]) ''
|
||||
'' + optionalString (elem package ["safechecker" "erasure" "template-pcuic" "quotation" "safechecker-plugin" "erasure-plugin"]) ''
|
||||
echo "-I ${template-coq}/lib/coq/${coq.coq-version}/user-contrib/MetaCoq/Template/" > ${pkgpath}/metacoq-config
|
||||
'' + optionalString (package == "single") ''
|
||||
./configure.sh local
|
||||
|
|
|
@ -1,32 +1,97 @@
|
|||
# cuda-modules
|
||||
# Cuda modules
|
||||
|
||||
> [!NOTE]
|
||||
> This document is meant to help CUDA maintainers understand the structure of the CUDA packages in Nixpkgs. It is not meant to be a user-facing document.
|
||||
> This document is meant to help CUDA maintainers understand the structure of
|
||||
> the CUDA packages in Nixpkgs. It is not meant to be a user-facing document.
|
||||
> For a user-facing document, see [the CUDA section of the manual](../../../doc/languages-frameworks/cuda.section.md).
|
||||
|
||||
The files in this directory are added (in some way) to the `cudaPackages` package set by [cuda-packages.nix](../../top-level/cuda-packages.nix).
|
||||
The files in this directory are added (in some way) to the `cudaPackages`
|
||||
package set by [cuda-packages.nix](../../top-level/cuda-packages.nix).
|
||||
|
||||
## Top-level files
|
||||
|
||||
Top-level nix files are included in the initial creation of the `cudaPackages` scope. These are typically required for the creation of the finalized `cudaPackages` scope:
|
||||
Top-level nix files are included in the initial creation of the `cudaPackages`
|
||||
scope. These are typically required for the creation of the finalized
|
||||
`cudaPackages` scope:
|
||||
|
||||
- `backend-stdenv.nix`: Standard environment for CUDA packages.
|
||||
- `flags.nix`: Flags set, or consumed by, NVCC in order to build packages.
|
||||
- `gpus.nix`: A list of supported NVIDIA GPUs.
|
||||
- `nvcc-compatibilities.nix`: NVCC releases and the version range of GCC/Clang they support.
|
||||
- `nvcc-compatibilities.nix`: NVCC releases and the version range of GCC/Clang
|
||||
they support.
|
||||
|
||||
## Top-level directories
|
||||
|
||||
- `cuda`: CUDA redistributables! Provides extension to `cudaPackages` scope.
|
||||
- `cudatoolkit`: monolothic CUDA Toolkit run-file installer. Provides extension to `cudaPackages` scope.
|
||||
- `cudatoolkit`: monolothic CUDA Toolkit run-file installer. Provides extension
|
||||
to `cudaPackages` scope.
|
||||
- `cudnn`: NVIDIA cuDNN library.
|
||||
- `cutensor`: NVIDIA cuTENSOR library.
|
||||
- `generic-builders`:
|
||||
- Contains a builder `manifest.nix` which operates on the `Manifest` type defined in `modules/generic/manifests`. Most packages are built using this builder.
|
||||
- Contains a builder `multiplex.nix` which leverages the Manifest builder. In short, the Multiplex builder adds multiple versions of a single package to single instance of the CUDA Packages package set. It is used primarily for packages like `cudnn` and `cutensor`.
|
||||
- `modules`: Nixpkgs modules to check the shape and content of CUDA redistributable and feature manifests. These modules additionally use shims provided by some CUDA packages to allow them to re-use the `genericManifestBuilder`, even if they don't have manifest files of their own. `cudnn` and `tensorrt` are examples of packages which provide such shims. These modules are further described in the [Modules](./modules/README.md) documentation.
|
||||
- Contains a builder `manifest.nix` which operates on the `Manifest` type
|
||||
defined in `modules/generic/manifests`. Most packages are built using this
|
||||
builder.
|
||||
- Contains a builder `multiplex.nix` which leverages the Manifest builder. In
|
||||
short, the Multiplex builder adds multiple versions of a single package to
|
||||
single instance of the CUDA Packages package set. It is used primarily for
|
||||
packages like `cudnn` and `cutensor`.
|
||||
- `modules`: Nixpkgs modules to check the shape and content of CUDA
|
||||
redistributable and feature manifests. These modules additionally use shims
|
||||
provided by some CUDA packages to allow them to re-use the
|
||||
`genericManifestBuilder`, even if they don't have manifest files of their
|
||||
own. `cudnn` and `tensorrt` are examples of packages which provide such
|
||||
shims. These modules are further described in the
|
||||
[Modules](./modules/README.md) documentation.
|
||||
- `nccl`: NVIDIA NCCL library.
|
||||
- `nccl-tests`: NVIDIA NCCL tests.
|
||||
- `saxpy`: Example CMake project that uses CUDA.
|
||||
- `setup-hooks`: Nixpkgs setup hooks for CUDA.
|
||||
- `tensorrt`: NVIDIA TensorRT library.
|
||||
|
||||
## Distinguished packages
|
||||
|
||||
### Cuda compatibility
|
||||
|
||||
[Cuda Compatibility](https://docs.nvidia.com/deploy/cuda-compatibility/),
|
||||
available as `cudaPackages.cuda_compat`, is a component which makes it possible
|
||||
to run applications built against a newer CUDA toolkit (for example CUDA 12) on
|
||||
a machine with an older CUDA driver (for example CUDA 11), which isn't possible
|
||||
out of the box. At the time of writing, Cuda Compatibility is only available on
|
||||
the Nvidia Jetson architecture, but Nvidia might release support for more
|
||||
architectures in the future.
|
||||
|
||||
As Cuda Compatibility strictly increases the range of supported applications, we
|
||||
try our best to enable it by default on supported platforms.
|
||||
|
||||
#### Functioning
|
||||
|
||||
`cuda_compat` simply provides a new `libcuda.so` (and associated variants) that
|
||||
needs to be used in place of the default CUDA driver's `libcuda.so`. However,
|
||||
the other shared libraries of the default driver must still be accessible:
|
||||
`cuda_compat` isn't a complete drop-in replacement for the driver (and that's
|
||||
the point, otherwise, it would just be a newer driver).
|
||||
|
||||
Nvidia's recommendation is to set `LD_LIBRARY_PATH` to points to `cuda_compat`'s
|
||||
driver. This is fine for a manual, one-shot usage, but in general setting
|
||||
`LD_LIBRARY_PATH` is a red flag. This is global state which short-circuits most
|
||||
of other dynamic libraries resolution mechanisms and can break things in
|
||||
non-obvious ways, especially with other Nix-built software.
|
||||
|
||||
#### Cuda compat with Nix
|
||||
|
||||
Since `cuda_compat` is a known derivation, the easy way to do this in Nix would
|
||||
be to add `cuda_compat` as a dependency of CUDA libraries and applications and
|
||||
let Nix does its magic by filling the `DT_RUNPATH` fields. However,
|
||||
`cuda_compat` itself depends on `libnvrm_mem` and `libnvrm_gpu` which are loaded
|
||||
dynamically at runtime from `/run/opengl-driver`. This doesn't please the Nix
|
||||
sandbox when building, which can't find those (a second minor issue is that
|
||||
`addOpenGLRunpathHook` prepends the `/run/opengl-driver` path, so that would
|
||||
still take precedence).
|
||||
|
||||
The current solution is to do something similar to `addOpenGLRunpathHook`: the
|
||||
`addCudaCompatRunpathHook` prepends to the path to `cuda_compat`'s `libcuda.so`
|
||||
to the `DT_RUNPATH` of whichever package includes the hook as a dependency, and
|
||||
we include the hook by default for packages in `cudaPackages` (by adding it as a
|
||||
inputs in `genericManifestBuilder`). We also make sure it's included after
|
||||
`addOpenGLRunpathHook`, so that it appears _before_ in the `DT_RUNPATH` and
|
||||
takes precedence.
|
||||
|
|
|
@ -45,7 +45,7 @@ attrsets.filterAttrs (attr: _: (builtins.hasAttr attr prev)) {
|
|||
cuda_compat = prev.cuda_compat.overrideAttrs (
|
||||
prevAttrs: {
|
||||
env.autoPatchelfIgnoreMissingDeps =
|
||||
prevAttrs.env.autoPatchelfIgnoreMissingDeps + " libnvrm_gpu.so libnvrm_mem.so";
|
||||
prevAttrs.env.autoPatchelfIgnoreMissingDeps + " libnvrm_gpu.so libnvrm_mem.so libnvdla_runtime.so";
|
||||
# `cuda_compat` only works on aarch64-linux, and only when building for Jetson devices.
|
||||
brokenConditions = prevAttrs.brokenConditions // {
|
||||
"Trying to use cuda_compat on aarch64-linux targeting non-Jetson devices" =
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
# General callPackage-supplied arguments
|
||||
autoAddOpenGLRunpathHook,
|
||||
autoAddCudaCompatRunpathHook,
|
||||
autoPatchelfHook,
|
||||
backendStdenv,
|
||||
fetchurl,
|
||||
|
@ -126,6 +127,14 @@ backendStdenv.mkDerivation (
|
|||
# Check e.g. with `patchelf --print-rpath path/to/my/binary
|
||||
autoAddOpenGLRunpathHook
|
||||
markForCudatoolkitRootHook
|
||||
]
|
||||
# autoAddCudaCompatRunpathHook depends on cuda_compat and would cause
|
||||
# infinite recursion if applied to `cuda_compat` itself (beside the fact
|
||||
# that it doesn't make sense in the first place)
|
||||
++ lib.optionals (pname != "cuda_compat" && flags.isJetsonBuild) [
|
||||
# autoAddCudaCompatRunpathHook must appear AFTER autoAddOpenGLRunpathHook.
|
||||
# See its documentation in ./setup-hooks/extension.nix.
|
||||
autoAddCudaCompatRunpathHook
|
||||
];
|
||||
|
||||
buildInputs =
|
||||
|
|
|
@ -1,27 +1,56 @@
|
|||
# Modules
|
||||
|
||||
Modules as they are used in `modules` exist primarily to check the shape and content of CUDA redistributable and feature manifests. They are ultimately meant to reduce the repetitive nature of repackaging CUDA redistributables.
|
||||
Modules as they are used in `modules` exist primarily to check the shape and
|
||||
content of CUDA redistributable and feature manifests. They are ultimately meant
|
||||
to reduce the repetitive nature of repackaging CUDA redistributables.
|
||||
|
||||
Building most redistributables follows a pattern of a manifest indicating which packages are available at a location, their versions, and their hashes. To avoid creating builders for each and every derivation, modules serve as a way for us to use a single `genericManifestBuilder` to build all redistributables.
|
||||
Building most redistributables follows a pattern of a manifest indicating which
|
||||
packages are available at a location, their versions, and their hashes. To avoid
|
||||
creating builders for each and every derivation, modules serve as a way for us
|
||||
to use a single `genericManifestBuilder` to build all redistributables.
|
||||
|
||||
## `generic`
|
||||
|
||||
The modules in `generic` are reusable components meant to check the shape and content of NVIDIA's CUDA redistributable manifests, our feature manifests (which are derived from NVIDIA's manifests), or hand-crafted Nix expressions describing available packages. They are used by the `genericManifestBuilder` to build CUDA redistributables.
|
||||
The modules in `generic` are reusable components meant to check the shape and
|
||||
content of NVIDIA's CUDA redistributable manifests, our feature manifests (which
|
||||
are derived from NVIDIA's manifests), or hand-crafted Nix expressions describing
|
||||
available packages. They are used by the `genericManifestBuilder` to build CUDA
|
||||
redistributables.
|
||||
|
||||
Generally, each package which relies on manifests or Nix release expressions will create an alias to the relevant generic module. For example, the [module for CUDNN](./cudnn/default.nix) aliases the generic module for release expressions, while the [module for CUDA redistributables](./cuda/default.nix) aliases the generic module for manifests.
|
||||
Generally, each package which relies on manifests or Nix release expressions
|
||||
will create an alias to the relevant generic module. For example, the [module
|
||||
for CUDNN](./cudnn/default.nix) aliases the generic module for release
|
||||
expressions, while the [module for CUDA redistributables](./cuda/default.nix)
|
||||
aliases the generic module for manifests.
|
||||
|
||||
Alternatively, additional fields or values may need to be configured to account for the particulars of a package. For example, while the release expressions for [CUDNN](./cudnn/releases.nix) and [TensorRT](./tensorrt/releases.nix) are very close, they differ slightly in the fields they have. The [module for CUDNN](./modules/cudnn/default.nix) is able to use the generic module for release expressions, while the [module for TensorRT](./modules/tensorrt/default.nix) must add additional fields to the generic module.
|
||||
Alternatively, additional fields or values may need to be configured to account
|
||||
for the particulars of a package. For example, while the release expressions for
|
||||
[CUDNN](./cudnn/releases.nix) and [TensorRT](./tensorrt/releases.nix) are very
|
||||
close, they differ slightly in the fields they have. The [module for
|
||||
CUDNN](./modules/cudnn/default.nix) is able to use the generic module for
|
||||
release expressions, while the [module for
|
||||
TensorRT](./modules/tensorrt/default.nix) must add additional fields to the
|
||||
generic module.
|
||||
|
||||
### `manifests`
|
||||
|
||||
The modules in `generic/manifests` define the structure of NVIDIA's CUDA redistributable manifests and our feature manifests.
|
||||
The modules in `generic/manifests` define the structure of NVIDIA's CUDA
|
||||
redistributable manifests and our feature manifests.
|
||||
|
||||
NVIDIA's redistributable manifests are retrieved from their web server, while the feature manifests are produced by [`cuda-redist-find-features`](https://github.com/connorbaker/cuda-redist-find-features).
|
||||
NVIDIA's redistributable manifests are retrieved from their web server, while
|
||||
the feature manifests are produced by
|
||||
[`cuda-redist-find-features`](https://github.com/connorbaker/cuda-redist-find-features).
|
||||
|
||||
### `releases`
|
||||
|
||||
The modules in `generic/releases` define the structure of our hand-crafted Nix expressions containing information necessary to download and repackage CUDA redistributables. These expressions are created when NVIDIA-provided manifests are unavailable or otherwise unusable. For example, though CUDNN has manifests, a bug in NVIDIA's CI/CD causes manifests for different versions of CUDA to use the same name, which leads to the manifests overwriting each other.
|
||||
The modules in `generic/releases` define the structure of our hand-crafted Nix
|
||||
expressions containing information necessary to download and repackage CUDA
|
||||
redistributables. These expressions are created when NVIDIA-provided manifests
|
||||
are unavailable or otherwise unusable. For example, though CUDNN has manifests,
|
||||
a bug in NVIDIA's CI/CD causes manifests for different versions of CUDA to use
|
||||
the same name, which leads to the manifests overwriting each other.
|
||||
|
||||
### `types`
|
||||
|
||||
The modules in `generic/types` define reusable types used in both `generic/manifests` and `generic/releases`.
|
||||
The modules in `generic/types` define reusable types used in both
|
||||
`generic/manifests` and `generic/releases`.
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
# shellcheck shell=bash
|
||||
# Patch all dynamically linked, ELF files with the CUDA driver (libcuda.so)
|
||||
# coming from the cuda_compat package by adding it to the RUNPATH.
|
||||
echo "Sourcing auto-add-cuda-compat-runpath-hook"
|
||||
|
||||
elfHasDynamicSection() {
|
||||
patchelf --print-rpath "$1" >& /dev/null
|
||||
}
|
||||
|
||||
autoAddCudaCompatRunpathPhase() (
|
||||
local outputPaths
|
||||
mapfile -t outputPaths < <(for o in $(getAllOutputNames); do echo "${!o}"; done)
|
||||
find "${outputPaths[@]}" -type f -executable -print0 | while IFS= read -rd "" f; do
|
||||
if isELF "$f"; then
|
||||
# patchelf returns an error on statically linked ELF files
|
||||
if elfHasDynamicSection "$f" ; then
|
||||
echo "autoAddCudaCompatRunpathHook: patching $f"
|
||||
local origRpath="$(patchelf --print-rpath "$f")"
|
||||
patchelf --set-rpath "@libcudaPath@:$origRpath" "$f"
|
||||
elif (( "${NIX_DEBUG:-0}" >= 1 )) ; then
|
||||
echo "autoAddCudaCompatRunpathHook: skipping a statically-linked ELF file $f"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
)
|
||||
|
||||
postFixupHooks+=(autoAddCudaCompatRunpathPhase)
|
|
@ -44,4 +44,26 @@ final: _: {
|
|||
./auto-add-opengl-runpath-hook.sh
|
||||
)
|
||||
{};
|
||||
|
||||
# autoAddCudaCompatRunpathHook hook must be added AFTER `setupCudaHook`. Both
|
||||
# hooks prepend a path with `libcuda.so` to the `DT_RUNPATH` section of
|
||||
# patched elf files, but `cuda_compat` path must take precedence (otherwise,
|
||||
# it doesn't have any effect) and thus appear first. Meaning this hook must be
|
||||
# executed last.
|
||||
autoAddCudaCompatRunpathHook =
|
||||
final.callPackage
|
||||
(
|
||||
{makeSetupHook, cuda_compat}:
|
||||
makeSetupHook
|
||||
{
|
||||
name = "auto-add-cuda-compat-runpath-hook";
|
||||
substitutions = {
|
||||
# Hotfix Ofborg evaluation
|
||||
libcudaPath = if final.flags.isJetsonBuild then "${cuda_compat}/compat" else null;
|
||||
};
|
||||
meta.broken = !final.flags.isJetsonBuild;
|
||||
}
|
||||
./auto-add-cuda-compat-runpath.sh
|
||||
)
|
||||
{};
|
||||
}
|
||||
|
|
|
@ -19,6 +19,8 @@ stdenv.mkDerivation rec {
|
|||
cmakeFlags = [
|
||||
# file RPATH_CHANGE could not write new RPATH
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
||||
# fix build with gcc 11+
|
||||
"-DCMAKE_CXX_STANDARD=14"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -58,7 +58,7 @@ stdenv.mkDerivation {
|
|||
};
|
||||
|
||||
strictDeps = true;
|
||||
nativeBuildInputs = lib.optionals stdenv.isDarwin [ autoconf269 automake libtool ];
|
||||
nativeBuildInputs = [ autoconf269 automake libtool ];
|
||||
buildInputs = [libsigsegv]
|
||||
++ lib.optional (gettext != null) gettext
|
||||
++ lib.optional (ncurses != null) ncurses
|
||||
|
@ -81,6 +81,7 @@ stdenv.mkDerivation {
|
|||
postPatch = ''
|
||||
sed -e 's@9090@64237@g' -i tests/socket.tst
|
||||
sed -i 's@/bin/pwd@${coreutils}&@' src/clisp-link.in
|
||||
sed -i 's@1\.16\.2@${automake.version}@' src/aclocal.m4
|
||||
find . -type f | xargs sed -e 's/-lICE/-lXau &/' -i
|
||||
'';
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ builder rec {
|
|||
foreign function call interface, and powerful string processing.
|
||||
'';
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ ludo lovek323 vrthra ];
|
||||
maintainers = with maintainers; [ ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -47,9 +47,6 @@ let
|
|||
toPythonModule = x: x; # Application does not provide modules.
|
||||
}));
|
||||
|
||||
# See build-setupcfg/default.nix for documentation.
|
||||
buildSetupcfg = import ../../../build-support/build-setupcfg lib self;
|
||||
|
||||
# Check whether a derivation provides a Python module.
|
||||
hasPythonModule = drv: drv?pythonModule && drv.pythonModule == python;
|
||||
|
||||
|
@ -92,13 +89,11 @@ let
|
|||
disabledIf = x: drv: if x then disabled drv else drv;
|
||||
|
||||
in {
|
||||
|
||||
inherit lib pkgs stdenv;
|
||||
inherit (python.passthru) isPy27 isPy37 isPy38 isPy39 isPy310 isPy311 isPy3k isPyPy pythonAtLeast pythonOlder;
|
||||
inherit buildPythonPackage buildPythonApplication;
|
||||
inherit hasPythonModule requiredPythonModules makePythonPath disabled disabledIf;
|
||||
inherit toPythonModule toPythonApplication;
|
||||
inherit buildSetupcfg;
|
||||
|
||||
python = toPythonModule python;
|
||||
# Dont take pythonPackages from "global" pkgs scope to avoid mixing python versions
|
||||
|
|
|
@ -1,35 +1,50 @@
|
|||
{ lib, stdenv, fetchFromGitHub, rakudo, makeWrapper }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rakudo
|
||||
, makeBinaryWrapper
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "zef";
|
||||
version = "0.21.0";
|
||||
version = "0.21.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ugexe";
|
||||
repo = "zef";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-QVUnn9G28epoUEcK8mwm8S2wDQ/tv5B3Zds7bTUFwlw=";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-ji+KTxAOPZhuGryK0+svsVkU+HC1egKZWOboSBUON+s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ rakudo ];
|
||||
nativeBuildInputs = [
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
rakudo
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out"
|
||||
# TODO: Find better solution. zef stores cache stuff in $HOME with the
|
||||
# default config.
|
||||
env HOME=$TMPDIR ${rakudo}/bin/raku -I. ./bin/zef --/depends --/test-depends --/build-depends --install-to=$out install .
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup =''
|
||||
wrapProgram $out/bin/zef --prefix RAKUDOLIB , "inst#$out"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Raku / Perl6 Module Management";
|
||||
homepage = "https://github.com/ugexe/zef";
|
||||
license = licenses.artistic2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ sgo ];
|
||||
license = lib.licenses.artistic2;
|
||||
mainProgram = "zef";
|
||||
maintainers = with lib.maintainers; [ sgo ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
@ -1,20 +1,32 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
||||
, mbelib, serialdv
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, mbelib
|
||||
, serialdv
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dsdcc";
|
||||
version = "1.9.4";
|
||||
version = "1.9.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "f4exb";
|
||||
repo = "dsdcc";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-EsjmU0LQOXnOoTFrnn63hAbvqbE6NVlSQTngot5Zuf4=";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-DMCk29O2Lmt2tjo6j5e4ZdZeDL3ZFUh66Sm6TGrIaeU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
buildInputs = [ mbelib serialdv ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
mbelib
|
||||
serialdv
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_MBELIB=ON"
|
||||
|
@ -25,11 +37,12 @@ stdenv.mkDerivation rec {
|
|||
--replace '=''${exec_prefix}//' '=/'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Digital Speech Decoder (DSD) rewritten as a C++ library";
|
||||
homepage = "https://github.com/f4exb/dsdcc";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ alexwinter ];
|
||||
platforms = platforms.unix;
|
||||
license = lib.licenses.gpl3;
|
||||
mainProgram = "dsdccx";
|
||||
maintainers = with lib.maintainers; [ alexwinter ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
@ -54,14 +54,14 @@
|
|||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "flatpak";
|
||||
version = "1.14.4";
|
||||
version = "1.14.5";
|
||||
|
||||
# TODO: split out lib once we figure out what to do with triggerdir
|
||||
outputs = [ "out" "dev" "man" "doc" "devdoc" "installedTests" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/flatpak/flatpak/releases/download/${finalAttrs.version}/flatpak-${finalAttrs.version}.tar.xz";
|
||||
sha256 = "sha256-ijTb0LZ8Q051mLmOxpCVPQRvDbJuSArq+0bXKuxxZ5k="; # Taken from https://github.com/flatpak/flatpak/releases/
|
||||
sha256 = "sha256-W3DGTOesE04eoIARJW5COuXFTydyl0QVg/d9AT8n/6w="; # Taken from https://github.com/flatpak/flatpak/releases/
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
|
|
@ -63,7 +63,7 @@ index afa11a6b..5b12055f 100755
|
|||
flatpak build-finish ${DIR} >&2
|
||||
mkdir -p repos
|
||||
diff --git a/tests/make-test-runtime.sh b/tests/make-test-runtime.sh
|
||||
index 4ba950df..fd50fab3 100755
|
||||
index 6345ff58..fd50fab3 100755
|
||||
--- a/tests/make-test-runtime.sh
|
||||
+++ b/tests/make-test-runtime.sh
|
||||
@@ -28,9 +28,10 @@ EOF
|
||||
|
@ -78,7 +78,7 @@ index 4ba950df..fd50fab3 100755
|
|||
mkdir -p ${DIR}/usr/bin
|
||||
mkdir -p ${DIR}/usr/lib
|
||||
ln -s ../lib ${DIR}/usr/lib64
|
||||
@@ -40,40 +41,17 @@ if test -f /sbin/ldconfig.real; then
|
||||
@@ -40,46 +41,17 @@ if test -f /sbin/ldconfig.real; then
|
||||
else
|
||||
cp "$(type -P ldconfig)" "${DIR}/usr/bin"
|
||||
fi
|
||||
|
@ -89,6 +89,12 @@ index 4ba950df..fd50fab3 100755
|
|||
- local f=$1
|
||||
- shift
|
||||
-
|
||||
- # Check if the program is installed
|
||||
- if ! command -v "${f}" &> /dev/null; then
|
||||
- echo "${f} not found"
|
||||
- exit 1
|
||||
- fi
|
||||
-
|
||||
- if grep -qFe "${f}" $BINS; then
|
||||
- # Already handled
|
||||
- return 0
|
||||
|
@ -129,7 +135,7 @@ index 4ba950df..fd50fab3 100755
|
|||
done
|
||||
ln -s bash ${DIR}/usr/bin/sh
|
||||
|
||||
@@ -84,11 +62,13 @@ echo "Hello world, from a runtime$EXTRA"
|
||||
@@ -90,11 +62,13 @@ echo "Hello world, from a runtime$EXTRA"
|
||||
EOF
|
||||
chmod a+x ${DIR}/usr/bin/runtime_hello.sh
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
diff --git a/common/flatpak-run.c b/common/flatpak-run.c
|
||||
index 8fa8c0e0..e1cdeba0 100644
|
||||
index 6f54a9d0..102d9b90 100644
|
||||
--- a/common/flatpak-run.c
|
||||
+++ b/common/flatpak-run.c
|
||||
@@ -1900,6 +1900,7 @@ static const ExportData default_exports[] = {
|
||||
{"XKB_CONFIG_ROOT", NULL},
|
||||
{"GIO_EXTRA_MODULES", NULL},
|
||||
@@ -1902,6 +1902,7 @@ static const ExportData default_exports[] = {
|
||||
{"GDK_BACKEND", NULL},
|
||||
{"VK_DRIVER_FILES", NULL},
|
||||
{"VK_ICD_FILENAMES", NULL},
|
||||
+ {"GDK_PIXBUF_MODULE_FILE", NULL},
|
||||
};
|
||||
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gensio";
|
||||
version = "2.7.7";
|
||||
version = "2.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cminyard";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-fm850eDqKhvjwU5RwdwAro4R23yRn41ePn5++8MXHZ0=";
|
||||
sha256 = "sha256-SwY9FAUljaxap2ZlPS3JJ8VkYiJFWoSLU1miEQIEerE=";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
|
|
|
@ -1,18 +1,33 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, darwin
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "ode";
|
||||
version = "0.16.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://bitbucket.org/odedevs/${pname}/downloads/${pname}-${version}.tar.gz";
|
||||
sha256 = "sha256-cQN7goHGyGsKVXKfkNXbaXq+TL7B2BGBV+ANSOwlNGc=";
|
||||
url = "https://bitbucket.org/odedevs/ode/downloads/ode-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-cQN7goHGyGsKVXKfkNXbaXq+TL7B2BGBV+ANSOwlNGc=";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
darwin.apple_sdk.frameworks.GLUT
|
||||
];
|
||||
|
||||
env.CXXFLAGS = lib.optionalString stdenv.cc.isClang (toString [
|
||||
"-std=c++14"
|
||||
"-Wno-error=c++11-narrowing"
|
||||
]);
|
||||
|
||||
meta = with lib; {
|
||||
description = "Open Dynamics Engine";
|
||||
homepage = "https://www.ode.org";
|
||||
platforms = platforms.linux;
|
||||
license = with licenses; [ bsd3 lgpl21 lgpl3 zlib ];
|
||||
license = with licenses; [ bsd3 lgpl21Only lgpl3Only zlib ];
|
||||
maintainers = with maintainers; [ wegank ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
@ -50,7 +50,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-fPIC";
|
||||
env.NIX_CFLAGS_COMPILE = toString ([
|
||||
"-fPIC"
|
||||
] ++ lib.optionals stdenv.cc.isClang [
|
||||
"-Wno-error=enum-constexpr-conversion"
|
||||
]);
|
||||
|
||||
cmakeBuildType = if debug then "Debug" else "Release";
|
||||
|
||||
|
|
14
pkgs/development/libraries/physics/apfel/cmake.patch
Normal file
14
pkgs/development/libraries/physics/apfel/cmake.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -46,8 +46,8 @@ message(STATUS "APFEL: APFEL_DOWNLOAD_PDFS=${APFEL_DOWNLOAD_PDFS}")
|
||||
# CONFIG SCRIPT ========================================================
|
||||
set(prefix ${CMAKE_INSTALL_PREFIX})
|
||||
set(exec_prefix "${prefix}")
|
||||
-set(includedir "${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
-set(libdir "${prefix}/${CMAKE_INSTALL_LIBDIR}")
|
||||
+set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
|
||||
+set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
|
||||
set(PACKAGE_VERSION "${apfel_VERSION}")
|
||||
configure_file("${PROJECT_SOURCE_DIR}/bin/apfel-config.in" "${PROJECT_BINARY_DIR}/bin/apfel-config")
|
||||
configure_file("${PROJECT_SOURCE_DIR}/bin/apfel.in" "${PROJECT_BINARY_DIR}/bin/apfel")
|
|
@ -1,28 +1,59 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gfortran, lhapdf, python3, zlib }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, gfortran
|
||||
, lhapdf
|
||||
, python3
|
||||
, swig
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "apfel";
|
||||
version = "3.0.6";
|
||||
version = "3.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "scarrazza";
|
||||
repo = "apfel";
|
||||
rev = version;
|
||||
sha256 = "sha256-fRdJ+C92tEC75iUwP9Tmm/EswrlA52eUo5fBjfieH9o=";
|
||||
hash = "sha256-RXzHcLgitIk+6pINqcvpQv7QpDpAuFrOHKqjwZ0K5zI=";
|
||||
};
|
||||
|
||||
# needed for aarch64-darwin
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
patches = [
|
||||
# https://github.com/scarrazza/apfel/pull/54
|
||||
./cmake.patch
|
||||
];
|
||||
|
||||
buildInputs = [ gfortran lhapdf python3 zlib ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
swig
|
||||
];
|
||||
buildInputs = [
|
||||
gfortran
|
||||
lhapdf
|
||||
python3
|
||||
zlib
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
cmakeFlags = [
|
||||
"-DAPFEL_DOWNLOAD_PDFS=OFF"
|
||||
"-DAPFEL_Python_SITEARCH=autoprefix"
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
nativeCheckInputs = [
|
||||
lhapdf.pdf_sets.NNPDF23_nlo_as_0118
|
||||
lhapdf.pdf_sets.NNPDF31_nnlo_as_0118
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = "-DAPFEL_VERSION=${version}";
|
||||
|
||||
meta = with lib; {
|
||||
description = "A PDF Evolution Library";
|
||||
license = licenses.gpl3Plus;
|
||||
homepage = "https://apfel.mi.infn.it/";
|
||||
platforms = platforms.unix;
|
||||
homepage = "https://apfel.mi.infn.it/";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ veprbl ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,30 +1,14 @@
|
|||
{ lib, stdenv, fetchurl, fetchpatch, python, makeWrapper }:
|
||||
{ lib, stdenv, fetchurl, python, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lhapdf";
|
||||
version = "6.5.3";
|
||||
version = "6.5.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
|
||||
sha256 = "sha256-V0Nc1pXilwZdU+ab0pCQdlyTSTa2qXX/jFWXZvIjA1k=";
|
||||
sha256 = "sha256-JEOksyzDsFl8gki9biVwOs6ckaeiU8X2CxtUKO+chp4=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# avoid silent compilation failures
|
||||
(fetchpatch {
|
||||
name = "lhapdf-propagate_returncode.patch";
|
||||
url = "https://gitlab.com/hepcedar/lhapdf/-/commit/2806ac795c7e4a69281d9c2a6a8bba5423f37e74.diff";
|
||||
hash = "sha256-j8txlt0n5gpUy9zeuWKx+KRXL3HMMaGcwOxr908966k=";
|
||||
})
|
||||
|
||||
# workaround "ld: -stack_size option can only be used when linking a main executable" on darwin
|
||||
(fetchpatch {
|
||||
name = "lhapdf-Wl_stack_size.patch";
|
||||
url = "https://gitlab.com/hepcedar/lhapdf/-/commit/463764d6613837b6ab57ecaf13bc61be2349e5e4.diff";
|
||||
hash = "sha256-AbDs7gtU5HsJG5n/solMzu2bjX1juxfUIqIt5KmNffU=";
|
||||
})
|
||||
];
|
||||
|
||||
# The Apple SDK only exports locale_t from xlocale.h whereas glibc
|
||||
# had decided that xlocale.h should be a part of locale.h
|
||||
postPatch = lib.optionalString (stdenv.isDarwin && stdenv.cc.isGNU) ''
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, python
|
||||
, root
|
||||
, makeWrapper
|
||||
|
@ -11,22 +10,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "yoda";
|
||||
version = "1.9.8";
|
||||
version = "1.9.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
|
||||
hash = "sha256-e8MGJGirulCv8+y4sizmdxlgNgCYkGiO9FM6qn+S5uQ=";
|
||||
hash = "sha256-68rVU2mhztzuOi3gWUB8hRZSukRJURP1wJ2MLlf1Fqo=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# A bugfix https://gitlab.com/hepcedar/yoda/-/merge_requests/116
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/hepcedar/yoda/-/commit/ba1275033522c66bc473dfeffae1a7971e985611.diff";
|
||||
hash = "sha256-/8UJuypiQzywarE+o3BEMtqM+f+YzkHylugi+xTJf+w=";
|
||||
excludes = [ "ChangeLog" ];
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = with python.pkgs; [
|
||||
cython
|
||||
makeWrapper
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tdlib";
|
||||
version = "1.8.21";
|
||||
version = "1.8.22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tdlib";
|
||||
|
@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
|
|||
# The tdlib authors do not set tags for minor versions, but
|
||||
# external programs depending on tdlib constrain the minor
|
||||
# version, hence we set a specific commit with a known version.
|
||||
rev = "3870c29b158b75ca5e48e0eebd6b5c3a7994a000";
|
||||
hash = "sha256-MCzgovcEZa34ZkwbbwfXHm2qitHwL2Tpr8p7+PxNhYk=";
|
||||
rev = "24893faf75d84b2b885f3f7aeb9d5a3c056fa7be";
|
||||
hash = "sha256-4cfnre71+rQSuPrtFJMzIEPYVCZH/W142b4Pn2NxvqI=";
|
||||
};
|
||||
|
||||
buildInputs = [ gperf openssl readline zlib ];
|
||||
|
|
|
@ -12,14 +12,14 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "awscrt";
|
||||
version = "0.19.18";
|
||||
version = "0.19.19";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-NQtu/Y6+4ILqPz5SxZo8PsWUza8B24tIU9zrn+yQyJ0=";
|
||||
hash = "sha256-HBURU13uFGpsJqOC7T6tViWaEFs7fX2CNVOuVn0Djf4=";
|
||||
};
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "dvc-data";
|
||||
version = "2.22.6";
|
||||
version = "2.23.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
|||
owner = "iterative";
|
||||
repo = "dvc-data";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-oHW80TqQe7LCvBpdB0kW8+vKCZ36/zXEssp7+kHUrTA=";
|
||||
hash = "sha256-UsWMlwG1g59I+TIn1uwp6vyzVIBtj1lfchp+3SYognc=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "checkov";
|
||||
version = "3.1.31";
|
||||
version = "3.1.33";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bridgecrewio";
|
||||
repo = "checkov";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-XEkP9J9TkArbjoG/j54o2AxAd/2v60iJ8iQp28k9Pf0=";
|
||||
hash = "sha256-NcjzKA/QvxIoZMzgMmyAQm4KI8kCsj+K9wcI1n+HPbc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
|
|
@ -1,58 +1,58 @@
|
|||
[
|
||||
{
|
||||
"version": "latest",
|
||||
"buildId": "1.0.024941",
|
||||
"publishDate": "2023-10-31T04:54:50.5527205Z",
|
||||
"buildId": "1.0.025241",
|
||||
"publishDate": "2023-11-30T02:51:40.8356813Z",
|
||||
"files": {
|
||||
"linux-x64": {
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.024941/linux/StaticSitesClient",
|
||||
"sha": "bea23499732d615698baf4c9dcafe717fdd4ba8344f2d96740233b0380df79b6"
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.025241/linux/StaticSitesClient",
|
||||
"sha": "e4ccb44c516e03e6dcc2a26a35ffd4c84a61dfea581990dd5c0edb7c12662db0"
|
||||
},
|
||||
"win-x64": {
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.024941/windows/StaticSitesClient.exe",
|
||||
"sha": "a93aa5ec2a17280f3c9c8252948f8c68050c8852770322758ffa3187b6bce1dd"
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.025241/windows/StaticSitesClient.exe",
|
||||
"sha": "4146ac01a488910d6ea066e1c46505048b0c9af2e74ef273c4236b387796712d"
|
||||
},
|
||||
"osx-x64": {
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.024941/macOS/StaticSitesClient",
|
||||
"sha": "57ea66c930aafbf4dea82216e51128b3315ec2db3ab385d41e8d912a3adab2c0"
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.025241/macOS/StaticSitesClient",
|
||||
"sha": "05b213d7861454368d2c9801b0ccc75cfd13cb48f8e121fffaa2ab7e9b5671cd"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "stable",
|
||||
"buildId": "1.0.024941",
|
||||
"publishDate": "2023-10-31T04:54:50.5527205Z",
|
||||
"buildId": "1.0.025241",
|
||||
"publishDate": "2023-11-30T02:51:40.8356813Z",
|
||||
"files": {
|
||||
"linux-x64": {
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.024941/linux/StaticSitesClient",
|
||||
"sha": "bea23499732d615698baf4c9dcafe717fdd4ba8344f2d96740233b0380df79b6"
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.025241/linux/StaticSitesClient",
|
||||
"sha": "e4ccb44c516e03e6dcc2a26a35ffd4c84a61dfea581990dd5c0edb7c12662db0"
|
||||
},
|
||||
"win-x64": {
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.024941/windows/StaticSitesClient.exe",
|
||||
"sha": "a93aa5ec2a17280f3c9c8252948f8c68050c8852770322758ffa3187b6bce1dd"
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.025241/windows/StaticSitesClient.exe",
|
||||
"sha": "4146ac01a488910d6ea066e1c46505048b0c9af2e74ef273c4236b387796712d"
|
||||
},
|
||||
"osx-x64": {
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.024941/macOS/StaticSitesClient",
|
||||
"sha": "57ea66c930aafbf4dea82216e51128b3315ec2db3ab385d41e8d912a3adab2c0"
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.025241/macOS/StaticSitesClient",
|
||||
"sha": "05b213d7861454368d2c9801b0ccc75cfd13cb48f8e121fffaa2ab7e9b5671cd"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"version": "backup",
|
||||
"buildId": "1.0.024871",
|
||||
"publishDate": "2023-10-24T04:09:23.7109231Z",
|
||||
"buildId": "1.0.025142",
|
||||
"publishDate": "2023-11-20T09:32:48.489649Z",
|
||||
"files": {
|
||||
"linux-x64": {
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.024871/linux/StaticSitesClient",
|
||||
"sha": "13d1c02e43dec373be04152f7f8e71974f080440cb9480c3ccb4f83c8c6f036a"
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.025142/linux/StaticSitesClient",
|
||||
"sha": "f36cce34f04b045e3ea5de5c201ce6663925d9680e3b5986b417534898b995b2"
|
||||
},
|
||||
"win-x64": {
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.024871/windows/StaticSitesClient.exe",
|
||||
"sha": "868f221ea77b13cea8c6c41edbecea53bf5171d42dc9376f34615e544a3874f0"
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.025142/windows/StaticSitesClient.exe",
|
||||
"sha": "1e8932e2c4189d40657db888f82dfb030c2d41951421dd9a68712960e7c7fa7b"
|
||||
},
|
||||
"osx-x64": {
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.024871/macOS/StaticSitesClient",
|
||||
"sha": "63c9027a7b5e597ae9e0ad8311b31a587bd977ed758555784d08cc3ff35e80a4"
|
||||
"url": "https://swalocaldeploy.azureedge.net/downloads/1.0.025142/macOS/StaticSitesClient",
|
||||
"sha": "891faef16ae06fc609f787ffce7d6a1816e24fddfcaef9bc10e3b50208fe29aa"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue