Merge master into haskell-updates

This commit is contained in:
github-actions[bot] 2022-01-30 00:08:42 +00:00 committed by GitHub
commit 524447ebae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
113 changed files with 5210 additions and 2538 deletions

View File

@ -4474,7 +4474,7 @@
gordias = { gordias = {
name = "Gordias"; name = "Gordias";
email = "gordias@disroot.org"; email = "gordias@disroot.org";
github = "NotGordias"; github = "gordiasdot";
githubId = 94724133; githubId = 94724133;
keys = [{ keys = [{
longkeyid = "ed25519/0x5D47284830FAA4FA"; longkeyid = "ed25519/0x5D47284830FAA4FA";

View File

@ -169,6 +169,13 @@
<link linkend="opt-services.prosody-filer.enable">services.prosody-filer</link>. <link linkend="opt-services.prosody-filer.enable">services.prosody-filer</link>.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
<link xlink:href="https://github.com/audreyt/ethercalc">ethercalc</link>,
an online collaborative spreadsheet. Available as
<link xlink:href="options.html#opt-services.ethercalc.enable">services.ethercalc</link>.
</para>
</listitem>
<listitem> <listitem>
<para> <para>
<link xlink:href="https://timetagger.app">timetagger</link>, <link xlink:href="https://timetagger.app">timetagger</link>,
@ -515,6 +522,14 @@
wrapper for <literal>assert</literal> conditions. wrapper for <literal>assert</literal> conditions.
</para> </para>
</listitem> </listitem>
<listitem>
<para>
<literal>pkgs.vimPlugins.onedark-nvim</literal> now refers to
<link xlink:href="https://github.com/navarasu/onedark.nvim">navarasu/onedark.nvim</link>
(formerly refers to
<link xlink:href="https://github.com/olimorris/onedarkpro.nvim">olimorris/onedarkpro.nvim</link>).
</para>
</listitem>
</itemizedlist> </itemizedlist>
</section> </section>
<section xml:id="sec-release-22.05-notable-changes"> <section xml:id="sec-release-22.05-notable-changes">

View File

@ -51,6 +51,9 @@ In addition to numerous new and upgraded packages, this release has the followin
- [prosody-filer](https://github.com/ThomasLeister/prosody-filer), a server for handling XMPP HTTP Upload requests. Available at [services.prosody-filer](#opt-services.prosody-filer.enable). - [prosody-filer](https://github.com/ThomasLeister/prosody-filer), a server for handling XMPP HTTP Upload requests. Available at [services.prosody-filer](#opt-services.prosody-filer.enable).
- [ethercalc](https://github.com/audreyt/ethercalc), an online collaborative
spreadsheet. Available as [services.ethercalc](options.html#opt-services.ethercalc.enable).
- [timetagger](https://timetagger.app), an open source time-tracker with an intuitive user experience and powerful reporting. [services.timetagger](options.html#opt-services.timetagger.enable). - [timetagger](https://timetagger.app), an open source time-tracker with an intuitive user experience and powerful reporting. [services.timetagger](options.html#opt-services.timetagger.enable).
- [rstudio-server](https://www.rstudio.com/products/rstudio/#rstudio-server), a browser-based version of the RStudio IDE for the R programming language. Available as [services.rstudio-server](options.html#opt-services.rstudio-server.enable). - [rstudio-server](https://www.rstudio.com/products/rstudio/#rstudio-server), a browser-based version of the RStudio IDE for the R programming language. Available as [services.rstudio-server](options.html#opt-services.rstudio-server.enable).
@ -157,6 +160,9 @@ In addition to numerous new and upgraded packages, this release has the followin
- `lib.assertMsg` and `lib.assertOneOf` no longer return `false` if the passed condition is `false`, `throw`ing the given error message instead (which makes the resulting error message less cluttered). This will not impact the behaviour of code using these functions as intended, namely as top-level wrapper for `assert` conditions. - `lib.assertMsg` and `lib.assertOneOf` no longer return `false` if the passed condition is `false`, `throw`ing the given error message instead (which makes the resulting error message less cluttered). This will not impact the behaviour of code using these functions as intended, namely as top-level wrapper for `assert` conditions.
- `pkgs.vimPlugins.onedark-nvim` now refers to [navarasu/onedark.nvim](https://github.com/navarasu/onedark.nvim)
(formerly refers to [olimorris/onedarkpro.nvim](https://github.com/olimorris/onedarkpro.nvim)).
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. --> <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
## Other Notable Changes {#sec-release-22.05-notable-changes} ## Other Notable Changes {#sec-release-22.05-notable-changes}

View File

@ -1005,6 +1005,7 @@
./services/web-apps/documize.nix ./services/web-apps/documize.nix
./services/web-apps/dokuwiki.nix ./services/web-apps/dokuwiki.nix
./services/web-apps/engelsystem.nix ./services/web-apps/engelsystem.nix
./services/web-apps/ethercalc.nix
./services/web-apps/fluidd.nix ./services/web-apps/fluidd.nix
./services/web-apps/galene.nix ./services/web-apps/galene.nix
./services/web-apps/gerrit.nix ./services/web-apps/gerrit.nix

View File

@ -69,7 +69,8 @@ let
set -e set -e
set +o pipefail set +o pipefail
NIX_CONF_DIR=$PWD \ NIX_CONF_DIR=$PWD \
${cfg.package}/bin/nix show-config ${optionalString (isNixAtLeast "2.3pre") "--no-net --option experimental-features nix-command"} \ ${cfg.package}/bin/nix show-config ${optionalString (isNixAtLeast "2.3pre") "--no-net"} \
${optionalString (isNixAtLeast "2.4pre") "--option experimental-features nix-command"} \
|& sed -e 's/^warning:/error:/' \ |& sed -e 's/^warning:/error:/' \
| (! grep '${if cfg.checkConfig then "^error:" else "^error: unknown setting"}') | (! grep '${if cfg.checkConfig then "^error:" else "^error: unknown setting"}')
set -o pipefail set -o pipefail
@ -88,7 +89,7 @@ let
requireSignedBinaryCaches = "require-sigs"; requireSignedBinaryCaches = "require-sigs";
trustedUsers = "trusted-users"; trustedUsers = "trusted-users";
allowedUsers = "allowed-users"; allowedUsers = "allowed-users";
systemFeatures = "system-feature"; systemFeatures = "system-features";
}; };
semanticConfType = with types; semanticConfType = with types;

View File

@ -183,6 +183,20 @@ in
config = mkIf enableDHCP { config = mkIf enableDHCP {
assertions = [ {
# dhcpcd doesn't start properly with malloc ∉ [ libc scudo ]
# see https://github.com/NixOS/nixpkgs/issues/151696
assertion =
dhcpcd.enablePrivSep
-> elem config.environment.memoryAllocator.provider [ "libc" "scudo" ];
message = ''
dhcpcd with privilege separation is incompatible with chosen system malloc.
Currently only the `libc` and `scudo` allocators are known to work.
To disable dhcpcd's privilege separation, overlay Nixpkgs and override dhcpcd
to set `enablePrivSep = false`.
'';
} ];
systemd.services.dhcpcd = let systemd.services.dhcpcd = let
cfgN = config.networking; cfgN = config.networking;
hasDefaultGatewaySet = (cfgN.defaultGateway != null && cfgN.defaultGateway.address != "") hasDefaultGatewaySet = (cfgN.defaultGateway != null && cfgN.defaultGateway.address != "")

View File

@ -0,0 +1,62 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.ethercalc;
in {
options = {
services.ethercalc = {
enable = mkOption {
default = false;
type = types.bool;
description = ''
ethercalc, an online collaborative spreadsheet server.
Persistent state will be maintained under
<filename>/var/lib/ethercalc</filename>. Upstream supports using a
redis server for storage and recommends the redis backend for
intensive use; however, the Nix module doesn't currently support
redis.
Note that while ethercalc is a good and robust project with an active
issue tracker, there haven't been new commits since the end of 2020.
'';
};
package = mkOption {
default = pkgs.ethercalc;
defaultText = literalExpression "pkgs.ethercalc";
type = types.package;
description = "Ethercalc package to use.";
};
host = mkOption {
type = types.str;
default = "0.0.0.0";
description = "Address to listen on (use 0.0.0.0 to allow access from any address).";
};
port = mkOption {
type = types.port;
default = 8000;
description = "Port to bind to.";
};
};
};
config = mkIf cfg.enable {
systemd.services.ethercalc = {
description = "Ethercalc service";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
DynamicUser = true;
ExecStart = "${cfg.package}/bin/ethercalc --host ${cfg.host} --port ${toString cfg.port}";
Restart = "always";
StateDirectory = "ethercalc";
WorkingDirectory = "/var/lib/ethercalc";
};
};
};
}

View File

@ -10,8 +10,7 @@ in {
enable = mkEnableOption "plausible"; enable = mkEnableOption "plausible";
releaseCookiePath = mkOption { releaseCookiePath = mkOption {
default = null; type = with types; either str path;
type = with types; nullOr (either str path);
description = '' description = ''
The path to the file with release cookie. (used for remote connection to the running node). The path to the file with release cookie. (used for remote connection to the running node).
''; '';
@ -235,6 +234,8 @@ in {
script = '' script = ''
export CONFIG_DIR=$CREDENTIALS_DIRECTORY export CONFIG_DIR=$CREDENTIALS_DIRECTORY
export RELEASE_COOKIE="$(< $CREDENTIALS_DIRECTORY/RELEASE_COOKIE )"
# setup # setup
${pkgs.plausible}/createdb.sh ${pkgs.plausible}/createdb.sh
${pkgs.plausible}/migrate.sh ${pkgs.plausible}/migrate.sh
@ -243,10 +244,8 @@ in {
psql -d plausible <<< "UPDATE users SET email_verified=true;" psql -d plausible <<< "UPDATE users SET email_verified=true;"
fi fi
''} ''}
${optionalString (cfg.releaseCookiePath != null) ''
export RELEASE_COOKIE="$(< $CREDENTIALS_DIRECTORY/RELEASE_COOKIE )" exec plausible start
''}
plausible start
''; '';
serviceConfig = { serviceConfig = {
@ -257,8 +256,8 @@ in {
LoadCredential = [ LoadCredential = [
"ADMIN_USER_PWD:${cfg.adminUser.passwordFile}" "ADMIN_USER_PWD:${cfg.adminUser.passwordFile}"
"SECRET_KEY_BASE:${cfg.server.secretKeybaseFile}" "SECRET_KEY_BASE:${cfg.server.secretKeybaseFile}"
] ++ lib.optionals (cfg.mail.smtp.passwordFile != null) [ "SMTP_USER_PWD:${cfg.mail.smtp.passwordFile}"] "RELEASE_COOKIE:${cfg.releaseCookiePath}"
++ lib.optionals (cfg.releaseCookiePath != null) [ "RELEASE_COOKIE:${cfg.releaseCookiePath}"]; ] ++ lib.optionals (cfg.mail.smtp.passwordFile != null) [ "SMTP_USER_PWD:${cfg.mail.smtp.passwordFile}"];
}; };
}; };
} }

View File

@ -306,6 +306,9 @@ let
# The test cannot access the network, so any packages we # The test cannot access the network, so any packages we
# need must be included in the VM. # need must be included in the VM.
system.extraDependencies = with pkgs; [ system.extraDependencies = with pkgs; [
brotli
brotli.dev
brotli.lib
desktop-file-utils desktop-file-utils
docbook5 docbook5
docbook_xsl_ns docbook_xsl_ns
@ -315,6 +318,7 @@ let
ntp ntp
perlPackages.ListCompare perlPackages.ListCompare
perlPackages.XMLLibXML perlPackages.XMLLibXML
python3Minimal
shared-mime-info shared-mime-info
sudo sudo
texinfo texinfo

View File

@ -3,7 +3,7 @@
inherit (pkgs.darwin) cctools; inherit (pkgs.darwin) cctools;
inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices; inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices;
}); });
mysqlPackage = { mysqlPackages = {
inherit (pkgs) mysql57 mysql80; inherit (pkgs) mysql57 mysql80;
}; };
mkTestName = pkg: "mariadb_${builtins.replaceStrings ["."] [""] (lib.versions.majorMinor pkg.version)}"; mkTestName = pkg: "mariadb_${builtins.replaceStrings ["."] [""] (lib.versions.majorMinor pkg.version)}";

View File

@ -142,7 +142,7 @@ let
in in
lib.mapAttrs (_: package: makeMySQLTest { lib.mapAttrs (_: package: makeMySQLTest {
inherit package; inherit package;
hasRocksDB = false; hasMroonga = false; hasRocksDB = false; hasMroonga = false; useSocketAuth = false;
}) mysqlPackages }) mysqlPackages
// (lib.mapAttrs (_: package: makeMySQLTest { // (lib.mapAttrs (_: package: makeMySQLTest {
inherit package; inherit package;

View File

@ -8,6 +8,9 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
virtualisation.memorySize = 4096; virtualisation.memorySize = 4096;
services.plausible = { services.plausible = {
enable = true; enable = true;
releaseCookiePath = "${pkgs.runCommand "cookie" { } ''
${pkgs.openssl}/bin/openssl rand -base64 64 >"$out"
''}";
adminUser = { adminUser = {
email = "admin@example.org"; email = "admin@example.org";
passwordFile = "${pkgs.writeText "pwd" "foobar"}"; passwordFile = "${pkgs.writeText "pwd" "foobar"}";

View File

@ -0,0 +1,53 @@
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, cairo, libxkbcommon
, xcbutilcursor, xcbutilkeysyms, xcbutil, libXrandr, libXinerama, libXcursor
, alsa-lib, libjack2, lv2, gcc-unwrapped }:
stdenv.mkDerivation rec {
pname = "ChowCentaur";
version = "1.4.0";
src = fetchFromGitHub {
owner = "jatinchowdhury18";
repo = "KlonCentaur";
rev = "v${version}";
sha256 = "0mrzlf4a6f25xd7z9xanpyq7ybb4al01dzpjsgi0jkmlmadyhc4h";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
cairo
libxkbcommon
xcbutilcursor
xcbutilkeysyms
xcbutil
libXrandr
libXinerama
libXcursor
alsa-lib
libjack2
lv2
];
cmakeFlags = [
"-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
"-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
];
installPhase = ''
mkdir -p $out/lib/lv2 $out/lib/vst3
cd ChowCentaur/ChowCentaur_artefacts/Release
cp -r LV2/ChowCentaur.lv2 $out/lib/lv2
cp -r VST3/ChowCentaur.vst3 $out/lib/vst3
'';
meta = with lib; {
description =
"Digital emulation of the Klon Centaur guitar pedal using RNNs, Wave Digital Filters, and more";
homepage = "https://github.com/jatinchowdhury18/KlonCentaur";
license = licenses.bsd3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ magnetophon ];
};
}

View File

@ -17,13 +17,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "reaper"; pname = "reaper";
version = "6.43"; version = "6.46";
src = fetchurl { src = fetchurl {
url = "https://www.reaper.fm/files/${lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_linux_${stdenv.hostPlatform.qemuArch}.tar.xz"; url = "https://www.reaper.fm/files/${lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_linux_${stdenv.hostPlatform.qemuArch}.tar.xz";
hash = { hash = {
x86_64-linux = "sha256-VQ91px9YZWbrw31fFQxS+H/6fsjkLDrYU6FtI8eSq6E="; x86_64-linux = "sha256-cHjiO2hRK8gUaq2VfuE9GOtRJ0JyfH2rhdIbK+RxoEM=";
aarch64-linux = "sha256-x6z5+H7ASWiuNL0maNGK05VmJptHdFGRiFf6DgwlZDw="; aarch64-linux = "sha256-j+05SdyDWzI1fekwwQ2RAGontEvppkUWPYfZEtOVXYg=";
}.${stdenv.hostPlatform.system}; }.${stdenv.hostPlatform.system};
}; };

View File

@ -9,13 +9,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "schismtracker"; pname = "schismtracker";
version = "20211116"; version = "20220125";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1kcw4rwphyqh0hwwjsydzwg484xj17rb5lc8pfsixsg77z50ayzz"; sha256 = "sha256-Hqbm5+YyCde/6QuyIy4NE/jG4xNDzeNjEefMr60GEZM=";
}; };
configureFlags = [ "--enable-dependency-tracking" ] configureFlags = [ "--enable-dependency-tracking" ]

View File

@ -1,5 +1,5 @@
{ lib, mkDerivation, fetchFromGitHub, pkg-config, qmake { lib, mkDerivation, fetchFromGitHub, pkg-config, qmake
, python2, qtbase, qttools }: , python3, qtbase, qttools }:
mkDerivation rec { mkDerivation rec {
pname = "tiled"; pname = "tiled";
@ -13,7 +13,7 @@ mkDerivation rec {
}; };
nativeBuildInputs = [ pkg-config qmake ]; nativeBuildInputs = [ pkg-config qmake ];
buildInputs = [ python2 qtbase qttools ]; buildInputs = [ python3 qtbase qttools ];
meta = with lib; { meta = with lib; {
description = "Free, easy to use and flexible tile map editor"; description = "Free, easy to use and flexible tile map editor";

View File

@ -11,11 +11,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "drawio"; pname = "drawio";
version = "16.4.0"; version = "16.5.1";
src = fetchurl { src = fetchurl {
url = "https://github.com/jgraph/drawio-desktop/releases/download/v${version}/drawio-x86_64-${version}.rpm"; url = "https://github.com/jgraph/drawio-desktop/releases/download/v${version}/drawio-x86_64-${version}.rpm";
sha256 = "624f776478b6960adb1be565077f79aed72c95de5e995fc1216b78978c9c6857"; sha256 = "a8ebf2560820d2d05677b9b16fc863f555dde8235b3e34acd7916eee3544eaa9";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -20,13 +20,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "moonlight-qt"; pname = "moonlight-qt";
version = "3.1.4"; version = "3.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "moonlight-stream"; owner = "moonlight-stream";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1sg8svb6xvkczp9slqnlm0b6k0z3bzdi4zzvwzzy21kpj6im9002"; sha256 = "sha256-nvVBjBcuHKSn66Q7iTzslGOCkH6zMFf62zx5dDXSosI=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -32,9 +32,9 @@
} }
}, },
"dev": { "dev": {
"version": "99.0.4840.0", "version": "99.0.4844.11",
"sha256": "0l1azyd7an8nw2gjnn313gn6sljvw6lbd9g59s7d59lpn2bmbc7j", "sha256": "1jkcif839yrhsckx5j1jqsmkhlvhm1gqk3mhvji1mfi4rg1dfd0l",
"sha256bin64": "145qjhdmi39aaw0a3sarlgi67rjhik1xbm62rw7ba0wgnrbvvrjb", "sha256bin64": "01vl7ah3jkryrfnjidv8yq490hyqll6gd0vddy0b98wgyn3h593h",
"deps": { "deps": {
"gn": { "gn": {
"version": "2022-01-10", "version": "2022-01-10",

View File

@ -1,11 +0,0 @@
{ callPackage
, buildGoPackage
, nvidia_x11
, nvidiaGpuSupport
}:
callPackage ./generic.nix {
inherit buildGoPackage nvidia_x11 nvidiaGpuSupport;
version = "1.0.13";
sha256 = "19wlma2y8lpb7p01wb0l20rb6nvrvldz0mm3qfisx33y56ykjyh8";
}

View File

@ -4,7 +4,7 @@
, nvidiaGpuSupport , nvidiaGpuSupport
}: }:
callPackage ./genericModule.nix { callPackage ./generic.nix {
inherit buildGoModule nvidia_x11 nvidiaGpuSupport; inherit buildGoModule nvidia_x11 nvidiaGpuSupport;
version = "1.1.8"; version = "1.1.8";
sha256 = "05k1r157h3jaqzzsrkgc96zcny3mi8dvixc2v1w0lwcxixqk0y2l"; sha256 = "05k1r157h3jaqzzsrkgc96zcny3mi8dvixc2v1w0lwcxixqk0y2l";

View File

@ -4,7 +4,7 @@
, nvidiaGpuSupport , nvidiaGpuSupport
}: }:
callPackage ./genericModule.nix { callPackage ./generic.nix {
inherit buildGoModule nvidia_x11 nvidiaGpuSupport; inherit buildGoModule nvidia_x11 nvidiaGpuSupport;
version = "1.2.3"; version = "1.2.3";
sha256 = "0qjj1pnq2yv4r8dv03m08ii4118drjnswf4n1r95dqh8j3bymv5i"; sha256 = "0qjj1pnq2yv4r8dv03m08ii4118drjnswf4n1r95dqh8j3bymv5i";

View File

@ -1,27 +1,30 @@
{ lib { lib
, buildGoPackage , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, version , version
, sha256 , sha256
, vendorSha256
, nvidiaGpuSupport , nvidiaGpuSupport
, patchelf , patchelf
, nvidia_x11 , nvidia_x11
, nixosTests
}: }:
buildGoPackage rec { buildGoModule rec {
pname = "nomad"; pname = "nomad";
inherit version; inherit version;
rev = "v${version}";
goPackagePath = "github.com/hashicorp/nomad";
subPackages = [ "." ]; subPackages = [ "." ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hashicorp"; owner = "hashicorp";
repo = pname; repo = pname;
inherit rev sha256; rev = "v${version}";
inherit sha256;
}; };
inherit vendorSha256;
nativeBuildInputs = lib.optionals nvidiaGpuSupport [ nativeBuildInputs = lib.optionals nvidiaGpuSupport [
patchelf patchelf
]; ];
@ -39,6 +42,8 @@ buildGoPackage rec {
done done
''; '';
passthru.tests.nomad = nixosTests.nomad;
meta = with lib; { meta = with lib; {
homepage = "https://www.nomadproject.io/"; homepage = "https://www.nomadproject.io/";
description = "A Distributed, Highly Available, Datacenter-Aware Scheduler"; description = "A Distributed, Highly Available, Datacenter-Aware Scheduler";

View File

@ -1,54 +0,0 @@
{ lib
, buildGoModule
, fetchFromGitHub
, version
, sha256
, vendorSha256
, nvidiaGpuSupport
, patchelf
, nvidia_x11
, nixosTests
}:
buildGoModule rec {
pname = "nomad";
inherit version;
subPackages = [ "." ];
src = fetchFromGitHub {
owner = "hashicorp";
repo = pname;
rev = "v${version}";
inherit sha256;
};
inherit vendorSha256;
nativeBuildInputs = lib.optionals nvidiaGpuSupport [
patchelf
];
# ui:
# Nomad release commits include the compiled version of the UI, but the file
# is only included if we build with the ui tag.
tags = [ "ui" ] ++ lib.optional (!nvidiaGpuSupport) "nonvidia";
# The dependency on NVML isn't explicit. We have to make it so otherwise the
# binary will not know where to look for the relevant symbols.
postFixup = lib.optionalString nvidiaGpuSupport ''
for bin in $out/bin/*; do
patchelf --add-needed "${nvidia_x11}/lib/libnvidia-ml.so" "$bin"
done
'';
passthru.tests.nomad = nixosTests.nomad;
meta = with lib; {
homepage = "https://www.nomadproject.io/";
description = "A Distributed, Highly Available, Datacenter-Aware Scheduler";
platforms = platforms.unix;
license = licenses.mpl20;
maintainers = with maintainers; [ rushmorem pradeepchhetri endocrimes maxeaubrey ];
};
}

View File

@ -33,13 +33,13 @@
mkDerivation rec { mkDerivation rec {
pname = "sdrangel"; pname = "sdrangel";
version = "6.17.2"; version = "6.18.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "f4exb"; owner = "f4exb";
repo = "sdrangel"; repo = "sdrangel";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-sMD2JTJJlssMdXCUHdFYjEqGknhGGuG4szfnvFFN7t4="; sha256 = "sha256-L/D8uEWiFGkAXcxnwDWcPQmc3FvXrG6xs9japMmTHys=";
fetchSubmodules = false; fetchSubmodules = false;
}; };

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bowtie2"; pname = "bowtie2";
version = "2.4.4"; version = "2.4.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BenLangmead"; owner = "BenLangmead";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-2B6w6c/qztyBb1jNA0zg+udQm41ouT1DyB6Ygpi5nC8="; sha256 = "sha256-xCsTkQXrZS+Njn0YfidhPln+OwVfTXOqbtB0dCfTP2U=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -1,25 +1,31 @@
{ lib, stdenv, fetchurl { lib, stdenv, fetchFromGitHub
, perl, flex, bison, python3 , perl, flex, bison, python3, autoconf
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "verilator"; pname = "verilator";
version = "4.210"; version = "4.218";
src = fetchurl { src = fetchFromGitHub {
url = "https://www.veripool.org/ftp/${pname}-${version}.tgz"; owner = pname;
sha256 = "sha256-KoIfJeV2aITnwiB2eQgQo4ZyXfMe6erFiGKXezR+IBg="; repo = pname;
rev = "v${version}";
sha256 = "sha256-FukC60z7Y3bb3I/dgzqCh6kFP6DDBOGi0M8IIZ50P3g=";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;
buildInputs = [ perl ]; buildInputs = [ perl ];
nativeBuildInputs = [ flex bison python3 ]; nativeBuildInputs = [ flex bison python3 autoconf ];
# these tests need some interpreter paths patched early on... # these tests need some interpreter paths patched early on...
# see https://github.com/NixOS/nix/issues/1205 # see https://github.com/NixOS/nix/issues/1205
doCheck = false; doCheck = false;
checkTarget = "test"; checkTarget = "test";
preConfigure = ''
autoconf
'';
postPatch = '' postPatch = ''
patchShebangs \ patchShebangs \
src/flexfix \ src/flexfix \

View File

@ -1,18 +1,43 @@
{ lib, stdenv, fetchFromGitHub, git, gnupg, installShellFiles }: { lib
, stdenv
, resholvePackage
, fetchFromGitHub
, git
, bash
, openssl
, gawk
/*
TODO: yadm can use git-crypt and transcrypt
but it does so in a way that resholve 0.6.0
can't yet do anything smart about. It looks
like these are for interactive use, so the
main impact should just be that users still
need both of these packages in their profile
to support their use in yadm.
*/
# , git-crypt
# , transcrypt
, j2cli
, esh
, gnupg
, coreutils
, gnutar
, installShellFiles
, runCommand
, yadm
}:
stdenv.mkDerivation rec { resholvePackage rec {
pname = "yadm"; pname = "yadm";
version = "3.1.1"; version = "3.1.1";
buildInputs = [ git gnupg ];
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "TheLocehiliosan"; owner = "TheLocehiliosan";
repo = "yadm"; repo = "yadm";
rev = version; rev = version;
sha256 = "sha256-bgiRBlqEjDq0gQ0+aUWpFDeE2piFX3Gy2gEAXgChAOk="; hash = "sha256-bgiRBlqEjDq0gQ0+aUWpFDeE2piFX3Gy2gEAXgChAOk=";
}; };
dontConfigure = true; dontConfigure = true;
@ -31,6 +56,72 @@ stdenv.mkDerivation rec {
--bash completion/bash/yadm --bash completion/bash/yadm
''; '';
solutions = {
yadm = {
scripts = [ "bin/yadm" ];
interpreter = "${bash}/bin/sh";
inputs = [
git
gnupg
openssl
gawk
# see head comment
# git-crypt
# transcrypt
j2cli
esh
bash
coreutils
gnutar
];
fake = {
external = if stdenv.isCygwin then [ ] else [ "cygpath" ];
};
fix = {
"$GPG_PROGRAM" = [ "gpg" ];
"$OPENSSL_PROGRAM" = [ "openssl" ];
"$GIT_PROGRAM" = [ "git" ];
"$AWK_PROGRAM" = [ "awk" ];
# see head comment
# "$GIT_CRYPT_PROGRAM" = [ "git-crypt" ];
# "$TRANSCRYPT_PROGRAM" = [ "transcrypt" ];
"$J2CLI_PROGRAM" = [ "j2" ];
"$ESH_PROGRAM" = [ "esh" ];
# not in nixpkgs (yet)
# "$ENVTPL_PROGRAM" = [ "envtpl" ];
# "$LSB_RELEASE_PROGRAM" = [ "lsb_release" ];
};
keep = {
"$YADM_COMMAND" = true; # internal cmds
"$template_cmd" = true; # dynamic, template-engine
"$SHELL" = true; # probably user env? unsure
"$hook_command" = true; # ~git hooks?
"exec" = [ "$YADM_BOOTSTRAP" ]; # yadm bootstrap script
# not in nixpkgs
"$ENVTPL_PROGRAM" = true;
"$LSB_RELEASE_PROGRAM" = true;
};
/*
TODO: these should be dropped as fast as they can be dealt
with properly in binlore and/or resholve.
*/
execer = [
"cannot:${j2cli}/bin/j2"
"cannot:${esh}/bin/esh"
"cannot:${git}/bin/git"
"cannot:${gnupg}/bin/gpg"
];
};
};
passthru.tests = {
minimal = runCommand "${pname}-test" {} ''
export HOME=$out
${yadm}/bin/yadm init
'';
};
meta = { meta = {
homepage = "https://github.com/TheLocehiliosan/yadm"; homepage = "https://github.com/TheLocehiliosan/yadm";
description = "Yet Another Dotfiles Manager"; description = "Yet Another Dotfiles Manager";
@ -40,6 +131,7 @@ stdenv.mkDerivation rec {
* Provides a way to use alternate files on a specific OS or host. * Provides a way to use alternate files on a specific OS or host.
* Supplies a method of encrypting confidential data so it can safely be stored in your repository. * Supplies a method of encrypting confidential data so it can safely be stored in your repository.
''; '';
changelog = "https://github.com/TheLocehiliosan/yadm/blob/${version}/CHANGES";
license = lib.licenses.gpl3Plus; license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ abathur ]; maintainers = with lib.maintainers; [ abathur ];
platforms = lib.platforms.unix; platforms = lib.platforms.unix;

View File

@ -47,7 +47,7 @@ stdenv.mkDerivation rec {
# the gstreamer toolsdir points to the wrong derivation output # the gstreamer toolsdir points to the wrong derivation output
postPatch = '' postPatch = ''
substituteInPlace configure.ac \ substituteInPlace configure.ac \
--replace '$gst10_toolsdir/gst-inspect-1.0' '${gstreamer.dev}/bin/gst-inspect-1.0' \ --replace '$gst10_toolsdir/gst-inspect-1.0' '${gstreamer}/bin/gst-inspect-1.0' \
''; '';
preBuild = '' preBuild = ''

View File

@ -229,5 +229,6 @@ in stdenv.mkDerivation {
homepage = "https://www.virtualbox.org/"; homepage = "https://www.virtualbox.org/";
maintainers = with maintainers; [ sander ]; maintainers = with maintainers; [ sander ];
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
mainProgram = "VirtualBox";
}; };
} }

View File

@ -2,25 +2,25 @@
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, lib , lib
, git
}: }:
buildGoModule rec { buildGoModule rec {
pname = "garble"; pname = "garble";
version = "20200107"; version = "0.5.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "burrowers"; owner = "burrowers";
repo = pname; repo = pname;
rev = "835f4aadf321521acf06aac4d5068473dc4b2ac1"; rev = "v${version}";
sha256 = "sha256-NodsVHRll2YZoxrhmniJvelQOStG82u3kJyc0t8OXD8="; sha256 = "sha256-F8O/33o//yGnum9sZo1dzcvf3ifRalva6SDC36iPbDA==";
}; };
vendorSha256 = "sha256-x2fk2QmZDK2yjyfYdK7x+sQjvt7tuggmm8ieVjsNKek="; vendorSha256 = "sha256-iNH/iBEOTkIhVlDGfI66ZYyVjyH6WrLbUSMyONPjUc4=";
preBuild = '' # Used for some of the tests.
# https://github.com/burrowers/garble/issues/184 checkInputs = [git];
substituteInPlace testdata/scripts/tiny.txt \
--replace "{6,8}" "{4,8}" preBuild = lib.optionalString (!stdenv.isx86_64) ''
'' + lib.optionalString (!stdenv.isx86_64) ''
# The test assumex amd64 assembly # The test assumex amd64 assembly
rm testdata/scripts/asm.txt rm testdata/scripts/asm.txt
''; '';

View File

@ -31,7 +31,7 @@ storePaths=$(perl $pathsFromGraph closure-*)
# Paths in cpio archives *must* be relative, otherwise the kernel # Paths in cpio archives *must* be relative, otherwise the kernel
# won't unpack 'em. # won't unpack 'em.
(cd root && cp -prd --parents $storePaths .) (cd root && cp -prP --parents $storePaths .)
# Put the closure in a gzipped cpio archive. # Put the closure in a gzipped cpio archive.

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "v2ray-geoip"; pname = "v2ray-geoip";
version = "202201200035"; version = "202201270031";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "v2fly"; owner = "v2fly";
repo = "geoip"; repo = "geoip";
rev = "8d388b019028fb6fa9f0756b745331ffb9eb7c03"; rev = "236a5edc951685cf11d5fcbd08d82d74bd425f92";
sha256 = "sha256-ymXaDmmMucTuvJRqjJv6n22e7ONRt1awtOMABFJ+Y/w="; sha256 = "sha256-y2hVSlfUwbbKpd2O8VBwTEL/djhXjd2XhBbDlmmqJCc=";
}; };
installPhase = '' installPhase = ''

File diff suppressed because one or more lines are too long

View File

@ -15,13 +15,13 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "mate-tweak"; pname = "mate-tweak";
version = "21.10.0"; version = "22.04.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ubuntu-mate"; owner = "ubuntu-mate";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0m61p6idajsrrbjps7s1pnl6nfzwpy7j6l9bdhqi9gaaij687shn"; sha256 = "yCML+RdN7/dCCx5x1m8fUIkBrnfKztwqplpu1wXwDvY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -20,10 +20,6 @@ rustPlatform.buildRustPackage {
# (/private/tmp/nix-build-clippy-1.36.0.drv-0/rustc-1.36.0-src/src/librustc_llvm) # (/private/tmp/nix-build-clippy-1.36.0.drv-0/rustc-1.36.0-src/src/librustc_llvm)
doCheck = false; doCheck = false;
preBuild = ''
export CARGO_TARGET_DIR="$(pwd)/target"
'';
preFixup = lib.optionalString stdenv.isDarwin '' preFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -add_rpath "${rustc}/lib" $out/bin/clippy-driver install_name_tool -add_rpath "${rustc}/lib" $out/bin/clippy-driver
''; '';

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "SDL2_ttf"; pname = "SDL2_ttf";
version = "2.0.15"; version = "2.0.18";
src = fetchurl { src = fetchurl {
url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz"; url = "https://www.libsdl.org/projects/SDL_ttf/release/${pname}-${version}.tar.gz";
sha256 = "0cyd48dipc0m399qy8s03lci8b0bpiy8xlkvrm2ia7wcv0dfpv59"; sha256 = "sha256-cjTriINRTgGed0fHA+SndFdbGNQ1wipKKdBoy3aKIlE=";
}; };
configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest"; configureFlags = lib.optional stdenv.isDarwin "--disable-sdltest";
@ -17,9 +17,9 @@ stdenv.mkDerivation rec {
++ lib.optional stdenv.isDarwin darwin.libobjc; ++ lib.optional stdenv.isDarwin darwin.libobjc;
meta = with lib; { meta = with lib; {
description = "SDL TrueType library"; description = "Support for TrueType (.ttf) font files with Simple Directmedia Layer";
platforms = platforms.unix; platforms = platforms.unix;
license = licenses.zlib; license = licenses.zlib;
homepage = "https://www.libsdl.org/projects/SDL_ttf/"; homepage = "https://github.com/libsdl-org/SDL_ttf";
}; };
} }

View File

@ -9,13 +9,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dlib"; pname = "dlib";
version = "19.22"; version = "19.23";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "davisking"; owner = "davisking";
repo = "dlib"; repo = "dlib";
rev ="v${version}"; rev ="v${version}";
sha256 = "sha256-cEbw01w4KgSG3JTvTE/qruo7i4/L++m02HW+0VNmSSQ="; sha256 = "sha256-88vusoLEkjh3WRh/PxPtsVIFk85serRq2VxVcEus3IE=";
}; };
postPatch = '' postPatch = ''

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "double-conversion"; pname = "double-conversion";
version = "3.1.5"; version = "3.1.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "google"; owner = "google";
repo = "double-conversion"; repo = "double-conversion";
rev = "v${version}"; rev = "v${version}";
sha256 = "0csy4pjw1p8rp6g5qxi2h0ychhhp1fldv7gb761627fs2mclw9gv"; sha256 = "sha256-Tg8hndib4EYSYDuEYVssv15w4pQyW5Jk+MwGJWOVQXE=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -0,0 +1,22 @@
--- a/src/Judy1/Makefile.am
+++ b/src/Judy1/Makefile.am
@@ -18,7 +18,7 @@
libinline_la_CFLAGS = $(AM_CFLAGS) -DJUDYGETINLINE
Judy1Tables.c: Judy1TablesGen.c
- $(CC) $(INCLUDES) $(AM_CFLAGS) @CFLAGS@ -o Judy1TablesGen Judy1TablesGen.c; ./Judy1TablesGen
+ $(CC_FOR_BUILD) $(INCLUDES) $(AM_CFLAGS) @CFLAGS@ -o Judy1TablesGen Judy1TablesGen.c; ./Judy1TablesGen
Judy1ByCount.c:../JudyCommon/JudyByCount.c
cp -f ../JudyCommon/JudyByCount.c Judy1ByCount.c
--- a/src/JudyL/Makefile.am
+++ b/src/JudyL/Makefile.am
@@ -18,7 +18,7 @@
libinline_la_CFLAGS = $(AM_CFLAGS) -DJUDYGETINLINE
JudyLTables.c: JudyLTablesGen.c
- $(CC) $(INCLUDES) $(AM_CFLAGS) @CFLAGS@ -o JudyLTablesGen JudyLTablesGen.c; ./JudyLTablesGen
+ $(CC_FOR_BUILD) $(INCLUDES) $(AM_CFLAGS) @CFLAGS@ -o JudyLTablesGen JudyLTablesGen.c; ./JudyLTablesGen
JudyLByCount.c: ../JudyCommon/JudyByCount.c
cp -f ../JudyCommon/JudyByCount.c JudyLByCount.c

View File

@ -1,4 +1,4 @@
{lib, stdenv, fetchurl}: { lib, stdenv, fetchurl, pkgsBuildBuild, autoreconfHook }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "judy"; pname = "judy";
@ -9,11 +9,9 @@ stdenv.mkDerivation rec {
sha256 = "1sv3990vsx8hrza1mvq3bhvv9m6ff08y4yz7swn6znszz24l0w6j"; sha256 = "1sv3990vsx8hrza1mvq3bhvv9m6ff08y4yz7swn6znszz24l0w6j";
}; };
# gcc 4.8 optimisations break judy. nativeBuildInputs = [ autoreconfHook ];
# https://sourceforge.net/p/judy/mailman/message/31995144/ depsBuildBuild = [ pkgsBuildBuild.stdenv.cc ];
preConfigure = lib.optionalString stdenv.cc.isGNU '' patches = [ ./cross.patch ];
configureFlagsArray+=("CFLAGS=-fno-strict-aliasing -fno-aggressive-loop-optimizations")
'';
# Disable parallel builds as manpages lack some dependencies: # Disable parallel builds as manpages lack some dependencies:
# ../tool/jhton ext/JudyHS_funcs_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudyHS_funcs # ../tool/jhton ext/JudyHS_funcs_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudyHS_funcs

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nuspell"; pname = "nuspell";
version = "5.0.0"; version = "5.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nuspell"; owner = "nuspell";
repo = "nuspell"; repo = "nuspell";
rev = "v${version}"; rev = "v${version}";
sha256 = "039ryhwfbbrrhavzyr999kngj10nk9n81i6qigxj6igfl4fzjy87"; sha256 = "sha256-ogA7ycqdMUTN/KHV2oZzytnhZ7XVuhx+ArXZqLlmwjk=";
}; };
nativeBuildInputs = [ cmake pkg-config pandoc ]; nativeBuildInputs = [ cmake pkg-config pandoc ];

View File

@ -24,12 +24,12 @@ stdenv.mkDerivation rec {
depsBuildBuild = [ pkg-config ]; depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner ]; nativeBuildInputs = [ meson ninja pkg-config wayland-scanner glslang ];
buildInputs = [ buildInputs = [
libGL wayland wayland-protocols libinput libxkbcommon pixman libGL wayland wayland-protocols libinput libxkbcommon pixman
xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa
libpng ffmpeg xcbutilrenderutil seatd vulkan-loader glslang libpng ffmpeg xcbutilrenderutil seatd vulkan-loader
] ]
++ lib.optional enableXWayland xwayland ++ lib.optional enableXWayland xwayland
; ;

View File

@ -0,0 +1,30 @@
/* Generated file. */
args @ { fetchurl, ... }:
rec {
baseName = "float-features";
version = "20210228-git";
description = "A portability library for IEEE float features not covered by the CL standard.";
deps = [ args."documentation-utils" args."trivial-indent" ];
src = fetchurl {
url = "http://beta.quicklisp.org/archive/float-features/2021-02-28/float-features-20210228-git.tgz";
sha256 = "1giy9qm9bgdfp1mm4d36fcj544kfq68qckmijlrhwbvkpk18hgrd";
};
packageName = "float-features";
asdFilesToKeep = ["float-features.asd"];
overrides = x: x;
}
/* (SYSTEM float-features DESCRIPTION
A portability library for IEEE float features not covered by the CL standard.
SHA256 1giy9qm9bgdfp1mm4d36fcj544kfq68qckmijlrhwbvkpk18hgrd URL
http://beta.quicklisp.org/archive/float-features/2021-02-28/float-features-20210228-git.tgz
MD5 77223b9c85dca49d0f599e51ba95953a NAME float-features FILENAME
float-features DEPS
((NAME documentation-utils FILENAME documentation-utils)
(NAME trivial-indent FILENAME trivial-indent))
DEPENDENCIES (documentation-utils trivial-indent) VERSION 20210228-git
SIBLINGS (float-features-tests) PARASITES NIL) */

View File

@ -0,0 +1,37 @@
/* Generated file. */
args @ { fetchurl, ... }:
rec {
baseName = "lisp-binary";
version = "20210411-git";
description = "Declare binary formats as structs and then read and write them.";
deps = [ args."alexandria" args."babel" args."cffi" args."closer-mop" args."flexi-streams" args."iterate" args."moptilities" args."quasiquote-2_dot_0" args."trivial-features" args."trivial-gray-streams" ];
src = fetchurl {
url = "http://beta.quicklisp.org/archive/lisp-binary/2021-04-11/lisp-binary-20210411-git.tgz";
sha256 = "1sbapl8qla4xb8wcix9yxpijkbk1bpybhay7ncb3z2im7r2kzsnb";
};
packageName = "lisp-binary";
asdFilesToKeep = ["lisp-binary.asd"];
overrides = x: x;
}
/* (SYSTEM lisp-binary DESCRIPTION
Declare binary formats as structs and then read and write them. SHA256
1sbapl8qla4xb8wcix9yxpijkbk1bpybhay7ncb3z2im7r2kzsnb URL
http://beta.quicklisp.org/archive/lisp-binary/2021-04-11/lisp-binary-20210411-git.tgz
MD5 29d85f01a1cb17742164bacae940d29c NAME lisp-binary FILENAME lisp-binary
DEPS
((NAME alexandria FILENAME alexandria) (NAME babel FILENAME babel)
(NAME cffi FILENAME cffi) (NAME closer-mop FILENAME closer-mop)
(NAME flexi-streams FILENAME flexi-streams)
(NAME iterate FILENAME iterate) (NAME moptilities FILENAME moptilities)
(NAME quasiquote-2.0 FILENAME quasiquote-2_dot_0)
(NAME trivial-features FILENAME trivial-features)
(NAME trivial-gray-streams FILENAME trivial-gray-streams))
DEPENDENCIES
(alexandria babel cffi closer-mop flexi-streams iterate moptilities
quasiquote-2.0 trivial-features trivial-gray-streams)
VERSION 20210411-git SIBLINGS (lisp-binary-test) PARASITES NIL) */

View File

@ -0,0 +1,31 @@
/* Generated file. */
args @ { fetchurl, ... }:
rec {
baseName = "quasiquote-2_dot_0";
version = "20150505-git";
parasites = [ "quasiquote-2.0-tests" ];
description = "Writing macros that write macros. Effortless.";
deps = [ args."fiveam" args."iterate" ];
src = fetchurl {
url = "http://beta.quicklisp.org/archive/quasiquote-2.0/2015-05-05/quasiquote-2.0-20150505-git.tgz";
sha256 = "0bgcqk7wp7qblw7avsawkg24zjiq9vgsbfa0yhk64avhxwjw6974";
};
packageName = "quasiquote-2.0";
asdFilesToKeep = ["quasiquote-2.0.asd"];
overrides = x: x;
}
/* (SYSTEM quasiquote-2.0 DESCRIPTION
Writing macros that write macros. Effortless. SHA256
0bgcqk7wp7qblw7avsawkg24zjiq9vgsbfa0yhk64avhxwjw6974 URL
http://beta.quicklisp.org/archive/quasiquote-2.0/2015-05-05/quasiquote-2.0-20150505-git.tgz
MD5 7c557e0c10cf7608afa5a20e4a83c778 NAME quasiquote-2.0 FILENAME
quasiquote-2_dot_0 DEPS
((NAME fiveam FILENAME fiveam) (NAME iterate FILENAME iterate))
DEPENDENCIES (fiveam iterate) VERSION 20150505-git SIBLINGS NIL PARASITES
(quasiquote-2.0-tests)) */

View File

@ -137,6 +137,7 @@ fast-io
file-attributes file-attributes
fiveam fiveam
flexi-streams flexi-streams
float-features
form-fiddle form-fiddle
fset fset
generic-cl generic-cl
@ -162,6 +163,7 @@ lfarm-client
lfarm-server lfarm-server
lfarm-ssl lfarm-ssl
lift lift
lisp-binary
lisp-namespace lisp-namespace
lla lla
local-time local-time

View File

@ -345,6 +345,16 @@ let quicklisp-to-nix-packages = rec {
})); }));
"quasiquote-2_dot_0" = buildLispPackage
((f: x: (x // (f x)))
(qlOverrides."quasiquote-2_dot_0" or (x: {}))
(import ./quicklisp-to-nix-output/quasiquote-2_dot_0.nix {
inherit fetchurl;
"fiveam" = quicklisp-to-nix-packages."fiveam";
"iterate" = quicklisp-to-nix-packages."iterate";
}));
"lfarm-common" = buildLispPackage "lfarm-common" = buildLispPackage
((f: x: (x // (f x))) ((f: x: (x // (f x)))
(qlOverrides."lfarm-common" or (x: {})) (qlOverrides."lfarm-common" or (x: {}))
@ -2836,6 +2846,24 @@ let quicklisp-to-nix-packages = rec {
})); }));
"lisp-binary" = buildLispPackage
((f: x: (x // (f x)))
(qlOverrides."lisp-binary" or (x: {}))
(import ./quicklisp-to-nix-output/lisp-binary.nix {
inherit fetchurl;
"alexandria" = quicklisp-to-nix-packages."alexandria";
"babel" = quicklisp-to-nix-packages."babel";
"cffi" = quicklisp-to-nix-packages."cffi";
"closer-mop" = quicklisp-to-nix-packages."closer-mop";
"flexi-streams" = quicklisp-to-nix-packages."flexi-streams";
"iterate" = quicklisp-to-nix-packages."iterate";
"moptilities" = quicklisp-to-nix-packages."moptilities";
"quasiquote-2_dot_0" = quicklisp-to-nix-packages."quasiquote-2_dot_0";
"trivial-features" = quicklisp-to-nix-packages."trivial-features";
"trivial-gray-streams" = quicklisp-to-nix-packages."trivial-gray-streams";
}));
"lift" = buildLispPackage "lift" = buildLispPackage
((f: x: (x // (f x))) ((f: x: (x // (f x)))
(qlOverrides."lift" or (x: {})) (qlOverrides."lift" or (x: {}))
@ -3257,6 +3285,16 @@ let quicklisp-to-nix-packages = rec {
})); }));
"float-features" = buildLispPackage
((f: x: (x // (f x)))
(qlOverrides."float-features" or (x: {}))
(import ./quicklisp-to-nix-output/float-features.nix {
inherit fetchurl;
"documentation-utils" = quicklisp-to-nix-packages."documentation-utils";
"trivial-indent" = quicklisp-to-nix-packages."trivial-indent";
}));
"flexi-streams" = buildLispPackage "flexi-streams" = buildLispPackage
((f: x: (x // (f x))) ((f: x: (x // (f x)))
(qlOverrides."flexi-streams" or (x: {})) (qlOverrides."flexi-streams" or (x: {}))

View File

@ -0,0 +1,68 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, appdirs
, tabulate
, msgpack
, orjson
, semver
, packageurl-python
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "appthreat-vulnerability-db";
version = "2.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "AppThreat";
repo = "vulnerability-db";
rev = "v${version}";
sha256 = "sha256-fqpBnxcRBBXsjJepxDuoDbT3hk5rXAvky11sIvQS9XI=";
};
propagatedBuildInputs = [
requests
appdirs
tabulate
msgpack
orjson
semver
packageurl-python
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pytest.ini \
--replace " --cov-append --cov-report term --cov vdb" ""
'';
preCheck = ''
export HOME=$(mktemp -d);
'';
disabledTests = [
# Tests require network access
"test_bulk_search"
"test_download_recent"
];
pythonImportsCheck = [
"vdb"
];
meta = with lib; {
description = "Vulnerability database and package search for sources such as OSV, NVD, GitHub and npm";
homepage = "https://github.com/appthreat/vulnerability-db";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -9,11 +9,14 @@
, numpy , numpy
, pandas , pandas
, pytest , pytest
, cloudpickle
, scipy , scipy
, setuptools , setuptools
, tensorflow-probability , typing-extensions
# , tensorflow-probability (incompatible version)
, xarray , xarray
#, h5py (used by disabled tests) , zarr
, h5py
#, pymc3 (broken) #, pymc3 (broken)
#, pyro-ppl (broken) #, pyro-ppl (broken)
#, pystan (not packaged) #, pystan (not packaged)
@ -45,28 +48,36 @@ buildPythonPackage rec {
scipy scipy
]; ];
postPatch = ''
substituteInPlace requirements.txt \
--replace "typing_extensions>=3.7.4.3,<4" "typing_extensions>=3.7.4.3"
'';
checkInputs = [ checkInputs = [
bokeh bokeh
emcee emcee
numba numba
pytest pytest
tensorflow-probability cloudpickle
#h5py (used by disabled tests) zarr
#pymc3 (broken) #tensorflow-probability (used by disabled tests)
#pyro-ppl (broken) h5py
#pymc3 (broken, used by disabled tests)
#pyro-ppl (broken, used by disabled tests)
#pystan (not packaged) #pystan (not packaged)
#numpyro (not packaged) #numpyro (not packaged, used by disabled tests)
]; ];
# check requires pymc3 and pyro-ppl, which are currently broken, and pystan # check requires pymc3 and pyro-ppl, which are currently broken, and pystan
# and numpyro, which are not yet packaged, some checks also need to make # and numpyro, which are not yet packaged, and an incompatible (old) version
# of tensorflow-probability. some checks also need to make
# directories and do not have permission to do so. So we can only check part # directories and do not have permission to do so. So we can only check part
# of the package # of the package
# Additionally, there are some failures with the plots test, which revolve # Additionally, there are some failures with the plots test, which revolve
# around attempting to output .mp4 files through an interface that only wants # around attempting to output .mp4 files through an interface that only wants
# to output .html files. # to output .html files.
# The following test have been disabled as a result: data_cmdstanpy, # The following test have been disabled as a result: data_cmdstanpy,
# data_numpyro, data_pyro, data_pystan, and plots. # data_numpyro, data_pyro, data_pystan, data_tfp, data_pymc3 and plots.
checkPhase = '' checkPhase = ''
cd arviz/tests/ cd arviz/tests/
export HOME=$TMPDIR export HOME=$TMPDIR
@ -76,11 +87,13 @@ buildPythonPackage rec {
base_tests/test_plot_utils.py \ base_tests/test_plot_utils.py \
base_tests/test_rcparams.py \ base_tests/test_rcparams.py \
base_tests/test_stats.py \ base_tests/test_stats.py \
base_tests/test_stats_numba.py \
base_tests/test_stats_utils.py \ base_tests/test_stats_utils.py \
base_tests/test_utils.py \ base_tests/test_utils.py \
base_tests/test_utils_numba.py \
base_tests/test_data_zarr.py \
external_tests/test_data_cmdstan.py \ external_tests/test_data_cmdstan.py \
external_tests/test_data_emcee.py \ external_tests/test_data_emcee.py
external_tests/test_data_tfp.py
''; '';
meta = with lib; { meta = with lib; {

View File

@ -1,20 +1,32 @@
{ lib { lib
, asn1crypto
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "asysocks"; pname = "asysocks";
version = "0.1.2"; version = "0.1.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1hi9hzih265qlh7x32r5pbaqm9wkhm52yrdiksnd4gl5nrdgwcwv"; sha256 = "sha256-uXrJBc1Moeeo58KV+csiztXf0/F+iI5xy/BaHWek05M=";
}; };
propagatedBuildInputs = [
asn1crypto
];
# Upstream hasn't release the tests yet # Upstream hasn't release the tests yet
doCheck = false; doCheck = false;
pythonImportsCheck = [ "asysocks" ];
pythonImportsCheck = [
"asysocks"
];
meta = with lib; { meta = with lib; {
description = "Python Socks4/5 client and server library"; description = "Python Socks4/5 client and server library";

View File

@ -10,17 +10,21 @@
, pytest-mock , pytest-mock
, mock , mock
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "dash"; pname = "dash";
version = "2.0.0"; version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "plotly"; owner = "plotly";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-0RvA5qkwQJGyy81D5kW+IR6LbaD/KBwMy6kYxTETubg="; sha256 = "sha256-qEHB90xzettkX/9ojCQ8AZYnTJaL+8n87SmlBOBSDWQ=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -9,14 +9,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "databricks-connect"; pname = "databricks-connect";
version = "9.1.7"; version = "9.1.8";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "2d4712b190c9df3459432af8c16f7b9c33ebc3394c1f9811a70717b530467a41"; sha256 = "sha256-gSclZatH5r3r6o8K2gXaNlkowQxFT7h0t/0ubr3d0n0=";
}; };
sourceRoot = "."; sourceRoot = ".";

View File

@ -13,7 +13,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "deezer-python"; pname = "deezer-python";
version = "5.0.0"; version = "5.0.1";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "browniebroke"; owner = "browniebroke";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1vygyjmmin34iqmhq2l4qb9x2zgc41y6x50xavqzrkfkdd7vhwg6"; sha256 = "sha256-dL1d1bF+hHIQrsyk6t1Afj22yNC/cIpuID5Ajgal5bA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -86,5 +86,6 @@ in buildPythonPackage {
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ timokau ]; maintainers = with maintainers; [ timokau ];
platforms = platforms.linux; platforms = platforms.linux;
broken = true; # depends on older TensorFlow version than is currently packaged
}; };
} }

View File

@ -14,7 +14,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "hahomematic"; pname = "hahomematic";
version = "0.27.2"; version = "0.28.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.9"; disabled = pythonOlder "3.9";
@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "danielperna84"; owner = "danielperna84";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-XBGA3wRZdl8rJ1hLLPPLK7E87Ggoly+kePbLY4x9/ZE="; sha256 = "sha256-zYSJMP/uwgyIHdI8E7NHLaHrpAQeLpaEcXXXlzIO5ns=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -9,7 +9,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "identify"; pname = "identify";
version = "2.4.5"; version = "2.4.6";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -18,7 +18,7 @@ buildPythonPackage rec {
owner = "pre-commit"; owner = "pre-commit";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-VXQ9lyouwAuw2iGr1m/2KFklUFgmQOP2/gwInATKB4k="; sha256 = "sha256-ZOvp7vCvAf0AFtHogUwuUqDc5wfdXQHHJwl+4F/AI+g=";
}; };
checkInputs = [ checkInputs = [

View File

@ -9,14 +9,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "minikerberos"; pname = "minikerberos";
version = "0.2.15"; version = "0.2.16";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "20fae3cf1b329451eb3cba55d6b3c5b44501db5a23e49f47bc770e7461308672"; sha256 = "sha256-66idXGSSQaM2eDnr0cAzO5qeT+UUdG4kamofLLe94m4=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -12,14 +12,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "policy-sentry"; pname = "policy-sentry";
version = "0.11.19"; version = "0.12.1";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "salesforce"; owner = "salesforce";
repo = "policy_sentry"; repo = "policy_sentry";
rev = version; rev = version;
sha256 = "sha256-zYX2MMFIgts5brFb/hsgLHZbY5mncqnCmk7nGdxj/BM="; sha256 = "sha256-zXvZpX8yKPJpmhKdPhlxYUWUadGlr4WsmfJMgE3kzyQ=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -68,5 +68,8 @@ buildPythonPackage rec {
homepage = "https://github.com/pymc-devs/pymc3"; homepage = "https://github.com/pymc-devs/pymc3";
license = lib.licenses.asl20; license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ilya-kolpakov ]; maintainers = with lib.maintainers; [ ilya-kolpakov ];
# several dependencies are not declared and in the end it requires theano-pymc3
# instead of Theano. The former is currently not packaged.
broken = true;
}; };
} }

View File

@ -10,14 +10,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-gitlab"; pname = "python-gitlab";
version = "3.1.0"; version = "3.1.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "7216c9100b2a17cae5cf53b4b40ee36a7262d4ead7526c5a6278d911eba74847"; sha256 = "sha256-ytEzjB/xp5GnuueZXcYh4mx3378iW63kVqzsdRJ4KCU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -19,7 +19,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "simplisafe-python"; pname = "simplisafe-python";
version = "2021.12.2"; version = "2022.01.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -28,7 +28,7 @@ buildPythonPackage rec {
owner = "bachya"; owner = "bachya";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-XVSoPPBdjSQBYrUs0AFGsGFRrQOWbPzlB2mmEBSbFI4="; sha256 = "sha256-dU7zyLSqUX4AM1MLaF9zHbbc2EfsJDtzIwmzy/xiLu8=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -12,7 +12,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "skodaconnect"; pname = "skodaconnect";
version = "1.1.12"; version = "1.1.14";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "lendy007"; owner = "lendy007";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-OKNw+t8S6rRQDKNRBN/CU36OwWojuOH6mMQ5QItkkb8="; sha256 = "sha256-aMyowz5+4Iu7bb8FSnHzx6QGp1WzzMXQZI23OZcr/kM=";
}; };
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;

View File

@ -1,7 +1,5 @@
{ lib { lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, bazel_0_26
, buildBazelPackage , buildBazelPackage
, buildPythonPackage , buildPythonPackage
, python , python
@ -11,47 +9,33 @@
, tensorflow , tensorflow
, six , six
, numpy , numpy
, dm-tree
, keras
, decorator , decorator
, cloudpickle , cloudpickle
, gast , gast
, hypothesis , hypothesis
, scipy , scipy
, pandas
, mpmath
, matplotlib , matplotlib
, mock , mock
, pytest , pytest
}: }:
let let
version = "0.8.0"; version = "0.15.0";
pname = "tensorflow_probability"; pname = "tensorflow_probability";
# first build all binaries and generate setup.py using bazel # first build all binaries and generate setup.py using bazel
bazel-wheel = buildBazelPackage { bazel-wheel = buildBazelPackage {
bazel = bazel_0_26;
name = "${pname}-${version}-py2.py3-none-any.whl"; name = "${pname}-${version}-py2.py3-none-any.whl";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tensorflow"; owner = "tensorflow";
repo = "probability"; repo = "probability";
rev = version; rev = "v" + version;
sha256 = "07cm8zba8n0ihzdm3k4a4rsg5v62xxsfvcw4h0niz91c0parqjqy"; sha256 = "155fgmra90s08vjnp61qxdrpzq74xa3kdzhgdkavwgc25pvxn3mi";
}; };
patches = [
(fetchpatch {
name = "gast-0.3.patch";
url = "https://github.com/tensorflow/probability/commit/ae7a9d9771771ec1e7755a3588b9325f050a84cc.patch";
sha256 = "0kfhx30gshm8f3945na9yjjik71r20qmjzifbigaj4l8dwd9dz1a";
excludes = ["testing/*"];
})
(fetchpatch {
name = "cloudpickle-1.2.patch";
url = "https://github.com/tensorflow/probability/commit/78ef12b5afe3f567d16c70b74015ed1ddff1b0c8.patch";
sha256 = "12ms2xcljvvrnig0j78s3wfv4yf3bm5ps4rgfgv5lg2a8mzpc1ga";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
# needed to create the output wheel in installPhase # needed to create the output wheel in installPhase
python python
@ -64,7 +48,7 @@ let
bazelTarget = ":pip_pkg"; bazelTarget = ":pip_pkg";
fetchAttrs = { fetchAttrs = {
sha256 = "1qw7vkwnxy45z4vm94isq5m96xiz35sigag7vjg1xb2sklbymxh8"; sha256 = "0sgxdlw5x3dydy53l10vbrj8smh78b7r1wff8jxcgp4w69mk8zfm";
}; };
buildAttrs = { buildAttrs = {
@ -98,34 +82,31 @@ in buildPythonPackage {
decorator decorator
cloudpickle cloudpickle
gast gast
dm-tree
keras
]; ];
# Listed here: # Listed here:
# https://github.com/tensorflow/probability/blob/f01d27a6f256430f03b14beb14d37def726cb257/testing/run_tests.sh#L58 # https://github.com/tensorflow/probability/blob/f3777158691787d3658b5e80883fe1a933d48989/testing/dependency_install_lib.sh#L83
checkInputs = [ checkInputs = [
hypothesis hypothesis
pytest pytest
scipy scipy
pandas
mpmath
matplotlib matplotlib
mock mock
]; ];
# actual checks currently fail because for some reason # Ideally, we run unit tests with pytest, but in checkPhase, only the Bazel-build wheel is available.
# tf.enable_eager_execution is called too late. Probably because upstream # But it seems not guaranteed that running the tests with pytest will even work, see
# intents these tests to be run by bazel, not plain pytest. # https://github.com/tensorflow/probability/blob/c2a10877feb2c4c06a4dc58281e69c37a11315b9/CONTRIBUTING.md?plain=1#L69
# checkPhase = '' # Ideally, tests would be run using Bazel. For now, lets's do a...
# # tests need to import from other test files
# export PYTHONPATH="$PWD/tensorflow-probability:$PYTHONPATH"
# py.test
# '';
# sanity check # sanity check
checkPhase = '' pythonImportsCheck = [ "tensorflow_probability" ];
python -c 'import tensorflow_probability'
'';
meta = with lib; { meta = with lib; {
broken = true; # tf-probability 0.8.0 is not compatible with tensorflow 2.3.2
description = "Library for probabilistic reasoning and statistical analysis"; description = "Library for probabilistic reasoning and statistical analysis";
homepage = "https://www.tensorflow.org/probability/"; homepage = "https://www.tensorflow.org/probability/";
license = licenses.asl20; license = licenses.asl20;

View File

@ -2,6 +2,7 @@
, fetchPypi , fetchPypi
, buildPythonPackage , buildPythonPackage
, pythonOlder , pythonOlder
, pythonAtLeast
, numpy , numpy
, wheel , wheel
, werkzeug , werkzeug
@ -24,7 +25,7 @@ buildPythonPackage rec {
pname = "tensorflow-tensorboard"; pname = "tensorflow-tensorboard";
version = "2.6.0"; version = "2.6.0";
format = "wheel"; format = "wheel";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6" || pythonAtLeast "3.10";
src = fetchPypi { src = fetchPypi {
pname = "tensorboard"; pname = "tensorboard";

View File

@ -0,0 +1,52 @@
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "appthreat-depscan";
version = "2.1.0";
src = fetchFromGitHub {
owner = "AppThreat";
repo = "dep-scan";
rev = "v${version}";
hash = "sha256-HCOS8/jn7BOzDwSpenVGo6QpI/1ey6L1zBucTyqsSY4=";
};
propagatedBuildInputs = with python3.pkgs; [
appthreat-vulnerability-db
defusedxml
pyyaml
rich
];
checkInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
substituteInPlace pytest.ini \
--replace " --cov-append --cov-report term --cov depscan" ""
'';
preCheck = ''
export HOME=$(mktemp -d);
'';
disabledTests = [
# Assertion Error
"test_query_metadata2"
];
pythonImportsCheck = [
"depscan"
];
meta = with lib; {
description = "Tool to audit dependencies based on known vulnerabilities and advisories";
homepage = "https://github.com/AppThreat/dep-scan";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -2,18 +2,18 @@
buildGoModule rec { buildGoModule rec {
pname = "evans"; pname = "evans";
version = "0.10.0"; version = "0.10.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ktr0731"; owner = "ktr0731";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-Ftt3lnwLk2Zx1DxDmZx2hBqXcxzqUb6I/gEdQJuFsCc="; sha256 = "sha256-F9URMwQaSAQZaiZ95rDZqe8+YcJ9aMInSTIgQ7JLyOw=";
}; };
subPackages = [ "." ]; subPackages = [ "." ];
vendorSha256 = "sha256-WclmINHcgRtbRSZGv+lOgwuImHKVC9cfK8C+f9JBcts="; vendorSha256 = "sha256-bFTmr/xQ12cboH1MGvHDUpLM0dMkxMeLgwG0VbhMEnc=";
meta = with lib; { meta = with lib; {
description = "More expressive universal gRPC client"; description = "More expressive universal gRPC client";

View File

@ -12,13 +12,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "mold"; pname = "mold";
version = "1.0.1"; version = "1.0.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rui314"; owner = "rui314";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-G+mVZS3ZRuBd00xfBqrTvmHOykFk63nJlucxv01nr3k="; sha256 = "sha256-0TXk+6hS6TJHwhowYzL8ABw3iyfVwPttJWKQ9RfzMSI=";
}; };
buildInputs = [ zlib openssl ]; buildInputs = [ zlib openssl ];

View File

@ -11,19 +11,19 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-deny"; pname = "cargo-deny";
version = "0.11.0"; version = "0.11.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "EmbarkStudios"; owner = "EmbarkStudios";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-LYXwdOopQkgq7i4l8dqQFkNLB3r+CVRor4BVeoj0DPs="; sha256 = "sha256-LsRky7hc7mgx1iRpJZICmP/ofdfD9r3D5LURTqfI9Fo=";
}; };
# enable pkg-config feature of zstd # enable pkg-config feature of zstd
cargoPatches = [ ./zstd-pkg-config.patch ]; cargoPatches = [ ./zstd-pkg-config.patch ];
cargoSha256 = "sha256-SdbDWw4GOvCTKN7vBjhLU5rhdVIpyO+AWaFbo06HXfU="; cargoSha256 = "sha256-7WGNaad00MqEM/OdUaLJ3McXlUQyQwPezbMbL+4se5A=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
@ -40,6 +40,6 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/EmbarkStudios/cargo-deny"; homepage = "https://github.com/EmbarkStudios/cargo-deny";
changelog = "https://github.com/EmbarkStudios/cargo-deny/blob/${version}/CHANGELOG.md"; changelog = "https://github.com/EmbarkStudios/cargo-deny/blob/${version}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ]; license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ figsoda matthiasbeyer ]; maintainers = with maintainers; [ figsoda matthiasbeyer jk ];
}; };
} }

View File

@ -17,15 +17,15 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "deno"; pname = "deno";
version = "1.18.0"; version = "1.18.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "denoland"; owner = "denoland";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-ov2zCINh4uH5pvhML1fgpnxFhWs680bdv9oqUESFkpw="; sha256 = "sha256-YaQOYhnbzoLyMpEPYyGXdVTWKN8dvcpLcb++8HO51qQ=";
}; };
cargoSha256 = "sha256-qYz5p+3QNA/zir2M9/aWxKYOMYI01OsIWZCJ4njjFPc="; cargoSha256 = "sha256-2+77mILB5vaiejeXJ75l5LedQ55ibq/nlEzxfbANvgI=";
# Install completions post-install # Install completions post-install
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];

View File

@ -5,13 +5,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "beep"; pname = "beep";
version = "1.4.9"; version = "1.4.11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "spkr-beep"; owner = "spkr-beep";
repo = "beep"; repo = "beep";
rev = "v${version}"; rev = "v${version}";
sha256 = "JLaoiINHpIFWSqsRl8wJ/NeBu7SCcPuT/BzY8szEu0o="; sha256 = "sha256-8g9Nni9lalQvrffhwIv2LFRtLrioUL+lMeDTHH6l6Sk=";
}; };
makeFlags = [ "DESTDIR=\${out}" "prefix="]; makeFlags = [ "DESTDIR=\${out}" "prefix="];

View File

@ -94,7 +94,6 @@ mapAliases (with prev; {
neosnippet = neosnippet-vim; neosnippet = neosnippet-vim;
The_NERD_Commenter = nerdcommenter; The_NERD_Commenter = nerdcommenter;
The_NERD_tree = nerdtree; The_NERD_tree = nerdtree;
onedark-nvim = onedarkpro-nvim; # added 2021-10-22
open-browser = open-browser-vim; open-browser = open-browser-vim;
pathogen = vim-pathogen; pathogen = vim-pathogen;
polyglot = vim-polyglot; polyglot = vim-polyglot;

View File

@ -65,8 +65,16 @@
, gobject-introspection , gobject-introspection
, wrapGAppsHook , wrapGAppsHook
# vim-clap dependencies # sniprun dependencies
, bashInteractive
, coreutils
, curl , curl
, gnugrep
, gnused
, makeWrapper
, procps
# vim-clap dependencies
, libgit2 , libgit2
, libiconv , libiconv
, openssl , openssl
@ -76,7 +84,6 @@
, asmfmt , asmfmt
, delve , delve
, errcheck , errcheck
, gnused
, go-motion , go-motion
, go-tools , go-tools
, gocode , gocode
@ -536,6 +543,43 @@ self: super: {
dependencies = with self; [ skim ]; dependencies = with self; [ skim ];
}); });
sniprun =
let
version = "1.1.2";
src = fetchFromGitHub {
owner = "michaelb";
repo = "sniprun";
rev = "v${version}";
sha256 = "sha256-WL0eXwiPhcndI74wtFox2tSnZn1siE86x2MLkfpxxT4=";
};
sniprun-bin = rustPlatform.buildRustPackage {
pname = "sniprun-bin";
inherit version src;
cargoSha256 = "sha256-1WbgnsjoFdvko6VRKY+IjafMNqvJvyIZCDk8I9GV3GM=";
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/sniprun \
--prefix PATH ${lib.makeBinPath [ bashInteractive coreutils curl gnugrep gnused procps ]}
'';
doCheck = false;
};
in
buildVimPluginFrom2Nix {
pname = "sniprun";
inherit version src;
patches = [ ./patches/sniprun/fix-paths.patch ];
postPatch = ''
substituteInPlace lua/sniprun.lua --replace '@sniprun_bin@' ${sniprun-bin}
'';
propagatedBuildInputs = [ sniprun-bin ];
};
sqlite-lua = super.sqlite-lua.overrideAttrs (old: { sqlite-lua = super.sqlite-lua.overrideAttrs (old: {
postPatch = let postPatch = let
libsqlite = "${sqlite.out}/lib/libsqlite3${stdenv.hostPlatform.extensions.sharedLibrary}"; libsqlite = "${sqlite.out}/lib/libsqlite3${stdenv.hostPlatform.extensions.sharedLibrary}";

View File

@ -0,0 +1,36 @@
diff --git a/lua/sniprun.lua b/lua/sniprun.lua
index aa39e0b..188d54a 100644
--- a/lua/sniprun.lua
+++ b/lua/sniprun.lua
@@ -4,9 +4,7 @@ M.custom_highlight=false
M.info_floatwin = {}
-- See https://github.com/tjdevries/rofl.nvim/blob/632c10f2ec7c56882a3f7eda8849904bcac6e8af/lua/rofl.lua
-local binary_path = vim.fn.fnamemodify(
- vim.api.nvim_get_runtime_file("lua/sniprun.lua", false)[1], ":h:h")
- .. "/target/release/sniprun"
+local binary_path = "@sniprun_bin@/bin/sniprun"
local sniprun_path = vim.fn.fnamemodify( vim.api.nvim_get_runtime_file("lua/sniprun.lua", false)[1], ":p:h") .. "/.."
diff --git a/ressources/init_repl.sh b/ressources/init_repl.sh
index 2e6264d..0eab1c6 100644
--- a/ressources/init_repl.sh
+++ b/ressources/init_repl.sh
@@ -23,7 +23,7 @@ mkfifo $working_dir/$pipe
touch $working_dir/$out
sleep 36000 > $working_dir/$pipe &
-echo "/bin/cat " $working_dir/$pipe " | " $repl > $working_dir/real_launcher.sh
+echo "cat " $working_dir/$pipe " | " $repl > $working_dir/real_launcher.sh
chmod +x $working_dir/real_launcher.sh
echo $repl " process started at $(date +"%F %T")." >> $working_dir/log
diff --git a/ressources/launcher_repl.sh b/ressources/launcher_repl.sh
index feaa91e..749c55e 100755
--- a/ressources/launcher_repl.sh
+++ b/ressources/launcher_repl.sh
@@ -1,2 +1,2 @@
#!/bin/bash
-/bin/cat $1 > $2
+cat $1 > $2

View File

@ -693,8 +693,8 @@ let
mktplcRef = { mktplcRef = {
name = "prettier-vscode"; name = "prettier-vscode";
publisher = "esbenp"; publisher = "esbenp";
version = "9.1.0"; version = "9.2.0";
sha256 = "sha256-lR5BDbDYURCF1Gq5JIm7BcXVvKXPdNBYom0BiVX/3u0="; sha256 = "sha256-ROI312MPMUY1q6IV4qVCW8DD0MQPA/hVW7rfamo/IbI=";
}; };
meta = with lib; { meta = with lib; {
changelog = "https://marketplace.visualstudio.com/items/esbenp.prettier-vscode/changelog"; changelog = "https://marketplace.visualstudio.com/items/esbenp.prettier-vscode/changelog";
@ -1462,8 +1462,8 @@ let
mktplcRef = { mktplcRef = {
name = "material-icon-theme"; name = "material-icon-theme";
publisher = "PKief"; publisher = "PKief";
version = "4.11.0"; version = "4.12.1";
sha256 = "1l2s8j645riqjmj09i3v71s8ycin5vd6brdp35z472fnk6wyi1y6"; sha256 = "sha256-pmWnnZrdk6zb8YFG5ESgK4k875hgeseWyzkA9YUjg7A=";
}; };
meta = { meta = {
license = lib.licenses.mit; license = lib.licenses.mit;

View File

@ -1,9 +1,9 @@
{ stdenv, lib { stdenv, lib
, kernel , kernel
, fetchurl , fetchurl
, pkg-config, meson, ninja , pkg-config, meson, ninja, makeWrapper
, libbsd, numactl, libbpf, zlib, libelf, jansson, openssl, libpcap, rdma-core , libbsd, numactl, libbpf, zlib, libelf, jansson, openssl, libpcap, rdma-core
, doxygen, python3 , doxygen, python3, pciutils
, withExamples ? [] , withExamples ? []
, shared ? false }: , shared ? false }:
@ -20,6 +20,7 @@ in stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper
doxygen doxygen
meson meson
ninja ninja
@ -31,22 +32,27 @@ in stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
jansson jansson
libbpf libbpf
libbsd
libelf libelf
libpcap libpcap
numactl numactl
openssl.dev openssl.dev
zlib zlib
python3
] ++ lib.optionals mod kernel.moduleBuildDependencies; ] ++ lib.optionals mod kernel.moduleBuildDependencies;
propagatedBuildInputs = [
# Propagated to support current DPDK users in nixpkgs which statically link # Propagated to support current DPDK users in nixpkgs which statically link
# with the framework (e.g. odp-dpdk). # with the framework (e.g. odp-dpdk).
propagatedBuildInputs = [
rdma-core rdma-core
# Requested by pkg-config.
libbsd
]; ];
postPatch = '' postPatch = ''
patchShebangs config/arm buildtools patchShebangs config/arm buildtools
'' + lib.optionalString mod ''
# kernel_install_dir is hardcoded to `/lib/modules`; patch that.
sed -i "s,kernel_install_dir *= *['\"].*,kernel_install_dir = '$kmod/lib/modules/${kernel.modDirVersion}'," kernel/linux/meson.build
''; '';
mesonFlags = [ mesonFlags = [
@ -59,30 +65,25 @@ in stdenv.mkDerivation rec {
++ lib.optional (!shared) "-Ddefault_library=static" ++ lib.optional (!shared) "-Ddefault_library=static"
++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem" ++ lib.optional stdenv.isx86_64 "-Dmachine=nehalem"
++ lib.optional stdenv.isAarch64 "-Dmachine=generic" ++ lib.optional stdenv.isAarch64 "-Dmachine=generic"
++ lib.optional mod "-Dkernel_dir=${placeholder "kmod"}/lib/modules/${kernel.modDirVersion}" ++ lib.optional mod "-Dkernel_dir=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
++ lib.optional (withExamples != []) "-Dexamples=${builtins.concatStringsSep "," withExamples}"; ++ lib.optional (withExamples != []) "-Dexamples=${builtins.concatStringsSep "," withExamples}";
# dpdk meson script does not support separate kernel source and installion
# dirs (except via destdir), so we temporarily link the former into the latter.
preConfigure = lib.optionalString mod ''
mkdir -p $kmod/lib/modules/${kernel.modDirVersion}
ln -sf ${kernel.dev}/lib/modules/${kernel.modDirVersion}/build \
$kmod/lib/modules/${kernel.modDirVersion}
'';
postBuild = lib.optionalString mod ''
rm -f $kmod/lib/modules/${kernel.modDirVersion}/build
'';
postInstall = '' postInstall = ''
# Remove Sphinx cache files. Not only are they not useful, but they also # Remove Sphinx cache files. Not only are they not useful, but they also
# contain store paths causing spurious dependencies. # contain store paths causing spurious dependencies.
rm -rf $out/share/doc/dpdk/html/.doctrees rm -rf $out/share/doc/dpdk/html/.doctrees
wrapProgram $out/bin/dpdk-devbind.py \
--prefix PATH : "${lib.makeBinPath [ pciutils ]}"
'' + lib.optionalString (withExamples != []) '' '' + lib.optionalString (withExamples != []) ''
find examples -type f -executable -exec install {} $out/bin \; mkdir -p $examples/bin
find examples -type f -executable -exec install {} $examples/bin \;
''; '';
outputs = [ "out" ] ++ lib.optional mod "kmod"; outputs =
[ "out" "doc" ]
++ lib.optional mod "kmod"
++ lib.optional (withExamples != []) "examples";
meta = with lib; { meta = with lib; {
description = "Set of libraries and drivers for fast packet processing"; description = "Set of libraries and drivers for fast packet processing";

View File

@ -0,0 +1,36 @@
{ lib
, stdenv
, fetchFromGitHub
, python3
}:
stdenv.mkDerivation rec {
pname = "lsirec";
version = "unstable-2019-03-03";
src = fetchFromGitHub {
owner = "marcan";
repo = "lsirec";
rev = "2dfb6dc92649feb01a3ddcfd117d4a99098084f2";
sha256 = "sha256-8v+KKjAJlJNpUT0poedRTQfPiDiwahrosXD35Bmh3jM=";
};
buildInputs = [ python3 ];
installPhase = ''
runHook preInstall
install -Dm755 'lsirec' "$out/bin/lsirec"
install -Dm755 'sbrtool.py' "$out/bin/sbrtool"
runHook postInstall
'';
meta = with lib; {
description = "LSI SAS2008/SAS2108 low-level recovery tool for Linux";
homepage = "https://github.com/marcan/lsirec";
platforms = platforms.linux;
license = licenses.bsd2;
maintainers = with maintainers; [ Luflosi ];
};
}

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "agate"; pname = "agate";
version = "3.1.0"; version = "3.2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mbrubeck"; owner = "mbrubeck";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-miIMz4Lk4R5So96Ceqe1Fl5ozpf47qWq0GgtKFDDCCA="; sha256 = "sha256-o4tjEIgDTj2EUbfaKCHZfvEKCwxNpsabU437kU+Vpnk=";
}; };
cargoSha256 = "sha256-NZpqCl37dZUvXmn4Q1Pvbz3LSxk1s0s5x1CBO0POA/4="; cargoSha256 = "sha256-rE0I13dKbGgJmh6vF/cWvIZfqtKzzgn7pTiB3HJ7cgY=";
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];

View File

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "postgres_exporter"; pname = "postgres_exporter";
version = "0.10.0"; version = "0.10.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wrouesnel"; owner = "prometheus-community";
repo = "postgres_exporter"; repo = "postgres_exporter";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-QU/pPw0gOHF5SAET8S/v7nTPyEvBqkxwwGQ42PbQNvw="; sha256 = "sha256-AH4nVwmNS4YtKxrWlFNqN+Q59TaSCGdoiCfpelPtJuM=";
}; };
vendorSha256 = "sha256-sSJjJR0wlW95I6bgzLKx4aVcqwKMRyzzWC4uz0BKLNY="; vendorSha256 = "sha256-ST/Mc8RDEu2G6ufus8Gi7dwdBNIpaKJjn+Fw1AKCaXs=";
doCheck = true; doCheck = true;

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, nixosTests { lib, stdenv, fetchurl, nixosTests, buildPackages
# Native buildInputs components # Native buildInputs components
, bison, boost, cmake, fixDarwinDylibNames, flex, makeWrapper, pkg-config , bison, boost, cmake, fixDarwinDylibNames, flex, makeWrapper, pkg-config
# Common components # Common components
@ -18,7 +18,7 @@ let # in mariadb # spans the whole file
libExt = stdenv.hostPlatform.extensions.sharedLibrary; libExt = stdenv.hostPlatform.extensions.sharedLibrary;
mytopEnv = perl.withPackages (p: with p; [ DBDmysql DBI TermReadKey ]); mytopEnv = buildPackages.perl.withPackages (p: with p; [ DBDmysql DBI TermReadKey ]);
mariadbPackage = packageSettings: (server packageSettings) // { mariadbPackage = packageSettings: (server packageSettings) // {
client = client packageSettings; # MariaDB Client client = client packageSettings; # MariaDB Client
@ -208,6 +208,10 @@ in stdenv.mkDerivation (common // {
"-DPLUGIN_AUTH_PAM=OFF" "-DPLUGIN_AUTH_PAM=OFF"
"-DWITHOUT_OQGRAPH=1" "-DWITHOUT_OQGRAPH=1"
"-DWITHOUT_PLUGIN_S3=1" "-DWITHOUT_PLUGIN_S3=1"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
# revisit this if nixpkgs supports any architecture whose stack grows upwards
"-DSTACK_DIRECTION=-1"
"-DCMAKE_CROSSCOMPILING_EMULATOR=${stdenv.hostPlatform.emulator buildPackages}"
]; ];
preConfigure = lib.optionalString (!stdenv.hostPlatform.isDarwin) '' preConfigure = lib.optionalString (!stdenv.hostPlatform.isDarwin) ''

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchurl, cmake, bison, pkg-config { lib, stdenv, fetchurl, cmake, bison, pkg-config
, boost, libedit, libevent, lz4, ncurses, openssl, protobuf, readline, zlib, perl , boost, libedit, libevent, lz4, ncurses, openssl, protobuf, readline, zlib, perl
, cctools, CoreServices, developer_cmds , cctools, CoreServices, developer_cmds
, libtirpc, rpcsvc-proto , libtirpc, rpcsvc-proto, nixosTests
}: }:
# Note: zlib is not required; MySQL can use an internal zlib. # Note: zlib is not required; MySQL can use an internal zlib.
@ -9,11 +9,11 @@
let let
self = stdenv.mkDerivation rec { self = stdenv.mkDerivation rec {
pname = "mysql"; pname = "mysql";
version = "5.7.27"; version = "5.7.37";
src = fetchurl { src = fetchurl {
url = "mirror://mysql/MySQL-5.7/${pname}-${version}.tar.gz"; url = "mirror://mysql/MySQL-5.7/${pname}-${version}.tar.gz";
sha256 = "1fhv16zr46pxm1j8vb8x8mh3nwzglg01arz8gnazbmjqldr5idpq"; sha256 = "sha256-qZqaqGNdJWbat2Sy3la+0XMDZdNg4guyf1Y5LOVOGL0=";
}; };
preConfigure = lib.optionalString stdenv.isDarwin '' preConfigure = lib.optionalString stdenv.isDarwin ''
@ -75,6 +75,7 @@ self = stdenv.mkDerivation rec {
connector-c = self; connector-c = self;
server = self; server = self;
mysqlVersion = "5.7"; mysqlVersion = "5.7";
tests = nixosTests.mysql.mysql57;
}; };
meta = with lib; { meta = with lib; {

View File

@ -2,17 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "t-rex"; pname = "t-rex";
version = "0.14.3-beta4"; version = "0.14.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "t-rex-tileserver"; owner = "t-rex-tileserver";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-EG/nnHxnBwlxreJ+RWHvKqLpaVtlU95+YTJynEnypOE="; hash = "sha256-LUVk5li2cl/LKbhKOh6Bbwav0GEuI/vUbDPLn7NSRIs=";
}; };
cargoHash = "sha256-noDZNFZlfX6lZ4czsSrHXe7xbBLTD0Gz8i5EyfEp8lc="; cargoHash = "sha256-I4QmjTTKUp9iugEwzM0xCcNLvF5ozeBdYmbi8sytY88=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
@ -21,6 +20,7 @@ rustPlatform.buildRustPackage rec {
meta = with lib; { meta = with lib; {
description = "Vector tile server specialized on publishing MVT tiles"; description = "Vector tile server specialized on publishing MVT tiles";
homepage = "https://t-rex.tileserver.ch/"; homepage = "https://t-rex.tileserver.ch/";
changelog = "https://github.com/t-rex-tileserver/t-rex/blob/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ sikmir ]; maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix; platforms = platforms.unix;

View File

@ -16,9 +16,9 @@ let
owner = "gravitational"; owner = "gravitational";
repo = "teleport"; repo = "teleport";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-02Wsj2V7RNjKlkgAqj7IqyRGCxml8pw5h0vflqcGAB8="; sha256 = "sha256-/Dn2X1VMQI1OYHmvNDlAjrLI64DFxmVmS3PeEKLFVjQ=";
}; };
version = "8.0.6"; version = "8.1.1";
roleTester = rustPlatform.buildRustPackage { roleTester = rustPlatform.buildRustPackage {
name = "teleport-roletester"; name = "teleport-roletester";
@ -39,8 +39,8 @@ let
webassets = fetchFromGitHub { webassets = fetchFromGitHub {
owner = "gravitational"; owner = "gravitational";
repo = "webassets"; repo = "webassets";
rev = "240464d54ac498281592eb0b30c871dc3c7ce09b"; rev = "36ba49bb58dd6933d5ed5c9599e86d2b6c828137";
sha256 = "sha256-8gt8x2fNh8mA1KCop5dEZmpBWBu7HsrTY5zVUlmKDgs="; sha256 = "sha256-XgH+IjTsaJUdM54Y+L8Rf/bt6y0vB4t8IcRES2EG70s=";
}; };
in in
buildGo117Module rec { buildGo117Module rec {

View File

@ -0,0 +1,27 @@
{ stdenv
, pkgs
, lib
, nodejs-14_x
}:
let
nodejs = nodejs-14_x;
nodePackages = import ./node-packages.nix {
inherit pkgs nodejs;
inherit (stdenv.hostPlatform) system;
};
ethercalc = lib.head (lib.attrValues nodePackages);
combined = ethercalc.override {
meta = with lib; {
description = "Online collaborative spreadsheet";
license = with licenses; [ cpal10 artistic2 mit asl20 cc0 mpl20 ];
homepage = "https://github.com/audreyt/ethercalc";
maintainers = with maintainers; [ iblech ];
platforms = platforms.unix;
};
};
in
combined

View File

@ -0,0 +1,15 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p nodePackages.node2nix
# Run this script not via `./generate.sh`, but via `$PWD/generate.sh`.
# Else `nix-shell` will not find this script.
set -euo pipefail
cd -- "$(dirname -- "$BASH_SOURCE[0]")"
node2nix \
--input node-packages.json \
--output node-packages-generated.nix \
--composition node-packages.nix \
--node-env ../../../development/node-packages/node-env.nix

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
[
{ "whitebophir": "git+https://github.com/audreyt/ethercalc.git#b196277081d677be991d104e454a52d242ef0189" }
]

View File

@ -0,0 +1,17 @@
# This file has been generated by node2nix 1.9.0. Do not edit!
{pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs-12_x"}:
let
nodeEnv = import ../../../development/node-packages/node-env.nix {
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
inherit pkgs nodejs;
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
};
in
import ./node-packages-generated.nix {
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
inherit nodeEnv;
}

View File

@ -12,13 +12,13 @@
let let
pname = "plausible"; pname = "plausible";
version = "1.4.0"; version = "1.4.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "plausible"; owner = "plausible";
repo = "analytics"; repo = "analytics";
rev = "v${version}"; rev = "v${version}";
sha256 = "1d31y7mwvml17w97dm5c4312n0ciq39kf4hz3g80hdzbbn72mi4q"; sha256 = "1aa5nkwb4qz599zb77dhwrvn5gwcdiyji4vbxmayn2zhv2vhj36d";
}; };
# TODO consider using `mix2nix` as soon as it supports git dependencies. # TODO consider using `mix2nix` as soon as it supports git dependencies.

View File

@ -64,5 +64,5 @@
"webpack-bundle-analyzer": "^4.4.2" "webpack-bundle-analyzer": "^4.4.2"
}, },
"name": "plausible", "name": "plausible",
"version": "v1.4.0" "version": "v1.4.3"
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -34,28 +34,28 @@ let
tomlplusplus = fetchFromGitHub { tomlplusplus = fetchFromGitHub {
owner = "marzer"; owner = "marzer";
repo = "tomlplusplus"; repo = "tomlplusplus";
rev = "47216c8a73d77e7431ec536fb3e251aed06cc420"; rev = "8e669aa6990e0ed219c169d491472d749f54c393";
sha256 = "sha256-cwAzWu5j3ch/56a6JmEoKCsxVNTk6tiZswNdNT6qzX0="; sha256 = "sha256-l8ckbCqjz3GUfwStcl3H2C+un5dZfT2uLtayvdu93D4=";
}; };
# Derived from vst3.wrap # Derived from vst3.wrap
vst3 = fetchFromGitHub { vst3 = fetchFromGitHub {
owner = "robbert-vdh"; owner = "robbert-vdh";
repo = "vst3sdk"; repo = "vst3sdk";
rev = "v3.7.3_build_20-patched"; rev = "v3.7.4_build_25-patched";
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "sha256-m2y7No7BNbIjLNgdAqIAEr6UuAZZ/wwM2+iPWKK17gQ="; sha256 = "sha256-oHRJZItw+he5M+beVZkUrhJir6rgFZ80ORzA73mJT2A=";
}; };
in multiStdenv.mkDerivation rec { in multiStdenv.mkDerivation rec {
pname = "yabridge"; pname = "yabridge";
version = "3.7.0"; version = "3.8.0";
# NOTE: Also update yabridgectl's cargoHash when this is updated # NOTE: Also update yabridgectl's cargoHash when this is updated
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "robbert-vdh"; owner = "robbert-vdh";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-dz7kScNrVUsjokJntzUCJzDIboqi3vQI+RpXl0UFmUQ="; sha256 = "sha256-XacJjHxsp60/l36pFPGonUyOsyFF2lmqplAaisHXZDY=";
}; };
# Unpack subproject sources # Unpack subproject sources

View File

@ -1,8 +1,8 @@
diff --git a/meson.build b/meson.build diff --git a/meson.build b/meson.build
index 8eae0442..ec0649da 100644 index 95ecb728..cb30f3af 100644
--- a/meson.build --- a/meson.build
+++ b/meson.build +++ b/meson.build
@@ -196,6 +196,7 @@ if with_32bit_libraries or with_bitbridge @@ -201,6 +201,7 @@ if with_32bit_libraries or with_bitbridge
'boost_filesystem', 'boost_filesystem',
static : with_static_boost, static : with_static_boost,
dirs : [ dirs : [
@ -10,7 +10,7 @@ index 8eae0442..ec0649da 100644
# Used by Arch based distros # Used by Arch based distros
'/usr/local/lib32', '/usr/local/lib32',
'/usr/lib32', '/usr/lib32',
@@ -219,7 +220,7 @@ if is_64bit_system @@ -224,7 +225,7 @@ if is_64bit_system
xcb_64bit_dep = dependency('xcb') xcb_64bit_dep = dependency('xcb')
endif endif
if with_32bit_libraries or with_bitbridge if with_32bit_libraries or with_bitbridge
@ -20,7 +20,7 @@ index 8eae0442..ec0649da 100644
# These are all headers-only libraries, and thus won't require separate 32-bit # These are all headers-only libraries, and thus won't require separate 32-bit
diff --git a/src/plugin/utils.cpp b/src/plugin/utils.cpp diff --git a/src/plugin/utils.cpp b/src/plugin/utils.cpp
index 6e32b4c9..f6eb09eb 100644 index 1a457f03..20ca1e63 100644
--- a/src/plugin/utils.cpp --- a/src/plugin/utils.cpp
+++ b/src/plugin/utils.cpp +++ b/src/plugin/utils.cpp
@@ -107,7 +107,7 @@ std::string PluginInfo::wine_version() const { @@ -107,7 +107,7 @@ std::string PluginInfo::wine_version() const {

View File

@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec {
src = yabridge.src; src = yabridge.src;
sourceRoot = "source/tools/yabridgectl"; sourceRoot = "source/tools/yabridgectl";
cargoSha256 = "sha256-/VREh/f4bAt2DXCqK0noEjn+4hcK5VZUn+gdbYbeAmk="; cargoSha256 = "sha256-pwy2Q2HUCihr7W81hGvDm9EiZHk9G8knSy0yxPy6hl8=";
patches = [ patches = [
# By default, yabridgectl locates libyabridge.so by using # By default, yabridgectl locates libyabridge.so by using

View File

@ -1,5 +1,5 @@
diff --git a/tools/yabridgectl/src/config.rs b/tools/yabridgectl/src/config.rs diff --git a/tools/yabridgectl/src/config.rs b/tools/yabridgectl/src/config.rs
index bc5ccfc4..c6d119bc 100644 index bc5f6a81..0fcd38d3 100644
--- a/tools/yabridgectl/src/config.rs --- a/tools/yabridgectl/src/config.rs
+++ b/tools/yabridgectl/src/config.rs +++ b/tools/yabridgectl/src/config.rs
@@ -23,6 +23,7 @@ use std::collections::{BTreeMap, BTreeSet, HashSet}; @@ -23,6 +23,7 @@ use std::collections::{BTreeMap, BTreeSet, HashSet};
@ -10,7 +10,7 @@ index bc5ccfc4..c6d119bc 100644
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use which::which; use which::which;
use xdg::BaseDirectories; use xdg::BaseDirectories;
@@ -233,34 +234,24 @@ impl Config { @@ -235,34 +236,27 @@ impl Config {
} }
} }
None => { None => {
@ -20,6 +20,8 @@ index bc5ccfc4..c6d119bc 100644
- // in the error message when `libyabridge-vst2.so` can't be found. - // in the error message when `libyabridge-vst2.so` can't be found.
- let system_path = Path::new("/usr/lib"); - let system_path = Path::new("/usr/lib");
+ // Search through NIX_PROFILES & data home directory if no path was set explicitly. + // Search through NIX_PROFILES & data home directory if no path was set explicitly.
+ // NIX_PROFILES is iterated in reverse from the most specific (the user profile) to
+ // the least specific (the system profile).
+ let nix_profiles = env::var("NIX_PROFILES"); + let nix_profiles = env::var("NIX_PROFILES");
let user_path = xdg_dirs.get_data_home(); let user_path = xdg_dirs.get_data_home();
- let lib_directories = [ - let lib_directories = [
@ -35,6 +37,7 @@ index bc5ccfc4..c6d119bc 100644
- ]; - ];
+ let lib_directories = nix_profiles.iter() + let lib_directories = nix_profiles.iter()
+ .flat_map(|profiles| profiles.split(' ') + .flat_map(|profiles| profiles.split(' ')
+ .rev()
+ .map(|profile| Path::new(profile).join("lib"))) + .map(|profile| Path::new(profile).join("lib")))
+ .chain(iter::once(user_path.clone())); + .chain(iter::once(user_path.clone()));
+ +
@ -56,12 +59,12 @@ index bc5ccfc4..c6d119bc 100644
)); ));
} }
diff --git a/tools/yabridgectl/src/main.rs b/tools/yabridgectl/src/main.rs diff --git a/tools/yabridgectl/src/main.rs b/tools/yabridgectl/src/main.rs
index 8c273f92..432619ec 100644 index 48cce4fa..209e40e4 100644
--- a/tools/yabridgectl/src/main.rs --- a/tools/yabridgectl/src/main.rs
+++ b/tools/yabridgectl/src/main.rs +++ b/tools/yabridgectl/src/main.rs
@@ -148,7 +148,7 @@ fn main() -> Result<()> { @@ -151,7 +151,7 @@ fn main() -> Result<()> {
.about("Path to the directory containing 'libyabridge-{vst2,vst3}.so'") .help("Path to the directory containing 'libyabridge-{vst2,vst3}.so'")
.long_about( .long_help(
"Path to the directory containing 'libyabridge-{vst2,vst3}.so'. If this \ "Path to the directory containing 'libyabridge-{vst2,vst3}.so'. If this \
- is not set, then yabridgectl will look in both '/usr/lib' and \ - is not set, then yabridgectl will look in both '/usr/lib' and \
+ is not set, then yabridgectl will look through 'NIX_PROFILES' and \ + is not set, then yabridgectl will look through 'NIX_PROFILES' and \

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "fd"; pname = "fd";
version = "8.3.1"; version = "8.3.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sharkdp"; owner = "sharkdp";
repo = "fd"; repo = "fd";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-1Fxkd37KoFkUYYeFTaCAtndCa00lZB2KptsKIwpIt2o="; sha256 = "sha256-aNAV0FVZEqtTdgvnLiS1ixtsPU48rUOZdmj07MiMVKg=";
}; };
cargoSha256 = "sha256-qymlTuFnYMbldNDGVDpkLCC0QQK1il/LAXcIil5koCo="; cargoSha256 = "sha256-A8MAgV7/6Vf+PaND+gaZz8IEq4Cw9ETEY+lF8R77lA4=";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];

View File

@ -16,13 +16,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "osm2pgsql"; pname = "osm2pgsql";
version = "1.5.1"; version = "1.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "openstreetmap"; owner = "openstreetmap";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-0mUGvu5o2MhlriNAUAUoyDrFgTw2weGGbQcBzaauKEQ="; sha256 = "sha256-6FVMv+DowMYdRdsQFL2iwG/V9D2cLWkHUVkmR3/TuUI=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "vivid"; pname = "vivid";
version = "0.7.0"; version = "0.8.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sharkdp"; owner = "sharkdp";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-2rdNjpJrBuj6toLFzFJScNh6od5qUhkSaZF+NbPBlQA="; sha256 = "sha256-83ff0T2P5aRQ6cM9z7IEuoi7syvJldIuzzdiTrygckA=";
}; };
cargoSha256 = "sha256-1aox1eiF3hu5guBjRcM3qb6mHJOutI+yargW7X4cFfg="; cargoSha256 = "sha256-W1tLQTTMOKB/BR9P3y3goPIdOe12Qdkf4wYPlhbQjzY=";
meta = with lib; { meta = with lib; {
description = "A generator for LS_COLORS with support for multiple color themes"; description = "A generator for LS_COLORS with support for multiple color themes";

View File

@ -34,12 +34,16 @@ stdenv.mkDerivation rec {
"--sysconfdir=/etc" "--sysconfdir=/etc"
"--localstatedir=/var" "--localstatedir=/var"
] ]
++ lib.optionals enablePrivSep [ ++ (
if ! enablePrivSep
then [ "--disable-privsep" ]
else [
"--enable-privsep" "--enable-privsep"
# dhcpcd disables privsep if it can't find the default user, # dhcpcd disables privsep if it can't find the default user,
# so we explicitly specify a user. # so we explicitly specify a user.
"--privsepuser=dhcpcd" "--privsepuser=dhcpcd"
]; ]
);
makeFlags = [ "PREFIX=${placeholder "out"}" ]; makeFlags = [ "PREFIX=${placeholder "out"}" ];
@ -50,7 +54,10 @@ stdenv.mkDerivation rec {
# Check that the udev plugin got built. # Check that the udev plugin got built.
postInstall = lib.optionalString (udev != null) "[ -e ${placeholder "out"}/lib/dhcpcd/dev/udev.so ]"; postInstall = lib.optionalString (udev != null) "[ -e ${placeholder "out"}/lib/dhcpcd/dev/udev.so ]";
passthru.tests = { inherit (nixosTests.networking.scripted) macvlan dhcpSimple dhcpOneIf; }; passthru = {
inherit enablePrivSep;
tests = { inherit (nixosTests.networking.scripted) macvlan dhcpSimple dhcpOneIf; };
};
meta = with lib; { meta = with lib; {
description = "A client for the Dynamic Host Configuration Protocol (DHCP)"; description = "A client for the Dynamic Host Configuration Protocol (DHCP)";

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