Merge master into haskell-updates

This commit is contained in:
github-actions[bot] 2022-09-06 00:15:12 +00:00 committed by GitHub
commit 880d763471
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
129 changed files with 3067 additions and 1719 deletions

2
.github/labeler.yml vendored
View file

@ -7,6 +7,8 @@
"6.topic: cinnamon":
- pkgs/desktops/cinnamon/**/*
- nixos/modules/services/x11/desktop-managers/cinnamon.nix
- nixos/tests/cinnamon.nix
"6.topic: emacs":
- nixos/modules/services/editors/emacs.nix

View file

@ -893,6 +893,11 @@ in mkLicense lset) ({
free = false;
};
vol-sl = {
fullName = "Volatility Software License, Version 1.0";
url = "https://www.volatilityfoundation.org/license/vsl-v1.0";
};
vsl10 = {
spdxId = "VSL-1.0";
fullName = "Vovida Software License v1.0";

View file

@ -315,6 +315,12 @@
githubId = 1174858;
name = "Maxwell Huang-Hobbs";
};
adjacentresearch = {
email = "nate@adjacentresearch.xyz";
github = "0xperp";
githubId = 96147421;
name = "0xperp";
};
adnelson = {
email = "ithinkican@gmail.com";
github = "adnelson";
@ -10241,6 +10247,15 @@
githubId = 29493551;
name = "Josh Peters";
};
peterwilli = {
email = "peter@codebuffet.co";
github = "peterwilli";
githubId = 1212814;
name = "Peter Willemsen";
keys = [{
fingerprint = "A37F D403 88E2 D026 B9F6 9617 5C9D D4BF B96A 28F0";
}];
};
peti = {
email = "simons@cryp.to";
github = "peti";

View file

@ -387,6 +387,17 @@
instead.
</para>
</listitem>
<listitem>
<para>
The <literal>coq</literal> package and versioned variants
starting at <literal>coq_8_14</literal> no longer include
CoqIDE, which is now available through
<literal>coqPackages.coqide</literal>. It is still possible to
get CoqIDE as part of the <literal>coq</literal> package by
overriding the <literal>buildIde</literal> argument of the
derivation.
</para>
</listitem>
<listitem>
<para>
PHP 7.4 is no longer supported due to upstream not supporting

View file

@ -134,6 +134,12 @@ Available as [services.patroni](options.html#opt-services.patroni.enable).
- `services.hbase` has been renamed to `services.hbase-standalone`.
For production HBase clusters, use `services.hadoop.hbase` instead.
- The `coq` package and versioned variants starting at `coq_8_14` no
longer include CoqIDE, which is now available through
`coqPackages.coqide`. It is still possible to get CoqIDE as part of
the `coq` package by overriding the `buildIde` argument of the
derivation.
- PHP 7.4 is no longer supported due to upstream not supporting this
version for the entire lifecycle of the 22.11 release.

View file

@ -126,6 +126,8 @@ in {
services.udev.packages = [ cfg.package ];
systemd.packages = [ cfg.package ];
security.polkit.enable = true;
};
meta = {

View file

@ -3,6 +3,7 @@
with lib;
let
cfg = config.services.paperless;
pkg = cfg.package;
defaultUser = "paperless";
@ -27,7 +28,7 @@ let
setupEnv = lib.concatStringsSep "\n" (mapAttrsToList (name: val: "export ${name}=\"${val}\"") env);
in pkgs.writeShellScript "manage" ''
${setupEnv}
exec ${cfg.package}/bin/paperless-ngx "$@"
exec ${pkg}/bin/paperless-ngx "$@"
'';
# Secure the services
@ -213,7 +214,7 @@ in
description = "Paperless scheduler";
serviceConfig = defaultServiceConfig // {
User = cfg.user;
ExecStart = "${cfg.package}/bin/paperless-ngx qcluster";
ExecStart = "${pkg}/bin/paperless-ngx qcluster";
Restart = "on-failure";
# The `mbind` syscall is needed for running the classifier.
SystemCallFilter = defaultServiceConfig.SystemCallFilter ++ [ "mbind" ];
@ -229,9 +230,9 @@ in
# Auto-migrate on first run or if the package has changed
versionFile="${cfg.dataDir}/src-version"
if [[ $(cat "$versionFile" 2>/dev/null) != ${cfg.package} ]]; then
${cfg.package}/bin/paperless-ngx migrate
echo ${cfg.package} > "$versionFile"
if [[ $(cat "$versionFile" 2>/dev/null) != ${pkg} ]]; then
${pkg}/bin/paperless-ngx migrate
echo ${pkg} > "$versionFile"
fi
''
+ optionalString (cfg.passwordFile != null) ''
@ -241,7 +242,7 @@ in
superuserStateFile="${cfg.dataDir}/superuser-state"
if [[ $(cat "$superuserStateFile" 2>/dev/null) != $superuserState ]]; then
${cfg.package}/bin/paperless-ngx manage_superuser
${pkg}/bin/paperless-ngx manage_superuser
echo "$superuserState" > "$superuserStateFile"
fi
'';
@ -266,7 +267,7 @@ in
description = "Paperless document consumer";
serviceConfig = defaultServiceConfig // {
User = cfg.user;
ExecStart = "${cfg.package}/bin/paperless-ngx document_consumer";
ExecStart = "${pkg}/bin/paperless-ngx document_consumer";
Restart = "on-failure";
};
environment = env;
@ -282,7 +283,7 @@ in
User = cfg.user;
ExecStart = ''
${pkgs.python3Packages.gunicorn}/bin/gunicorn \
-c ${cfg.package}/lib/paperless-ngx/gunicorn.conf.py paperless.asgi:application
-c ${pkg}/lib/paperless-ngx/gunicorn.conf.py paperless.asgi:application
'';
Restart = "on-failure";
@ -295,8 +296,8 @@ in
CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" ];
};
environment = env // {
PATH = mkForce cfg.package.path;
PYTHONPATH = "${cfg.package.pythonPath}:${cfg.package}/lib/paperless-ngx/src";
PATH = mkForce pkg.path;
PYTHONPATH = "${pkg.python.pkgs.makePythonPath pkg.propagatedBuildInputs}:${pkg}/lib/paperless-ngx/src";
};
# Allow the web interface to access the private /tmp directory of the server.
# This is required to support uploading files via the web interface.

View file

@ -82,6 +82,7 @@ in {
cfssl = handleTestOn ["x86_64-linux"] ./cfssl.nix {};
charliecloud = handleTest ./charliecloud.nix {};
chromium = (handleTestOn ["x86_64-linux"] ./chromium.nix {}).stable or {};
cinnamon = handleTest ./cinnamon.nix {};
cjdns = handleTest ./cjdns.nix {};
clickhouse = handleTest ./clickhouse.nix {};
cloud-init = handleTest ./cloud-init.nix {};

68
nixos/tests/cinnamon.nix Normal file
View file

@ -0,0 +1,68 @@
import ./make-test-python.nix ({ pkgs, lib, ... }: {
name = "cinnamon";
meta = with lib; {
maintainers = teams.cinnamon.members;
};
nodes.machine = { nodes, ... }: {
imports = [ ./common/user-account.nix ];
services.xserver.enable = true;
services.xserver.desktopManager.cinnamon.enable = true;
};
enableOCR = true;
testScript = { nodes, ... }:
let
user = nodes.machine.config.users.users.alice;
uid = toString user.uid;
bus = "DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/${uid}/bus";
display = "DISPLAY=:0.0";
env = "${bus} ${display}";
gdbus = "${env} gdbus";
su = command: "su - ${user.name} -c '${env} ${command}'";
# Call javascript in cinnamon (the shell), returns a tuple (success, output),
# where `success` is true if the dbus call was successful and `output` is what
# the javascript evaluates to.
eval = "call --session -d org.Cinnamon -o /org/Cinnamon -m org.Cinnamon.Eval";
# Should be 2 (RunState.RUNNING) when startup is done.
# https://github.com/linuxmint/cinnamon/blob/5.4.0/js/ui/main.js#L183-L187
getRunState = su "${gdbus} ${eval} Main.runState";
# Start gnome-terminal.
gnomeTerminalCommand = su "gnome-terminal";
# Hopefully gnome-terminal's wm class.
wmClass = su "${gdbus} ${eval} global.display.focus_window.wm_class";
in
''
machine.wait_for_unit("display-manager.service")
with subtest("Test if we can see username in slick-greeter"):
machine.wait_for_text("${user.description}")
machine.screenshot("slick_greeter_lightdm")
with subtest("Login with slick-greeter"):
machine.send_chars("${user.password}\n")
machine.wait_for_x()
machine.wait_for_file("${user.home}/.Xauthority")
machine.succeed("xauth merge ${user.home}/.Xauthority")
with subtest("Check that logging in has given the user ownership of devices"):
machine.succeed("getfacl -p /dev/snd/timer | grep -q ${user.name}")
with subtest("Wait for the Cinnamon shell"):
# Correct output should be (true, '2')
machine.wait_until_succeeds("${getRunState} | grep -q 'true,..2'")
with subtest("Open GNOME Terminal"):
machine.succeed("${gnomeTerminalCommand}")
# Correct output should be (true, '"Gnome-terminal"')
machine.wait_until_succeeds("${wmClass} | grep -q 'true,...Gnome-terminal'")
machine.sleep(20)
machine.screenshot("screen")
'';
})

View file

@ -4,6 +4,7 @@ makeInstalledTest {
tested = pkgs.ibus;
testConfig = {
i18n.supportedLocales = [ "all" ];
i18n.inputMethod.enabled = "ibus";
systemd.user.services.ibus-daemon = {
serviceConfig.ExecStart = "${pkgs.ibus}/bin/ibus-daemon --xim --verbose";

View file

@ -69,7 +69,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
server.wait_until_succeeds("curl -sf https://${serverDomain} | grep Kanidm")
server.wait_until_succeeds("ldapsearch -H ldap://[::1]:636 -b '${ldapBaseDN}' -x '(name=test)'")
client.wait_until_succeeds("kanidm login -D anonymous && kanidm self whoami | grep anonymous@${serverDomain}")
(rv, result) = server.execute("kanidmd recover_account -d quiet -c ${serverConfigFile} -n admin 2>&1 | rg -o '[A-Za-z0-9]{48}'")
rv, result = server.execute("kanidmd recover_account -c ${serverConfigFile} idm_admin 2>&1 | rg -o '[A-Za-z0-9]{48}'")
assert rv == 0
'';
})

View file

@ -0,0 +1,45 @@
{ lib
, stdenv
, fetchurl
, dpkg
, makeWrapper
, electron
}:
stdenv.mkDerivation rec {
pname = "headset";
version = "4.0.0";
src = fetchurl {
url = "https://github.com/headsetapp/headset-electron/releases/download/v${version}/headset_${version}_amd64.deb";
hash = "sha256-M1HMZgYczZWFq0EGlCMEGOGUNoUcmq37J8Ycen72PhM=";
};
dontConfigure = true;
dontBuild = true;
nativeBuildInputs = [ makeWrapper dpkg ];
unpackPhase = "dpkg-deb --fsys-tarfile $src | tar -x --no-same-permissions --no-same-owner";
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/headset
cp -R usr/share/{applications,icons} $out/share
cp -R usr/lib/headset/resources/app.asar $out/share/headset/
makeWrapper ${electron}/bin/electron $out/bin/headset \
--add-flags $out/share/headset/app.asar
runHook postInstall
'';
meta = with lib; {
description = "A simple music player for YouTube and Reddit";
homepage = "https://headsetapp.co/";
license = licenses.mit;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ muscaln ];
};
}

View file

@ -5,7 +5,7 @@
}:
mkDerivation rec {
version = "0.9.6";
version = "0.9.7";
pname = "qjackctl";
# some dependencies such as killall have to be installed additionally
@ -14,7 +14,7 @@ mkDerivation rec {
owner = "rncbc";
repo = "qjackctl";
rev = "${pname}_${lib.replaceChars ["."] ["_"] version}";
sha256 = "sha256-8oVnUe+/y4p1WeHMEhKMIl0/ax3PT0pN4f1UJaBmZBw=";
sha256 = "sha256-PchW9cM5qEP51G9RXUZ3j/AvKqTkgNiw3esqSQqsy0M=";
};
buildInputs = [

View file

@ -42,13 +42,13 @@ let
in
stdenv.mkDerivation rec {
pname = "strawberry";
version = "1.0.8";
version = "1.0.9";
src = fetchFromGitHub {
owner = "jonaski";
repo = pname;
rev = version;
hash = "sha256-NhouAHr5fKdH62rtCIHlr8ennixIf9YQrf4zRIGjfxs=";
hash = "sha256-l6q9iTC3K7SwD0KfVVtXUGzeyuuR6OxtPkaj85s+qT4=";
};
# the big strawberry shown in the context menu is *very* much in your face, so use the grey version instead

View file

@ -0,0 +1,92 @@
# largely inspired from https://github.com/saber-hq/saber-overlay/blob/master/packages/solana/solana.nix
{ stdenv
, fetchFromGitHub
, lib
, rustPlatform
, IOKit
, Security
, AppKit
, pkg-config
, udev
, zlib
, protobuf
, clang
, llvm
, pkgconfig
, openssl
, libclang
, rustfmt
, perl
, hidapi
, solanaPkgs ? [
"solana"
"solana-bench-tps"
"solana-faucet"
"solana-gossip"
"solana-install"
"solana-keygen"
"solana-ledger-tool"
"solana-log-analyzer"
"solana-net-shaper"
"solana-sys-tuner"
"solana-validator"
"cargo-build-bpf"
"cargo-test-bpf"
"solana-dos"
"solana-install-init"
"solana-stake-accounts"
"solana-test-validator"
"solana-tokens"
"solana-watchtower"
] ++ [
# XXX: Ensure `solana-genesis` is built LAST!
# See https://github.com/solana-labs/solana/issues/5826
"solana-genesis"
]
}:
let
pinData = lib.importJSON ./pin.json;
version = pinData.version;
sha256 = pinData.sha256;
cargoSha256 = pinData.cargoSha256;
in
rustPlatform.buildRustPackage rec {
pname = "solana-validator";
inherit version;
src = fetchFromGitHub {
owner = "solana-labs";
repo = "solana";
rev = "v${version}";
inherit sha256;
};
# partly inspired by https://github.com/obsidiansystems/solana-bridges/blob/develop/default.nix#L29
inherit cargoSha256;
verifyCargoDeps = true;
cargoBuildFlags = builtins.map (n: "--bin=${n}") solanaPkgs;
# weird errors. see https://github.com/NixOS/nixpkgs/issues/52447#issuecomment-852079285
LIBCLANG_PATH = "${libclang.lib}/lib";
BINDGEN_EXTRA_CLANG_ARGS =
"-isystem ${libclang.lib}/lib/clang/${lib.getVersion clang}/include";
LLVM_CONFIG_PATH = "${llvm}/bin/llvm-config";
nativeBuildInputs = [ clang llvm pkgconfig protobuf rustfmt perl ];
buildInputs =
[ openssl zlib libclang hidapi ] ++ (lib.optionals stdenv.isLinux [ udev ]);
strictDeps = true;
doCheck = false;
meta = with lib; {
description = "Web-Scale Blockchain for fast, secure, scalable, decentralized apps and marketplaces. ";
homepage = "https://solana.com";
license = licenses.asl20;
maintainers = with maintainers; [ adjacentresearch ];
platforms = platforms.unix;
};
passthru.updateScript = ./update.sh;
}

View file

@ -0,0 +1,5 @@
{
"version": "1.10.35",
"sha256": "sha256-y7+ogMJ5E9E/+ZaTCHWOQWG7iR+BGuVqvlNUDT++Ghc=",
"cargoSha256": "sha256-idlu9qkh2mrF6MxstRcvemKrtTGNY/InBnIDqRvDQPs"
}

View file

@ -0,0 +1,33 @@
#!/usr/bin/env nix-shell
#! nix-shell -i oil -p jq sd nix-prefetch-github ripgrep
# TODO set to `verbose` or `extdebug` once implemented in oil
shopt --set xtrace
# we need failures inside of command subs to get the correct cargoSha256
shopt --unset inherit_errexit
const directory = $(dirname $0 | xargs realpath)
const owner = "solana-labs"
const repo = "solana"
const latest_rev = $(curl -q https://api.github.com/repos/${owner}/${repo}/releases/latest | \
jq -r '.tag_name')
const latest_version = $(echo $latest_rev | sd 'v' '')
const current_version = $(jq -r '.version' $directory/pin.json)
if ("$latest_version" === "$current_version") {
echo "solana is already up-to-date"
return 0
} else {
const tarball_meta = $(nix-prefetch-github $owner $repo --rev "$latest_rev")
const tarball_hash = "sha256-$(echo $tarball_meta | jq -r '.sha256')"
jq ".version = \"$latest_version\" | \
.\"sha256\" = \"$tarball_hash\" | \
.\"cargoSha256\" = \"\"" $directory/pin.json | sponge $directory/pin.json
const new_cargo_sha256 = $(nix-build -A solana-testnet 2>&1 | \
tail -n 2 | \
head -n 1 | \
sd '\s+got:\s+' '')
jq ".cargoSha256 = \"$new_cargo_sha256\"" $directory/pin.json | sponge $directory/pin.json
}

View file

@ -0,0 +1,71 @@
{ lib, stdenv
, fetchurl
, gcc-unwrapped
, dpkg
, util-linux
, bash
, makeWrapper
, electron
}:
let
inherit (stdenv.hostPlatform) system;
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
sha256 = {
"x86_64-linux" = "139nlr191bsinx6ixpi2glcr03lsnzq7b0438h3245napsnjpx6p";
}."${system}" or throwSystem;
arch = {
"x86_64-linux" = "amd64";
}."${system}" or throwSystem;
in
stdenv.mkDerivation rec {
pname = "terra-station";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/terra-money/station-desktop/releases/download/v${version}/Terra.Station_${version}_${arch}.deb";
inherit sha256;
};
nativeBuildInputs = [ makeWrapper ];
dontConfigure = true;
dontBuild = true;
unpackPhase = ''
${dpkg}/bin/dpkg-deb -x $src .
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/${pname}
cp -a usr/share/* $out/share
cp -a "opt/Terra Station/"{locales,resources} $out/share/${pname}
substituteInPlace $out/share/applications/station-electron.desktop \
--replace "/opt/Terra Station/station-electron" ${pname}
runHook postInstall
'';
postFixup = ''
makeWrapper ${electron}/bin/electron $out/bin/${pname} \
--add-flags $out/share/${pname}/resources/app.asar \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ gcc-unwrapped.lib ]}"
'';
meta = with lib; {
description = "Terra station is the official wallet of the Terra blockchain.";
homepage = "https://docs.terra.money/docs/learn/terra-station/README.html";
license = licenses.isc;
maintainers = [ maintainers.peterwilli ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -1,4 +1,4 @@
{ fetchzip, lib, rustPlatform, makeWrapper }:
{ fetchzip, lib, rustPlatform, installShellFiles, makeWrapper }:
rustPlatform.buildRustPackage rec {
pname = "helix";
@ -14,7 +14,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-idItRkymr+cxk3zv2mPBR/frCGvzEUdSAhY7gghfR3M=";
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [ installShellFiles makeWrapper ];
postInstall = ''
# not needed at runtime
@ -22,6 +22,7 @@ rustPlatform.buildRustPackage rec {
mkdir -p $out/lib
cp -r runtime $out/lib
installShellCompletion contrib/completion/hx.{bash,fish,zsh}
'';
postFixup = ''
wrapProgram $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime

View file

@ -16,16 +16,16 @@
rustPlatform.buildRustPackage rec {
pname = "epick";
version = "0.8.1";
version = "0.8.2";
src = fetchFromGitHub {
owner = "vv9k";
repo = pname;
rev = version;
sha256 = "sha256-sZ0ZPst6PE6KQ+pmjqLdcD7bWU/gLRsGH84PtWTLdSQ=";
sha256 = "sha256-b4if2ggJY+8CsCX8jbnnWXy16k7sfB88CLlYYCrtltk=";
};
cargoSha256 = "sha256-kMVjX4AWn8XFRzI7P9NRW8B7AHcIC8TG8LQk7tzkz5o=";
cargoSha256 = "sha256-HyGSmeLJ+2Twkg94p1QqXZDix0mU2jGFfEot6hgUg34=";
nativeBuildInputs = lib.optional stdenv.isLinux python3;

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "kanboard";
version = "1.2.22";
version = "1.2.23";
src = fetchFromGitHub {
owner = "kanboard";
repo = "kanboard";
rev = "v${version}";
sha256 = "sha256-WG2lTPpRG9KQpRdb+cS7CqF4ZDV7JZ8XtNqAI6eVzm0=";
sha256 = "sha256-RO8yxXn0kRXNIP6+OUdXMH1tRDX55e34r3CGPU5EHU0=";
};
dontBuild = true;

View file

@ -0,0 +1,39 @@
{ lib, buildGoModule, fetchFromGitHub, pkg-config, gtk3, gtk-layer-shell }:
buildGoModule rec {
pname = "nwg-bar";
version = "unstable-2021-09-23";
src = fetchFromGitHub {
owner = "nwg-piotr";
repo = pname;
rev = "7dd7df3cd9a9e78fe477e88e0f3cb97309d50ff5";
sha256 = "sha256-piysF19WDjb/EGI9MBepYrOrQL9C1fsoq05AP8CYN58=";
};
patches = [ ./fix-paths.patch ];
postPatch = ''
substituteInPlace config/bar.json --subst-var out
substituteInPlace tools.go --subst-var out
'';
vendorSha256 = "sha256-dgOwflNRb+11umFykozL8DQ50dLbhbMCmCyKmLlW7rw=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk3 gtk-layer-shell ];
preInstall = ''
mkdir -p $out/share/nwg-bar
cp -r config/* images $out/share/nwg-bar
'';
meta = with lib; {
description =
"GTK3-based button bar for sway and other wlroots-based compositors";
homepage = "https://github.com/nwg-piotr/nwg-bar";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ sei40kr ];
};
}

View file

@ -0,0 +1,47 @@
diff --git a/config/bar.json b/config/bar.json
index 6c456e7..98527cb 100644
--- a/config/bar.json
+++ b/config/bar.json
@@ -2,21 +2,21 @@
{
"label": "Lock",
"exec": "swaylock -f -c 000000",
- "icon": "/usr/share/nwg-bar/images/system-lock-screen.svg"
+ "icon": "@out@/share/nwg-bar/images/system-lock-screen.svg"
},
{
"label": "Logout",
"exec": "swaymsg exit",
- "icon": "/usr/share/nwg-bar/images/system-log-out.svg"
+ "icon": "@out@/share/nwg-bar/images/system-log-out.svg"
},
{
"label": "Reboot",
"exec": "systemctl reboot",
- "icon": "/usr/share/nwg-bar/images/system-reboot.svg"
+ "icon": "@out@/share/nwg-bar/images/system-reboot.svg"
},
{
"label": "Shutdown",
"exec": "systemctl -i poweroff",
- "icon": "/usr/share/nwg-bar/images/system-shutdown.svg"
+ "icon": "@out@/share/nwg-bar/images/system-shutdown.svg"
}
]
\ No newline at end of file
diff --git a/tools.go b/tools.go
index f97751e..987163e 100644
--- a/tools.go
+++ b/tools.go
@@ -45,10 +45,7 @@ func configDir() string {
}
func getDataHome() string {
- if os.Getenv("XDG_DATA_HOME") != "" {
- return os.Getenv("XDG_DATA_HOME")
- }
- return "/usr/share/"
+ return "@out@/share/"
}
func createDir(dir string) {

View file

@ -0,0 +1,77 @@
{ lib
, stdenv
, mkDerivation
, fetchzip
, installShellFiles
, pkg-config
, qmake
, qtbase
, kcoreaddons
, kwidgetsaddons
}:
mkDerivation rec {
pname = "qelectrotech";
version = "0.8.0";
src = fetchzip {
url = "https://git.tuxfamily.org/qet/qet.git/snapshot/qet-${version}.tar.gz";
sha256 = "sha256-op2vnMPF9bNnHGphWFB/HEeoThE6tX+9UvX8LWVwkzI=";
};
postPatch = ''
substituteInPlace qelectrotech.pro \
--replace 'GIT_COMMIT_SHA="\\\"$(shell git -C \""$$_PRO_FILE_PWD_"\" rev-parse --verify HEAD)\\\""' \
'GIT_COMMIT_SHA="\\\"${version}\\\""' \
--replace "COMPIL_PREFIX = '/usr/local/'" \
"COMPIL_PREFIX = '$out/'" \
--replace "INSTALL_PREFIX = '/usr/local/'" \
"INSTALL_PREFIX = '$out/'"
'';
nativeBuildInputs = [
installShellFiles
pkg-config
qmake
];
buildInputs = [
kcoreaddons
kwidgetsaddons
qtbase
];
qmakeFlags = [
"INSTALLROOT=$(out)"
];
installPhase = ''
runHook preInstall
install -Dm555 qelectrotech $out/bin/qelectrotech
install -Dm444 -t $out/share/applications misc/qelectrotech.desktop
install -Dm444 -t $out/share/applications misc/x-qet-titleblock.desktop
install -Dm444 -t $out/share/applications misc/x-qet-element.desktop
install -Dm444 -t $out/share/applications misc/x-qet-project.desktop
mkdir -p $out/share/qelectrotech
cp -r elements $out/share/qelectrotech
cp -r titleblocks $out/share/qelectrotech
cp -r lang $out/share/qelectrotech
cp -r examples $out/share/qelectrotech
mkdir -p $out/share/icons/hicolor
cp -r ico $out/share/icons/hicolor
runHook postInstall
'';
meta = with lib; {
description = "Free software to create electric diagrams";
homepage = "https://qelectrotech.org/";
license = licenses.gpl2;
maintainers = with maintainers; [ yvesf ];
platforms = qtbase.meta.platforms;
};
}

View file

@ -3,10 +3,10 @@
rec {
firefox = buildMozillaMach rec {
pname = "firefox";
version = "104.0.1";
version = "104.0.2";
src = fetchurl {
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
sha512 = "ad80fccfde34a201fc4b596c2a0a1d959abc132946dde0865b6da624a07fd9c57381bc268c394a17f295e0e183d122b2cf5c5126e8a0bc99684affaa6212e246";
sha512 = "bf0d972add11566f5ef6402a22abd82122945de9fa9aab6ed7bb7e41d0843d41948a6d95c0769b0b704c066c8ff6e3f3bf26fcf288c64cd3b3f09a13d4dd467d";
};
meta = {

View file

@ -7,13 +7,13 @@
buildGoModule rec {
pname = "arkade";
version = "0.8.39";
version = "0.8.41";
src = fetchFromGitHub {
owner = "alexellis";
repo = "arkade";
rev = version;
sha256 = "sha256-ucM4Dl4ZeeZ6pCQ3qdf3Z88CWJIoreZWeo6ehKqXxI8=";
sha256 = "sha256-PcP/D/uq+zl8Utbv7TkFGoZGpIGOddzSqaqrpSp6Rgw=";
};
CGO_ENABLED = 0;

View file

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "helmsman";
version = "3.14.0";
version = "3.15.0";
src = fetchFromGitHub {
owner = "Praqma";
repo = "helmsman";
rev = "v${version}";
sha256 = "sha256-6ISQsCLiyW4GDFuVnQ+UWwfN2ZqW3m3ZN/FrYOd83DE=";
sha256 = "sha256-wKemvUk5UP4LweX9JxbsYlrjuVRgchkOvlHqRYvAB9A=";
};
vendorSha256 = "sha256-AjRKPsCPHCDEPjqMJtl/hkrcGepj3neC9eSgsbT/DIc=";
vendorSha256 = "sha256-swUZqrQ0nJS66oyqn0ONmFutLR2mEnDviC8siQB19c8=";
doCheck = false;

View file

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "hydroxide";
version = "0.2.23";
version = "0.2.24";
src = fetchFromGitHub {
owner = "emersion";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Hc348rlwICnPWq7qYzFE01QeeJuQpSP19NjXtGqI10o=";
sha256 = "sha256-Bstrg/TtGpC4zeJEYgycwdzBMfMbQX0S6okdtUiVMIQ=";
};
vendorSha256 = "sha256-M5QlhF2Cj1jn5NNiKj1Roh9+sNCWxQEb4vbtsDfapWY=";
vendorSha256 = "sha256-OLsJc/AMtD03KA8SN5rsnaq57/cB7bMB/f7FfEjErEU=";
doCheck = false;

View file

@ -9,16 +9,19 @@
}:
let
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/sindresorhus/caprine/releases/download/v${version}/Caprine-${version}.AppImage";
name = "Caprine-${version}.AppImage";
inherit sha256;
};
extracted = appimageTools.extractType2 { inherit name src; };
extracted = appimageTools.extractType2 { inherit pname version src; };
in
(appimageTools.wrapType2 {
inherit name src;
inherit pname version src;
passthru = {
inherit pname version src;
};
profile = ''
export LC_ALL=C.UTF-8
@ -27,7 +30,7 @@ in
extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs;
extraInstallCommands = ''
mv $out/bin/{${name},caprine}
mv $out/bin/{${pname}-${version},caprine}
mkdir -p $out/share
"${xorg.lndir}/bin/lndir" -silent "${extracted}/usr/share" "$out/share"
@ -42,6 +45,4 @@ in
platforms = [ "x86_64-linux" ];
mainProgram = "caprine";
};
}) // {
inherit pname version;
}
})

View file

@ -1,7 +1,7 @@
{ lib, callPackage, stdenvNoCC }:
let
pname = "caprine";
version = "2.55.4";
version = "2.55.5";
metaCommon = with lib; {
description = "An elegant Facebook Messenger desktop app";
homepage = "https://sindresorhus.com/caprine";
@ -10,11 +10,11 @@ let
};
x86_64-appimage = callPackage ./build-from-appimage.nix {
inherit pname version metaCommon;
sha256 = "221PyDoCkWqDdewCkFycpjMTcVOcl58blCjrC7O7xyk=";
sha256 = "MMbyiLBrdMGENRq493XzkcsDoXr3Aq3rXAni1egkPbo=";
};
x86_64-dmg = callPackage ./build-from-dmg.nix {
inherit pname version metaCommon;
sha256 = "6SOqlH7Z9DuQVR4i1OltnSb4dJscFUxaXxgNkE5FVUE=";
sha256 = "1txuSQk6tH0xsjPk5cWUVnaAw4XBOr1+Fel06NLKFfk=";
};
in
(if stdenvNoCC.isDarwin then x86_64-dmg else x86_64-appimage).overrideAttrs (oldAttrs: {

View file

@ -0,0 +1,22 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "ipfs-upload-client";
version = "0.1.1";
src = fetchFromGitHub {
owner = "infura";
repo = "ipfs-upload-client";
rev = "v${version}";
sha256 = "sha256-O9N2QGQDNk/nwpuJrJKy9arN3gjsBAL+IdghfSaUrCw=";
};
vendorSha256 = "sha256-YzIUoN/B4TBlAfmvORrR9Gy+lMzwlaePm8yBoMsPaYU=";
meta = with lib; {
description = "A minimal CLI tool to upload files and directories to IPFS via Infura's IPFS or another API endpoint";
homepage = "https://github.com/INFURA/ipfs-upload-client";
license = licenses.mit;
maintainers = with maintainers; [ matthewcroughan ];
};
}

View file

@ -207,11 +207,7 @@ python.pkgs.pythonPackages.buildPythonApplication rec {
'';
passthru = {
inherit python;
# PYTHONPATH of all dependencies used by the package
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
inherit path;
inherit python path;
tests = { inherit (nixosTests) paperless; };
};

View file

@ -0,0 +1,37 @@
{ lib
, stdenv
, fetchurl
, fftw
, gtk2
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "rscw";
version = "0.1e";
src = fetchurl {
url = "https://www.pa3fwm.nl/software/${pname}/${pname}-${version}.tgz";
sha256 = "1hxwxmqc5jinr14ya1idigqigc8qhy1vimzcwy2vmwdjay2sqik2";
};
setSourceRoot = "sourceRoot=`pwd`";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 fftw ];
installPhase = ''
install -D -m 0755 noisycw $out/bin/noisycw
install -D -m 0755 rs12tlmdec $out/bin/rs12tlmdec
install -D -m 0755 rscw $out/bin/rscw
install -D -m 0755 rscwx $out/bin/rscwx
'';
meta = with lib; {
description = "Receive CW through the soundcard";
homepage = "https://www.pa3fwm.nl/software/rscw/";
license = licenses.gpl2;
maintainers = with maintainers; [ earldouglas ];
platforms = platforms.linux;
};
}

View file

@ -1,14 +1,14 @@
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, soapysdr, sdrplay }:
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "soapysdr-sdrplay3";
version = "unstable-2021-04-25";
version = "0.4.0";
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapySDRPlay3";
rev = "e6fdb719b611b1dfb7f26c56a4df1e241bd10129";
sha256 = "0rrylp3ikrva227hjy60v4n6d6yvdavjsad9kszw9s948mwiashi";
rev = "soapy-sdrplay3-${version}";
sha256 = "sha256-WMcAw0uR2o2SrQR4mBtdVEZlJ/ZXRqwo6zMJNsB/5U4=";
};
nativeBuildInputs = [ cmake pkg-config ];

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libminc, bicpl, itk4, fftwFloat, gsl }:
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libminc, bicpl, itk, fftwFloat, gsl }:
stdenv.mkDerivation rec {
pname = "EZminc";
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ itk4 libminc bicpl fftwFloat gsl ];
buildInputs = [ itk libminc bicpl fftwFloat gsl ];
cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake"
"-DEZMINC_BUILD_TOOLS=TRUE"

View file

@ -1,26 +1,18 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, makeWrapper, itk4, vtk_7, Cocoa }:
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, itk-unstable, vtk_8, Cocoa }:
stdenv.mkDerivation rec {
pname = "ANTs";
version = "2.2.0";
version = "2.4.1";
src = fetchFromGitHub {
owner = "ANTsX";
repo = "ANTs";
rev = "37ad4e20be3a5ecd26c2e4e41b49e778a0246c3d";
sha256 = "1hrdwv3m9xh3yf7l0rm2ggxc2xzckfb8srs88g485ibfszx7i03q";
rev = "v${version}";
sha256 = "sha256-sRZwRRqqU0xiu4K6xlLQV4xzVNnzMlnRsk+TPiv0wD0=";
};
patches = [
# Fix build with gcc8
(fetchpatch {
url = "https://github.com/ANTsX/ANTs/commit/89af9b2694715bf8204993e032fa132f80cf37bd.patch";
sha256 = "1glkrwa1jmxxbmzihycxr576azjqby31jwpj165qc54c91pn0ams";
})
];
nativeBuildInputs = [ cmake makeWrapper ];
buildInputs = [ itk4 vtk_7 ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
buildInputs = [ itk-unstable vtk_8 ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
cmakeFlags = [ "-DANTS_SUPERBUILD=FALSE" "-DUSE_VTK=TRUE" ];

View file

@ -0,0 +1,27 @@
{ lib
, stdenv
, fetchurl
, zlib
, gsl
, boost
}:
stdenv.mkDerivation rec {
pname = "treemix";
version = "1.13";
src = fetchurl {
url = "https://bitbucket.org/nygcresearch/treemix/downloads/${pname}-${version}.tar.gz";
sha256 = "1nd3rzsdgk47r8b8k43mdfvaagln533sm08s1jr0dz8km8nlym7y";
};
buildInputs = [ zlib gsl boost ];
meta = with lib ; {
description = "Inference of patterns of population splitting and mixing from genome-wide allele frequency data";
homepage = "https://bitbucket.org/nygcresearch/treemix/wiki/Home";
license = licenses.gpl3Only;
maintainers = [ maintainers.bzizou ];
platforms = platforms.linux;
};
}

View file

@ -19,11 +19,11 @@ let
in stdenv.mkDerivation rec {
pname = "gromacs";
version = "2022.2";
version = "2022.3";
src = fetchurl {
url = "ftp://ftp.gromacs.org/pub/gromacs/gromacs-${version}.tar.gz";
sha256 = "1gq1bvscngsbf8231laam6z0v38lmy95nakxr5225ynjhkw08r35";
sha256 = "sha256-FM+xMN2vj3WaOvZDwE9aDQ0ysJvDRIsWr6W2F/XjXa4=";
};
nativeBuildInputs = [ cmake ];

View file

@ -27,7 +27,7 @@
}:
let
version = "1.13.0";
version = "1.13.1";
# build stimuli file for PGO build and the script to generate it
# independently of the foot's build, so we can cache the result
@ -99,7 +99,7 @@ stdenv.mkDerivation rec {
owner = "dnkl";
repo = pname;
rev = version;
sha256 = "0cc262jpqp8l25p04pcqh3w671gw0p1d2zrr3d34ch8k9c6s4nzq";
sha256 = "0k0zbh6adwr99y9aazlyvp6s1k8zaq2j6x8kqb8q9a5qjjg56lay";
};
depsBuildBuild = [

View file

@ -29,14 +29,14 @@
rustPlatform.buildRustPackage rec {
pname = "wezterm";
version = "20220807-113146-c2fee766";
version = "20220903-194523-3bb1ed61";
src = fetchFromGitHub {
owner = "wez";
repo = pname;
rev = version;
fetchSubmodules = true;
sha256 = "sha256-2krngcANqcwq8wNQZSz01srJ6yEOkk03QnO2sL7SuJA=";
sha256 = "sha256-R5DFBO6U1hVDCjvvNF2nDoldl+mzkrjaXR5rIPCosmM=";
};
postPatch = ''
@ -46,7 +46,7 @@ rustPlatform.buildRustPackage rec {
rm -r wezterm-ssh/tests
'';
cargoSha256 = "sha256-ZkDGCR86VSCuvVlo4Pf9Ifax2BZuBicZpB/K/7bIMls=";
cargoSha256 = "sha256-x2n8ti9zk+h2MrwDg/FgRWTQJmCAckxE2fOHgrWdayA=";
nativeBuildInputs = [
pkg-config

View file

@ -37,8 +37,9 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Network A/V plugin for OBS Studio";
homepage = "https://github.com/Palakis/obs-ndi";
maintainers = with maintainers; [ jshcmpbll ];
license = licenses.gpl2;
platforms = with platforms; linux;
maintainers = with maintainers; [ jshcmpbll ];
platforms = platforms.linux;
hydraPlatforms = ndi.meta.hydraPlatforms;
};
}

View file

@ -25,7 +25,7 @@ let
};
pythonEnv =
python3.withPackages (p: [ p.fonttools p.nototools ]);
python3.withPackages (ps: with ps; [ fonttools nototools ]);
in
stdenv.mkDerivation rec {

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "gnome-shell-extension-arcmenu";
version = "35";
version = "37";
src = fetchFromGitLab {
owner = "arcmenu";
repo = "ArcMenu";
rev = "v${version}";
sha256 = "sha256-q869UCnekCHBbB0aGNmHl8Ln32hRWHLddu3oqIUinwo=";
sha256 = "sha256-dXGcdDq6RbvE8ICd2VhnyMlfOH+x2jqlG3Jerll9EE8=";
};
patches = [

View file

@ -44,6 +44,11 @@ let
# BEAM-based languages.
elixir = elixir_1_13;
elixir_1_14 = lib'.callElixir ../interpreters/elixir/1.14.nix {
inherit erlang;
debugInfo = true;
};
elixir_1_13 = lib'.callElixir ../interpreters/elixir/1.13.nix {
inherit erlang;
debugInfo = true;
@ -64,11 +69,6 @@ let
debugInfo = true;
};
elixir_1_9 = lib'.callElixir ../interpreters/elixir/1.9.nix {
inherit erlang;
debugInfo = true;
};
# Remove old versions of elixir, when the supports fades out:
# https://hexdocs.pm/elixir/compatibility-and-deprecations.html

View file

@ -0,0 +1,8 @@
{ mkDerivation }:
mkDerivation {
version = "1.14.0";
sha256 = "16rc4qaykddda6ax5f8zw70yhapgwraqbgx5gp3f40dvfax3d51l";
# https://hexdocs.pm/elixir/1.14.0/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp
minimumOTPVersion = "23";
}

View file

@ -1,9 +0,0 @@
{ mkDerivation }:
# How to obtain `sha256`:
# nix-prefetch-url --unpack https://github.com/elixir-lang/elixir/archive/v${version}.tar.gz
mkDerivation {
version = "1.9.4";
sha256 = "1l4318g35y4h0vi2w07ayc3jizw1xc3s7hdb47w6j3iw33y06g6b";
minimumOTPVersion = "20";
}

View file

@ -6,13 +6,13 @@
stdenv.mkDerivation rec {
pname = "intel-gmmlib";
version = "22.1.7";
version = "22.1.8";
src = fetchFromGitHub {
owner = "intel";
repo = "gmmlib";
rev = "intel-gmmlib-${version}";
sha256 = "sha256-HRN4SSjP8h8nnCisysDM9V17012ECLz2GgdUok1AV24=";
sha256 = "sha256-l6FCFYdHQrH00phcncmeCGrFDs5lmyTRjQXH13nWZwg=";
};
nativeBuildInputs = [ cmake ];

View file

@ -23,5 +23,6 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/intel/isa-l";
maintainers = with maintainers; [ jbedo ];
platforms = platforms.all;
broken = stdenv.isDarwin && stdenv.isAarch64; # does not build on M1 mac (asm/hwcap.h file not found) maybe needs gcc not clang?
};
}

View file

@ -1,35 +0,0 @@
{ lib, stdenv, fetchFromGitHub, cmake, libX11, libuuid, xz, vtk_7, Cocoa }:
stdenv.mkDerivation rec {
pname = "itk";
version = "4.13.3";
src = fetchFromGitHub {
owner = "InsightSoftwareConsortium";
repo = "ITK";
rev = "v${version}";
sha256 = "067vkh39jxcvyvn69qjh4vi3wa7vdvm9m6qsg3jmnmm7gzw0kjlm";
};
cmakeFlags = [
"-DBUILD_TESTING=OFF"
"-DBUILD_EXAMPLES=OFF"
"-DBUILD_SHARED_LIBS=ON"
"-DModule_ITKMINC=ON"
"-DModule_ITKIOMINC=ON"
"-DModule_ITKIOTransformMINC=ON"
"-DModule_ITKVtkGlue=ON"
"-DModule_ITKReview=ON"
];
nativeBuildInputs = [ cmake xz ];
buildInputs = [ libX11 libuuid vtk_7 ] ++ lib.optionals stdenv.isDarwin [ Cocoa ];
meta = {
description = "Insight Segmentation and Registration Toolkit";
homepage = "https://www.itk.org/";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [viric];
platforms = with lib.platforms; linux ++ darwin;
};
}

View file

@ -0,0 +1,5 @@
import ./generic.nix rec {
version = "5.2.1";
rev = "v${version}";
sourceSha256 = "sha256-KaVe9FMGm4ZVMpwAT12fA67T0qZS3ZueiI8z85+xSwE=";
}

View file

@ -1,9 +1,11 @@
{ version, rev, sourceSha256 }:
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper
, pkg-config, libX11, libuuid, xz, vtk, Cocoa }:
stdenv.mkDerivation rec {
pname = "itk";
version = "5.2.1";
inherit version;
itkGenericLabelInterpolatorSrc = fetchFromGitHub {
owner = "InsightSoftwareConsortium";
@ -22,8 +24,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "InsightSoftwareConsortium";
repo = "ITK";
rev = "v${version}";
sha256 = "sha256-KaVe9FMGm4ZVMpwAT12fA67T0qZS3ZueiI8z85+xSwE=";
inherit rev;
sha256 = sourceSha256;
};
postPatch = ''

View file

@ -0,0 +1,5 @@
import ./generic.nix {
version = "unstable-2022-07-02";
rev = "5e7aea957c82b67d4364b2b88999805616e3b01d";
sourceSha256 = "sha256-tjkoaHCuVdvgE6X+7Kb8mt9oxINWs4R0xD9cxdEeYKk=";
}

View file

@ -7,13 +7,13 @@
stdenv.mkDerivation rec {
pname = "ngtcp2";
version = "0.8.0";
version = "0.8.1";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ehOIWUGSPyHhNitkkA8voVciuEsCoRWv1s3MVMmOT0c=";
sha256 = "sha256-Sn03nY80UmL5oeoK6ScPye1oSUmEKxgoz2VLHcvor3U=";
};
outputs = [ "out" "dev" "doc" ];

View file

@ -73,16 +73,6 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true;
# disable stackprotector on aarch64-darwin for now
# https://github.com/NixOS/nixpkgs/issues/127608
#
# build error:
#
# /private/tmp/nix-build-openmpi-4.1.1.drv-0/ccg7QqR8.s:13:15: error: index must be an integer in range [-256, 255].
# ldr x2, [x2, ___stack_chk_guard];momd
#
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ];
postInstall = ''
rm -f $out/lib/*.la
'';

View file

@ -1,22 +0,0 @@
import ./generic.nix {
majorVersion = "7.1";
minorVersion = "1";
sourceSha256 = "0nm7xwwj7rnsxjdv2ssviys8nhci4n9iiiqm2y14s520hl2dsp1d";
patchesToFetch = [
{
url = "https://gitlab.kitware.com/vtk/vtk/-/commit/706f1b397df09a27ab8981ab9464547028d0c322.diff";
sha256 = "1q3pi5h40g05pzpbqp75xlgzvbfvyw8raza51svmi7d8dlslqybx";
}
{
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sci-libs/vtk/files/vtk-8.2.0-gcc-10.patch?id=c4256f68d3589570443075eccbbafacf661f785f";
sha256 = "sha256:0bpwrdfmi15grsg4jy7bzj2z6511a0c160cmw5lsi65aabyh7cl5";
}
# Add missing include required with recent Qt.
{
url = "https://gitlab.kitware.com/vtk/vtk/-/commit/797f28697d5ba50c1fa2bc5596af626a3c277826.diff";
sha256 = "BFjoKws1hVD3Ly9RS4lGN62J6RTyI1E8ATHrZdzg7ds=";
}
];
}

View file

@ -96,6 +96,6 @@ in stdenv.mkDerivation rec {
maintainers = with maintainers; [ knedlsepp tfmoraes lheckemann ];
platforms = with platforms; unix;
# /nix/store/xxxxxxx-apple-framework-Security/Library/Frameworks/Security.framework/Headers/Authorization.h:192:7: error: variably modified 'bytes' at file scope
broken = stdenv.isDarwin && (lib.versions.major majorVersion == "7" || lib.versions.major majorVersion == "8");
broken = stdenv.isDarwin && (lib.versions.major majorVersion == "8");
};
}

View file

@ -125,7 +125,7 @@ buildLuarocksPackage {
pname = "bit32";
version = "5.3.0-1";
knownRockspec = (fetchurl {
url = "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/bit32-5.3.0-1.rockspec";
url = "mirror://luarocks/bit32-5.3.0-1.rockspec";
sha256 = "1d6xdihpksrj5a3yvsvnmf3vfk15hj6f8n1rrs65m7adh87hc0yd";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
@ -153,26 +153,34 @@ buildLuarocksPackage {
}) {};
busted = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua, lua_cliargs, luafilesystem, luasystem, dkjson, say, luassert, lua-term, penlight, mediator_lua
, fetchgit, luasystem, lua-term, luassert, mediator_lua, say, dkjson, penlight, luafilesystem, lua, lua_cliargs
}:
buildLuarocksPackage {
pname = "busted";
version = "2.0.0-1";
version = "2.1.1-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/busted-2.0.0-1.rockspec";
sha256 = "0cbw95bjxl667n9apcgng2kr5hq6bc7gp3vryw4dzixmfabxkcbw";
url = "mirror://luarocks/busted-2.1.1-1.rockspec";
sha256 = "0f9iz3pa2gmb2vccvygp6zdiji7l8bap0vlgqgrcg331qsrkf70h";
}).outPath;
src = fetchurl {
url = "https://github.com/Olivine-Labs/busted/archive/v2.0.0.tar.gz";
sha256 = "1ps7b3f4diawfj637mibznaw4x08gn567pyni0m2s50hrnw4v8zx";
};
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lunarmodules/busted.git",
"rev": "e3ed48759b625f2e37bf02ccc057b2b98108f108",
"date": "2022-08-24T17:34:58+03:00",
"path": "/nix/store/7g9rxkyhabgx0acwmzl4r4xfh193avpw-busted",
"sha256": "0nab0s5lhk0nhh58c4jspv5sj4g7839gb5q145hrlgbsxqncp8wy",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua lua_cliargs luafilesystem luasystem dkjson say luassert lua-term penlight mediator_lua ];
propagatedBuildInputs = [ luasystem lua-term luassert mediator_lua say dkjson penlight luafilesystem lua lua_cliargs ];
meta = {
homepage = "http://olivinelabs.com/busted/";
description = "Elegant Lua unit testing.";
homepage = "https://lunarmodules.github.io/busted/";
description = "Elegant Lua unit testing";
license.fullName = "MIT <http://opensource.org/licenses/MIT>";
};
}) {};
@ -246,7 +254,7 @@ buildLuarocksPackage {
}) {};
compat53 = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
, fetchzip, lua
}:
buildLuarocksPackage {
pname = "compat53";
@ -255,9 +263,9 @@ buildLuarocksPackage {
url = "mirror://luarocks/compat53-0.7-1.rockspec";
sha256 = "1r7a3q1cjrcmdycrv2ikgl83irjhxs53sa88v2fdpr9aaamlb101";
}).outPath;
src = fetchurl {
src = fetchzip {
url = "https://github.com/keplerproject/lua-compat-5.3/archive/v0.7.zip";
sha256 = "1x3wv1qx7b2zlf3fh4q9pmi2xxkcdm024g7bf11rpv0yacnhran3";
sha256 = "02a14nvn7aggg1yikj9h3dcf8aqjbxlws1bfvqbpfxv9d5phnrpz";
};
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.4");
@ -399,10 +407,10 @@ buildLuarocksPackage {
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/astoff/digestif",
"rev": "1fac471a153b99da7f858e63edfa19ec2afee791",
"date": "2022-03-13T17:25:22+01:00",
"path": "/nix/store/4fxlwjvv07gbdi094abl59h8j5ly4ghm-digestif",
"sha256": "1mlmn3v97il5jsl28hjjgvm0dix5r6rsrdzavq25pbv0c46b3zzf",
"rev": "95b13ba7ed33605406353b200920ece08868d5a8",
"date": "2022-07-03T13:41:35+02:00",
"path": "/nix/store/k8y6gk4pqri76657c2sy4j4bkyh30jz5-digestif",
"sha256": "12pksz1l84iml7ng6yhywf0fyy8lclmcn2jjkdrh994lb7q9ya99",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -427,7 +435,7 @@ buildLuarocksPackage {
pname = "dkjson";
version = "2.6-1";
knownRockspec = (fetchurl {
url = "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/dkjson-2.6-1.rockspec";
url = "mirror://luarocks/dkjson-2.6-1.rockspec";
sha256 = "1hhmgz2nixqg23shfnl0kq6wxdadx36z6hhsrz33g7idbm6rbwm1";
}).outPath;
src = fetchurl {
@ -446,7 +454,7 @@ buildLuarocksPackage {
}) {};
fifo = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
, fetchzip, lua
}:
buildLuarocksPackage {
pname = "fifo";
@ -455,9 +463,9 @@ buildLuarocksPackage {
url = "mirror://luarocks/fifo-0.2-0.rockspec";
sha256 = "0vr9apmai2cyra2n573nr3dyk929gzcs4nm1096jdxcixmvh2ymq";
}).outPath;
src = fetchurl {
src = fetchzip {
url = "https://github.com/daurnimator/fifo.lua/archive/0.2.zip";
sha256 = "1a028yyc1xlkaavij8rkz18dqf96risrj65xp0p72y2mhsrckdp1";
sha256 = "1800k7h5hxsvm05bjdr65djjml678lwb0661cll78z1ys2037nzn";
};
propagatedBuildInputs = [ lua ];
@ -470,7 +478,7 @@ buildLuarocksPackage {
}) {};
fluent = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, cldr, luaepnf, penlight
, fetchgit, luaepnf, cldr, lua, penlight
}:
buildLuarocksPackage {
pname = "fluent";
@ -493,7 +501,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua cldr luaepnf penlight ];
propagatedBuildInputs = [ luaepnf cldr lua penlight ];
meta = {
homepage = "https://github.com/alerque/fluent-lua";
@ -512,10 +520,10 @@ buildLuarocksPackage {
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lewis6991/gitsigns.nvim",
"rev": "27aeb2e715c32cbb99aa0b326b31739464b61644",
"date": "2022-05-26T12:55:53+01:00",
"path": "/nix/store/bfz0bk523dk4dciiknrzvp87yvnbgcb2-gitsigns.nvim",
"sha256": "04m1767cndrx46xsa6frf77xv64hmr6w21dk2wh4s0sqjvqqm1r6",
"rev": "d7e0bcbe45bd9d5d106a7b2e11dc15917d272c7a",
"date": "2022-09-01T14:06:41+01:00",
"path": "/nix/store/3i20afjhjknqk3wggbrk3kwcbnnjqqxd-gitsigns.nvim",
"sha256": "1h4gxyamynwygxpqfib2a7sd1xbi6sh8ixg85j6qiaqqpahr0a4k",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -534,22 +542,22 @@ buildLuarocksPackage {
}) {};
http = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua, compat53, bit32, cqueues, luaossl, basexx, lpeg, lpeg_patterns, binaryheap, fifo
, fetchzip, luaossl, cqueues, compat53, lpeg, fifo, binaryheap, lpeg_patterns, basexx, bit32, lua
}:
buildLuarocksPackage {
pname = "http";
version = "0.3-0";
knownRockspec = (fetchurl {
url = "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/http-0.3-0.rockspec";
url = "mirror://luarocks/http-0.3-0.rockspec";
sha256 = "0fn3irkf5nnmfc83alc40b316hs8l7zdq2xlaiaa65sjd8acfvia";
}).outPath;
src = fetchurl {
src = fetchzip {
url = "https://github.com/daurnimator/lua-http/archive/v0.3.zip";
sha256 = "13xyj8qx42mzn1z4lwwdfd7ha06a720q4b7d04ir6vvp2fwp3s4q";
sha256 = "1pqxxxifl2j1cik3kgayx43v6py5jp6r22myhvxfffysb3b84a2l";
};
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua compat53 bit32 cqueues luaossl basexx lpeg lpeg_patterns binaryheap fifo ];
propagatedBuildInputs = [ luaossl cqueues compat53 lpeg fifo binaryheap lpeg_patterns basexx bit32 lua ];
meta = {
homepage = "https://github.com/daurnimator/lua-http";
@ -618,7 +626,7 @@ buildLuarocksPackage {
}) {};
ldoc = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, penlight, markdown
, fetchgit, markdown, penlight
}:
buildLuarocksPackage {
pname = "ldoc";
@ -626,10 +634,10 @@ buildLuarocksPackage {
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/stevedonovan/LDoc.git",
"rev": "e97398356b27473e5ba0626427daaec54f407e22",
"date": "2022-01-17T13:53:47+03:00",
"path": "/nix/store/6s0dmcz2jgjhjhakr5miq8ffgkchd0wh-LDoc",
"sha256": "13k4vi12s37izsjqcnfcliwlizr1ic0vwb0zlxcsghi31k031him",
"rev": "71dd5edbda829cd87b312956f4eae1ff8133fb14",
"date": "2022-06-17T13:41:29+03:00",
"path": "/nix/store/ywgvf4a5bdh7b7jzx8xgibch0a9kr9d2-LDoc",
"sha256": "0wwr28fl46y84p78bxaw9wsb7b4x7hmjywfdx5d70axh0amnlyrv",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -637,7 +645,7 @@ buildLuarocksPackage {
}
'') ["date" "path"]) ;
propagatedBuildInputs = [ penlight markdown ];
propagatedBuildInputs = [ markdown penlight ];
meta = {
homepage = "https://github.com/lunarmodules/LDoc";
@ -653,7 +661,7 @@ buildLuarocksPackage {
pname = "lgi";
version = "0.9.2-1";
knownRockspec = (fetchurl {
url = "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/lgi-0.9.2-1.rockspec";
url = "mirror://luarocks/lgi-0.9.2-1.rockspec";
sha256 = "1gqi07m4bs7xibsy4vx8qgyp3yb1wnh0gdq1cpwqzv35y6hn5ds3";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
@ -839,7 +847,7 @@ buildLuarocksPackage {
}) {};
lpeg_patterns = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua, lpeg
, fetchzip, lpeg, lua
}:
buildLuarocksPackage {
pname = "lpeg_patterns";
@ -848,12 +856,12 @@ buildLuarocksPackage {
url = "mirror://luarocks/lpeg_patterns-0.5-0.rockspec";
sha256 = "1vzl3ryryc624mchclzsfl3hsrprb9q214zbi1xsjcc4ckq5qfh7";
}).outPath;
src = fetchurl {
src = fetchzip {
url = "https://github.com/daurnimator/lpeg_patterns/archive/v0.5.zip";
sha256 = "17jizbyalzdg009p3x2260bln65xf8xhv9npr0kr93kv986j463b";
sha256 = "1s3c179a64r45ffkawv9dnxw4mzwkzj00nr9z2gs5haajgpjivw6";
};
propagatedBuildInputs = [ lua lpeg ];
propagatedBuildInputs = [ lpeg lua ];
meta = {
homepage = "https://github.com/daurnimator/lpeg_patterns/archive/v0.5.zip";
@ -1104,7 +1112,7 @@ buildLuarocksPackage {
}) {};
lua-lsp = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, dkjson, lpeglabel, inspect
, fetchgit, dkjson, inspect, lua, lpeglabel
}:
buildLuarocksPackage {
pname = "lua-lsp";
@ -1127,7 +1135,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.4");
propagatedBuildInputs = [ lua dkjson lpeglabel inspect ];
propagatedBuildInputs = [ dkjson inspect lua lpeglabel ];
meta = {
homepage = "https://github.com/Alloyed/lua-lsp";
@ -1229,7 +1237,7 @@ buildLuarocksPackage {
}) {};
lua-resty-jwt = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, lua-resty-openssl
, fetchgit, lua-resty-openssl, lua
}:
buildLuarocksPackage {
pname = "lua-resty-jwt";
@ -1252,7 +1260,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua lua-resty-openssl ];
propagatedBuildInputs = [ lua-resty-openssl lua ];
meta = {
homepage = "https://github.com/cdbattags/lua-resty-jwt";
@ -1262,7 +1270,7 @@ buildLuarocksPackage {
}) {};
lua-resty-openidc = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, lua-resty-http, lua-resty-session, lua-resty-jwt
, fetchgit, lua-resty-session, lua-resty-jwt, lua-resty-http, lua
}:
buildLuarocksPackage {
pname = "lua-resty-openidc";
@ -1285,7 +1293,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua lua-resty-http lua-resty-session lua-resty-jwt ];
propagatedBuildInputs = [ lua-resty-session lua-resty-jwt lua-resty-http lua ];
meta = {
homepage = "https://github.com/zmartzone/lua-resty-openidc";
@ -1298,17 +1306,17 @@ lua-resty-openssl = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit}:
buildLuarocksPackage {
pname = "lua-resty-openssl";
version = "0.8.8-1";
version = "0.8.10-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/lua-resty-openssl-0.8.8-1.rockspec";
sha256 = "17arjjhrxs3sas6d65ffh8nmvb220vrhwiwac3qam42im7zc8544";
url = "mirror://luarocks/lua-resty-openssl-0.8.10-1.rockspec";
sha256 = "0rwqc8yy9jk419vyil3c1dc2cmlsy1yf2f8b85i1xvwd8safvc8g";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/fffonion/lua-resty-openssl.git",
"rev": "7aad15a46bf9f5b81809be53f86ebbdb20ee2e8d",
"date": "2022-04-14T19:05:18+08:00",
"path": "/nix/store/3a8qz63k5xmkx44djm3prwhmig8wmjnf-lua-resty-openssl",
"sha256": "07h1sbfp9l04hr8h6zfgbhs9ray26gr3pa149733wzbdxfkl3bcz",
"rev": "c569d6c2ed4512f2228b61a52c9bb1949dc55f7c",
"date": "2022-06-24T12:22:19+08:00",
"path": "/nix/store/kbpwc7yhba4gqp6lkmdphkvkvhc1m4h6-lua-resty-openssl",
"sha256": "08cw03kihqa2j23p29dxli84zafpdxnx5a4zm625dqzlqnq86ajc",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -1564,21 +1572,21 @@ buildLuarocksPackage {
}) {};
luacheck = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, argparse, luafilesystem
, fetchgit, argparse, luafilesystem, lua
}:
buildLuarocksPackage {
pname = "luacheck";
version = "0.26.1-1";
version = "1.0.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/luacheck-0.26.1-1.rockspec";
sha256 = "11r5g6xi1s2d7cpmz2fysfgi78wpszy58rxfkwikqpi6kyc8qmf5";
url = "mirror://luarocks/luacheck-1.0.0-1.rockspec";
sha256 = "0q5kqix5n016piqhasp4h22srz1lzp96cjls4fgsbirjn87gsnxv";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lunarmodules/luacheck.git",
"rev": "2445a9dd3859655646bd6eb848459f2b46b4a3e3",
"date": "2022-04-23T17:22:03+03:00",
"path": "/nix/store/7a8qrmy41bnn1wgs93b5gi48k30v5bfj-luacheck",
"sha256": "0zrcni7p0bpqmb383608kmfyxwfxs9qa42g3sb4lhvzg2zggri5q",
"rev": "4d2979930245415e556a7c9f47b63ea038afcfee",
"date": "2022-08-24T12:50:43+03:00",
"path": "/nix/store/kfqdn4v9nzqqdw02fri10ic7v61r99n7-luacheck",
"sha256": "1dkqcaf0yrbcwbjiqbpdksj39sj8rbkd8432q568dgq2z5y9khcf",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -1587,7 +1595,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua argparse luafilesystem ];
propagatedBuildInputs = [ argparse luafilesystem lua ];
meta = {
homepage = "https://github.com/lunarmodules/luacheck";
@ -1663,7 +1671,7 @@ buildLuarocksPackage {
}) {};
luadbi-mysql = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, luadbi
, fetchgit, luadbi, lua
}:
buildLuarocksPackage {
pname = "luadbi-mysql";
@ -1686,7 +1694,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.4");
propagatedBuildInputs = [ lua luadbi ];
propagatedBuildInputs = [ luadbi lua ];
meta = {
homepage = "https://github.com/mwild1/luadbi";
@ -1729,7 +1737,7 @@ buildLuarocksPackage {
}) {};
luadbi-sqlite3 = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, luadbi
, fetchgit, luadbi, lua
}:
buildLuarocksPackage {
pname = "luadbi-sqlite3";
@ -1752,7 +1760,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.4");
propagatedBuildInputs = [ lua luadbi ];
propagatedBuildInputs = [ luadbi lua ];
meta = {
homepage = "https://github.com/mwild1/luadbi";
@ -1801,7 +1809,7 @@ buildLuarocksPackage {
pname = "luaevent";
version = "0.4.6-1";
knownRockspec = (fetchurl {
url = "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luaevent-0.4.6-1.rockspec";
url = "mirror://luarocks/luaevent-0.4.6-1.rockspec";
sha256 = "03zixadhx4a7nh67n0sm6sy97c8i9va1a78hibhrl7cfbqc2zc7f";
}).outPath;
src = fetchurl {
@ -1831,10 +1839,10 @@ buildLuarocksPackage {
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lunarmodules/luaexpat.git",
"rev": "7d99eec9685087e6b3a57a09d672591c2aa0f4f6",
"date": "2022-04-01T17:08:05+02:00",
"path": "/nix/store/b6jyh79ggjdqgizk9amzh74lq4lwm3nm-luaexpat",
"sha256": "0yia3xpf6pwmy10yg2dnyfg3v774jay24qfyvm9pj21h2ad7ckm1",
"rev": "10b10ca30536ee5df8c814dd18991148984efe24",
"date": "2022-08-29T13:45:12+02:00",
"path": "/nix/store/prmd5hiippdd32qa0xicbf9rw8k39md7-luaexpat",
"sha256": "0rzwrmjy2kbkvhgmprnlqmkl6kqvxqlb5kh9ww3zff0xv7xf03vb",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -1953,18 +1961,18 @@ buildLuarocksPackage {
}) {};
luaossl = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
, fetchzip, lua
}:
buildLuarocksPackage {
pname = "luaossl";
version = "20200709-0";
version = "20220711-0";
knownRockspec = (fetchurl {
url = "mirror://luarocks/luaossl-20200709-0.rockspec";
sha256 = "0izxxrzc49q4jancza43b2y4hfvasflpcag771nrhapk1n8k45f3";
url = "mirror://luarocks/luaossl-20220711-0.rockspec";
sha256 = "0b68kvfz587ilmb5c1p7920kysg9q4m4fl4cz4d93jl3270mzh8y";
}).outPath;
src = fetchurl {
url = "https://github.com/wahern/luaossl/archive/rel-20200709.zip";
sha256 = "07j1rqqypjb24x11x6v6qpwf12g0ib23qwg47sw3c2yqkbq744j4";
src = fetchzip {
url = "https://github.com/wahern/luaossl/archive/rel-20220711.zip";
sha256 = "1a9pgmc6fbhgh1m9ksz9fq057yzz46npqgakcsy9vngg47xacfdb";
};
propagatedBuildInputs = [ lua ];
@ -1977,7 +1985,7 @@ buildLuarocksPackage {
}) {};
luaposix = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, bit32, lua
, fetchzip, bit32, lua
}:
buildLuarocksPackage {
pname = "luaposix";
@ -1986,9 +1994,9 @@ buildLuarocksPackage {
url = "mirror://luarocks/luaposix-34.1.1-1.rockspec";
sha256 = "0hx6my54axjcb3bklr991wji374qq6mwa3ily6dvb72vi2534nwz";
}).outPath;
src = fetchurl {
src = fetchzip {
url = "http://github.com/luaposix/luaposix/archive/v34.1.1.zip";
sha256 = "1xqx764ji054jphxdhkynsmwzqzkfgxqfizxkf70za6qfrvnl3yh";
sha256 = "0863r8c69yx92lalj174qdhavqmcs2cdimjim6k55qj9yn78v9zl";
};
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.4");
@ -2028,21 +2036,21 @@ buildLuarocksPackage {
}) {};
luasec = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, luasocket
, fetchgit, luasocket, lua
}:
buildLuarocksPackage {
pname = "luasec";
version = "1.1.0-1";
version = "1.2.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/luasec-1.1.0-1.rockspec";
sha256 = "1j080wx40cfxfmb42w6jf06yp2wqfnlf281lda6i7lwh4rh2800m";
url = "mirror://luarocks/luasec-1.2.0-1.rockspec";
sha256 = "0zavdkwd701j8zqyzrpn1n5xd242vziq2l79amjdn5mcw81nrsdf";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/brunoos/luasec",
"rev": "df27c62f4cea33cb3525fed2a4b280997ed11aad",
"date": "2022-04-13T10:46:36-03:00",
"path": "/nix/store/h9bxbfm36ab2z314lpny78jympq9cxli-luasec",
"sha256": "04zch1ims50phgzqnbpxdfnxyrr9kpb8wi5bm9hhsizrzsx637is",
"rev": "d9215ee00f6694a228daad50ee85827a4cd13583",
"date": "2022-07-30T08:42:53-03:00",
"path": "/nix/store/77m3g768a230h77nxiw23ay73aryq1zh-luasec",
"sha256": "1rz2lhf243lrsjsyjwxhijhqr88l8l8sndzzv9w4x1j0zpa9sblb",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -2051,7 +2059,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua luasocket ];
propagatedBuildInputs = [ luasocket lua ];
meta = {
homepage = "https://github.com/brunoos/luasec/wiki";
@ -2066,17 +2074,17 @@ luasocket = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
}:
buildLuarocksPackage {
pname = "luasocket";
version = "3.0.0-1";
version = "3.1.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/luasocket-3.0.0-1.rockspec";
sha256 = "00j6jss7ifrqsylh1k9254i715z17j99hhawhlkmha1y6wn4glam";
url = "mirror://luarocks/luasocket-3.1.0-1.rockspec";
sha256 = "0wg9735cyz2gj7r9za8yi83w765g0f4pahnny7h0pdpx58pgfx4r";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lunarmodules/luasocket.git",
"rev": "88c8a85cb6528232288ec590910b7a966aace52b",
"date": "2022-03-25T11:05:48+03:00",
"path": "/nix/store/vn80kf268mjilsnm7850ag4zhan5na2c-luasocket",
"sha256": "0263gmxdpb2snv9yrwqsg3q641a9gm6migqsmi871hrhxaq0l9c1",
"rev": "95b7efa9da506ef968c1347edf3fc56370f0deed",
"date": "2022-07-27T10:07:00+03:00",
"path": "/nix/store/r5pqxqjkdwl80nmjkv400mbls7cfymjc-luasocket",
"sha256": "13hyf9cvny0kxwyg08929kkl31w74j66fj6zg1myyjr9nh5b795h",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -2106,10 +2114,10 @@ buildLuarocksPackage {
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/keplerproject/luasql.git",
"rev": "fb70ea47433a66f9b72811cd046dd7d7418a0e89",
"date": "2022-05-29T22:25:54-03:00",
"path": "/nix/store/zkir0i3j5jxb704bi5cnn2i51niabl7c-luasql",
"sha256": "1gnp1892v0g5kzsfrg3l3ykhq81nfv11mhb0djhgrjqx7zaxi24l",
"rev": "b7da7097d91b3233156aba2e7d0c6e5590766884",
"date": "2022-07-27T13:39:06-03:00",
"path": "/nix/store/rb4i0qxm8yy552hhmxdh65sf463qn02f-luasql",
"sha256": "046zv23kk2riyiw1vngbwn2a4rkg9wm3ra2b1vmmhkr9idlncq94",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -2129,26 +2137,34 @@ buildLuarocksPackage {
}) {};
luassert = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua, say
, fetchgit, say, lua
}:
buildLuarocksPackage {
pname = "luassert";
version = "1.8.0-0";
version = "1.9.0-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/luassert-1.8.0-0.rockspec";
sha256 = "1194y81nlkq4qmrrgl7z82i6vgvhqvp1p673kq0arjix8mv3zyz1";
url = "mirror://luarocks/luassert-1.9.0-1.rockspec";
sha256 = "1bkzr03190p33lprgy51nl84aq082fyc3f7s3wkk7zlay4byycxd";
}).outPath;
src = fetchurl {
url = "https://github.com/Olivine-Labs/luassert/archive/v1.8.0.tar.gz";
sha256 = "0xlwlb32215524bg33svp1ci8mdvh9wykchl8dkhihpxcd526mar";
};
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lunarmodules/luassert.git",
"rev": "8d8dc8a54cc468048a128a867f6449a6c3fdd11a",
"date": "2022-08-24T00:00:45+03:00",
"path": "/nix/store/vfcl25wxps5kvh5prjkkjlj1ga3kgw63-luassert",
"sha256": "0wlp6qdm9dkwzs8lvnj7zvmid4y12v717ywlhxn2brkbjpvl2dwf",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua say ];
propagatedBuildInputs = [ say lua ];
meta = {
homepage = "http://olivinelabs.com/busted/";
description = "Lua Assertions Extension";
homepage = "https://lunarmodules.github.io/busted/";
description = "Lua assertions extension";
license.fullName = "MIT <http://opensource.org/licenses/MIT>";
};
}) {};
@ -2204,7 +2220,7 @@ buildLuarocksPackage {
}) {};
luaunit = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
, fetchzip, lua
}:
buildLuarocksPackage {
pname = "luaunit";
@ -2213,13 +2229,13 @@ buildLuarocksPackage {
url = "mirror://luarocks/luaunit-3.4-1.rockspec";
sha256 = "111435fa8p2819vcvg76qmknj0wqk01gy9d1nh55c36616xnj54n";
}).outPath;
src = fetchurl {
src = fetchzip {
url = "https://github.com/bluebird75/luaunit/releases/download/LUAUNIT_V3_4/rock-luaunit-3.4.zip";
sha256 = "1v8nkiwz2nr242h5cl4af6vmn5gxmn94skps1qhb55ak60j20nvr";
sha256 = "0qf07y3229lq3qq1mfkv83gzbc7dgyr67hysqjb5bbk333flv56r";
};
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.5");
propagatedBuildInputs = [ lua lua ];
propagatedBuildInputs = [ lua ];
meta = {
homepage = "http://github.com/bluebird75/luaunit";
@ -2314,8 +2330,8 @@ buildLuarocksPackage {
}) {};
luv = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, cmake, fetchurl, lua
}:
, fetchurl, lua
, cmake}:
buildLuarocksPackage {
pname = "luv";
version = "1.43.0-0";
@ -2340,7 +2356,7 @@ buildLuarocksPackage {
}) {};
lyaml = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
, fetchzip, lua
}:
buildLuarocksPackage {
pname = "lyaml";
@ -2349,9 +2365,9 @@ buildLuarocksPackage {
url = "mirror://luarocks/lyaml-6.2.7-1.rockspec";
sha256 = "0m5bnzg24nyk35gcn4rydgzk0ysk1f6rslxwxd0w3drl1bg64zja";
}).outPath;
src = fetchurl {
src = fetchzip {
url = "http://github.com/gvvaughan/lyaml/archive/v6.2.7.zip";
sha256 = "165mr3krf8g8070j4ax9z0j2plfbdwb8x2zk2hydpqaqa0kcdb0c";
sha256 = "1qfvk610xgglyv9n2dp0cnh21f20q2zkl941qsv9qcbnm2f03vna";
};
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.5");
@ -2424,7 +2440,7 @@ buildLuarocksPackage {
}) {};
moonscript = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, lpeg, argparse, luafilesystem
, fetchgit, lua, luafilesystem, argparse, lpeg
}:
buildLuarocksPackage {
pname = "moonscript";
@ -2444,7 +2460,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua lpeg argparse luafilesystem ];
propagatedBuildInputs = [ lua luafilesystem argparse lpeg ];
meta = {
homepage = "http://moonscript.org";
@ -2477,19 +2493,19 @@ buildLuarocksPackage {
}) {};
nvim-client = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua, mpack, luv, coxpcall
, fetchurl, luv, mpack, lua, coxpcall
}:
buildLuarocksPackage {
pname = "nvim-client";
version = "0.2.3-1";
version = "0.2.4-1";
src = fetchurl {
url = "https://github.com/neovim/lua-client/archive/0.2.3-1.tar.gz";
sha256 = "0w6rc7b9gmz17x4l1q2nv275bkzwvg3pfg5mzsd4wymy2iwrqphf";
url = "https://github.com/neovim/lua-client/archive/0.2.4-1.tar.gz";
sha256 = "0sk1lmj0r7pyj9k3p6n0wqjbd95br44ansz0ck3amp6ql8f9kprf";
};
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua mpack luv coxpcall ];
propagatedBuildInputs = [ luv mpack lua coxpcall ];
meta = {
homepage = "https://github.com/neovim/lua-client";
@ -2500,17 +2516,17 @@ buildLuarocksPackage {
penlight = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, lua, luafilesystem
}:
, busted}:
buildLuarocksPackage {
pname = "penlight";
version = "dev-1";
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lunarmodules/penlight.git",
"rev": "a7b9f888cd72dfa875e3b7cc3b88be632f567d79",
"date": "2022-03-24T13:21:29+01:00",
"path": "/nix/store/vk0z1hx9rwl45g3nn0f6c4m6mx8d9p65-penlight",
"sha256": "0w5w13gdbbnli23zmixy20jq6z3j5p6z3br3abpl5qh36b01i5p4",
"rev": "d5958e242b95984a278c39c63fadc5ef1258978b",
"date": "2022-08-14T10:06:20+02:00",
"path": "/nix/store/91nha43c2gdjyn8146fn9zfghlgvvdzz-penlight",
"sha256": "0bvc1a3g41mx8wlaq4ig3cl568rsysyggsr00hf7bi0ygf529sny",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -2520,6 +2536,7 @@ buildLuarocksPackage {
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua luafilesystem ];
checkInputs = [ busted ];
meta = {
homepage = "https://lunarmodules.github.io/penlight";
@ -2538,10 +2555,10 @@ buildLuarocksPackage {
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/nvim-lua/plenary.nvim",
"rev": "54b2e3d58f567983feabaeb9408eccf6b7f32206",
"date": "2022-06-01T15:32:39+02:00",
"path": "/nix/store/j29rrzs7dsm6720rsjmzk7r1a27zv7h1-plenary.nvim",
"sha256": "1ldjdc7yq4awlllr9dcv8fnkcwgdpvj0py5mhvx3v1yjniwrkn2i",
"rev": "4b66054e75356ac0b909bbfee9c682e703f535c2",
"date": "2022-09-03T11:21:04+02:00",
"path": "/nix/store/gaphh0qlf40ryk2000plscvzcbzg0kz5-plenary.nvim",
"sha256": "1yl5m7is35bk30swr5m1pcl2i0wf8gjcnas6bpahlxqa4x0yr1x8",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -2560,8 +2577,8 @@ buildLuarocksPackage {
}) {};
rapidjson = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, cmake, fetchgit, lua
}:
, fetchgit, lua
, cmake}:
buildLuarocksPackage {
pname = "rapidjson";
version = "0.7.1-1";
@ -2591,7 +2608,7 @@ buildLuarocksPackage {
}) {};
readline = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua, luaposix
, fetchurl, luaposix, lua
}:
buildLuarocksPackage {
pname = "readline";
@ -2606,7 +2623,7 @@ buildLuarocksPackage {
};
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.5");
propagatedBuildInputs = [ lua luaposix ];
propagatedBuildInputs = [ luaposix lua ];
meta = {
homepage = "http://pjb.com.au/comp/lua/readline.html";
@ -2616,24 +2633,33 @@ buildLuarocksPackage {
}) {};
say = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
}:
, fetchgit, lua
, busted}:
buildLuarocksPackage {
pname = "say";
version = "1.3-1";
version = "scm-1";
src = fetchurl {
url = "https://github.com/Olivine-Labs/say/archive/v1.3-1.tar.gz";
sha256 = "1jh76mxq9dcmv7kps2spwcc6895jmj2sf04i4y9idaxlicvwvs13";
};
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lunarmodules/say.git",
"rev": "45a3057e68c52b34ab59ef167efeb2340e356661",
"date": "2022-08-27T11:00:01+03:00",
"path": "/nix/store/324ryi5hlaisnyp4wpd1hvzcfv508i4s-say",
"sha256": "178pdsswwnja2f106701xmdxsdijjl5smm28dhhdcmjyb4mn8cr2",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
"leaveDotGit": false
}
'') ["date" "path"]) ;
disabled = with lua; (luaOlder "5.1");
propagatedBuildInputs = [ lua ];
checkInputs = [ busted ];
meta = {
homepage = "http://olivinelabs.com/busted/";
description = "Lua String Hashing/Indexing Library";
license.fullName = "MIT <http://opensource.org/licenses/MIT>";
homepage = "https://lunarmodules.github.io/say";
description = "Lua string hashing/indexing library";
license.fullName = "MIT";
};
}) {};
@ -2666,13 +2692,14 @@ buildLuarocksPackage {
meta = {
homepage = "https://github.com/pkulchenko/serpent";
description = "Lua serializer and pretty printer";
maintainers = with lib.maintainers; [ lockejan ];
license.fullName = "MIT";
};
}) {};
sqlite = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, luv
}:
, plenary-nvim}:
buildLuarocksPackage {
pname = "sqlite";
version = "v1.2.2-0";
@ -2694,6 +2721,7 @@ buildLuarocksPackage {
'') ["date" "path"]) ;
propagatedBuildInputs = [ luv ];
checkInputs = [ plenary-nvim ];
meta = {
homepage = "https://github.com/tami5/sqlite.lua";
@ -2711,10 +2739,10 @@ buildLuarocksPackage {
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/lua-stdlib/_debug.git",
"rev": "eaaa493937974889007158fa8681835b312d2a35",
"date": "2022-01-02T17:12:19-08:00",
"path": "/nix/store/qrzwpcg9airmlnayfgxspy7p7pa8csyl-_debug",
"sha256": "0nik882xm0d243ah8v2z5przcny7pfbbj529yn4qyvvz67lsfydb",
"rev": "6ab5e78ef21ad9877e9733a178df4799b983e178",
"date": "2022-06-29T11:27:54-07:00",
"path": "/nix/store/c3p5jq6bawdmfnq1ayw6d7kwwc9sqmig-_debug",
"sha256": "1q0gvwwjclf4galz9c9h2xbzh799xswr9z9b7lncmwb5ky2jwpcy",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -2763,7 +2791,7 @@ buildLuarocksPackage {
}) {};
stdlib = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchurl, lua
, fetchzip, lua
}:
buildLuarocksPackage {
pname = "stdlib";
@ -2772,9 +2800,9 @@ buildLuarocksPackage {
url = "mirror://luarocks/stdlib-41.2.2-1.rockspec";
sha256 = "0rscb4cm8s8bb8fk8rknc269y7bjqpslspsaxgs91i8bvabja6f6";
}).outPath;
src = fetchurl {
src = fetchzip {
url = "http://github.com/lua-stdlib/lua-stdlib/archive/release-v41.2.2.zip";
sha256 = "0is8i8lk4qq4afnan0vj1bwr8brialyrva7cjy43alzgwdphwynx";
sha256 = "0ry6k0wh4vyar1z68s0qmqzkdkfn9lcznsl8av7x78qz6l16wfw4";
};
disabled = with lua; (luaOlder "5.1") || (luaAtLeast "5.5");
@ -2789,21 +2817,21 @@ buildLuarocksPackage {
}) {};
tl = callPackage({ buildLuarocksPackage, luaOlder, luaAtLeast
, fetchgit, compat53, argparse, luafilesystem
}:
, fetchgit, argparse, compat53, luafilesystem
, dkjson}:
buildLuarocksPackage {
pname = "tl";
version = "0.13.2-1";
version = "0.14.1-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/tl-0.13.2-1.rockspec";
sha256 = "0a9nr03q6w1689drd0r2y8m7qbyxm8n6bkgjplwkr6c6abvbis3f";
url = "mirror://luarocks/tl-0.14.1-1.rockspec";
sha256 = "09nm8vgn1j33bj6612h48jqv7vd72qm06f6rly0angkpcdzb2cd7";
}).outPath;
src = fetchgit ( removeAttrs (builtins.fromJSON ''{
"url": "https://github.com/teal-language/tl",
"rev": "473fef59f21e836e1337a0e3da3c759a1e3556bd",
"date": "2021-07-30T21:02:34-03:00",
"path": "/nix/store/29dm1abr2cc9zqs9n9lymg92gaxqh09g-tl",
"sha256": "1cj7ihw1kz1n1jkha6q0mq0qmlw1vi04i6pcbw3w1cdf2i4fcglh",
"rev": "2a0426ed42a3616981410bab0ef1faa55ab9795d",
"date": "2022-08-23T02:17:01-03:00",
"path": "/nix/store/50p7nazikq1n1nffl84lnh8l39nm18pq-tl",
"sha256": "04bbls8dc0jg7vbqwafn24gqna4swk3aa760i98hnrbmax39pzh2",
"fetchLFS": false,
"fetchSubmodules": true,
"deepClone": false,
@ -2811,7 +2839,8 @@ buildLuarocksPackage {
}
'') ["date" "path"]) ;
propagatedBuildInputs = [ compat53 argparse luafilesystem ];
propagatedBuildInputs = [ argparse compat53 luafilesystem ];
checkInputs = [ dkjson ];
meta = {
homepage = "https://github.com/teal-language/tl";

View file

@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "asysocks";
version = "0.2.0";
version = "0.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-1mrXgwWI1XGmN3J9HJBktHFowIEU+RPt9L6S4ylHTzw=";
sha256 = "sha256-j0UWCI6+x/CNjFSeXnXnqGtB5gQ6+SC6SJXPP2xlQVA=";
};
propagatedBuildInputs = [

View file

@ -4,6 +4,7 @@
, cython
, datamodeldict
, fetchFromGitHub
, fetchpatch
, matplotlib
, numericalunits
, numpy
@ -12,6 +13,7 @@
, potentials
, pymatgen
, pytest
, pytestCheckHook
, pythonOlder
, pythonAtLeast
, requests
@ -21,19 +23,44 @@
}:
buildPythonPackage rec {
version = "1.4.4";
version = "1.4.5";
pname = "atomman";
format = "setuptools";
disabled = pythonOlder "3.6" || pythonAtLeast "3.10";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "usnistgov";
repo = "atomman";
rev = "v${version}";
hash = "sha256-iLAB0KMtrTCyGpx+81QfHDPVDhq8OA6CDL/ipVRpyo0=";
hash = "sha256-wXz/uHjXKHVKJu/HoFF2mADSBLp6UGF9ivOp2ZOz/Ys=";
};
patches = [
# Fix several tests that are failing on master.
# https://github.com/usnistgov/atomman/pull/9
(fetchpatch {
name = "fix-tests-1.patch";
url = "https://github.com/usnistgov/atomman/commit/d255977a5e0ce4584e2c886f6c55ccb9f5932731.patch";
hash = "sha256-lBFOgcozY85JfQVsVjd51Jf9mrokwQuYdxa8l7VzkqU=";
})
(fetchpatch {
name = "fix-tests-2.patch";
url = "https://github.com/usnistgov/atomman/commit/de4177f28ad7c48d482cb606f323128e2fcb86aa.patch";
hash = "sha256-+YpwdKCT/OTue3b2GOk9Jagg26r1PTTV2Zg+GGBd8sM=";
})
(fetchpatch {
name = "fix-tests-3.patch";
url = "https://github.com/usnistgov/atomman/commit/10b168493ee883348699f1e42680423cec84bed5.patch";
hash = "sha256-b4f3POjiceq3xApfjnKAs9dEf1trCiTIyu7hMPL0ZTw=";
})
(fetchpatch {
name = "fix-tests-4.patch";
url = "https://github.com/usnistgov/atomman/commit/057d24c70427bab3c7c530251ceb5f4e27eb5c56.patch";
hash = "sha256-FTg/GNRZ5xigGW8SpUTIw2/GEzOxwb1rsv2wGebmZOk=";
})
];
propagatedBuildInputs = [
cython
datamodeldict
@ -48,22 +75,25 @@ buildPythonPackage rec {
xmltodict
];
preCheck = ''
# By default, pytestCheckHook imports atomman from the current directory
# instead of from where `pip` installs it and fails due to missing Cython
# modules. Fix this by removing atomman from the current directory.
#
rm -r atomman
'';
checkInputs = [
ase
phonopy
pymatgen
pytest
pytestCheckHook
];
checkPhase = ''
# pytestCheckHook doesn't work
pytest tests -k "not test_rootdir and not test_version \
and not test_atomic_mass and not imageflags \
and not test_build_unit and not test_set_and_get_in_units \
and not test_set_literal and not test_scalar_model " \
--ignore tests/plot/test_interpolate.py \
--ignore tests/tools/test_vect_angle.py
'';
disabledTests = [
"test_unique_shifts_prototype" # needs network access to download database files
];
pythonImportsCheck = [
"atomman"

View file

@ -40,24 +40,17 @@
buildPythonPackage rec {
pname = "Django";
version = "4.1";
version = "4.1.1";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-Ay+Kb8fPBczRIU5KLiHfzWojudV1xlc8rMjGeCjb5kI=";
hash = "sha256-oVP/1RQ78mqHe/ri9Oxzbr2JJKRmAMoImtlrVKHU4o4=";
};
patches = [
(fetchpatch {
# Fix regression in sqlite backend introduced in 4.1.
# https://github.com/django/django/pull/15925
url = "https://github.com/django/django/commit/c0beff21239e70cbdcc9597e5be09e505bb8f76c.patch";
hash = "sha256-QE7QnfYAK74wvK8gDJ15FtQ+BCIWRQKAVvM7v1FzwlE=";
excludes = [ "docs/releases/4.1.1.txt" ];
})
(substituteAll {
src = ./django_4_set_zoneinfo_dir.patch;
zoneinfo = tzdata + "/share/zoneinfo";

View file

@ -13,14 +13,14 @@
buildPythonPackage rec {
pname = "gehomesdk";
version = "0.5.0";
version = "0.5.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-XxJEiWiblnvKCfcM8sNFEjV2gw7cc7A9P6H4JEAleRQ=";
sha256 = "sha256-EW26TzmD+F2IkzJkcoUdfYIJ3vkBYQhIFiEqnfDSmiw=";
};
propagatedBuildInputs = [

View file

@ -1,5 +1,4 @@
{ stdenv
, lib
{ lib
, buildPythonPackage
, fetchPypi
, hatchling
@ -14,33 +13,31 @@
, pytest-timeout
, pytest-tornasync
, ruamel-yaml
, strict-rfc3339
, importlib-metadata
}:
buildPythonPackage rec {
pname = "jupyterlab_server";
version = "2.15.0";
version = "2.15.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-qRxRXg55caj3w8mDS3SIV/faxQL5NgS/KDmHmR/Zh+8=";
sha256 = "sha256-MFMTlw4THFkM93u2uMp+mFkbwwQRHo0QO8kdIS6UeW8=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov jupyterlab_server --cov-report term-missing --cov-report term:skip-covered" ""
# translation tests try to install additional packages into read only paths
rm -r tests/translations/
'';
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [ requests jsonschema json5 babel jupyter_server ];
propagatedBuildInputs = [
requests
jsonschema
json5
babel
jupyter_server
] ++ lib.optional (pythonOlder "3.10") importlib-metadata;
checkInputs = [
openapi-core
@ -50,19 +47,25 @@ buildPythonPackage rec {
ruamel-yaml
];
postPatch = ''
# translation tests try to install additional packages into read only paths
rm -r tests/translations/
'';
preCheck = ''
export HOME=$(mktemp -d)
'';
pytestFlagsArray = [
# DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
# DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12.
# Use setuptools or check PEP 632 for potential alternatives.
"-W ignore::DeprecationWarning"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "JupyterLab Server";
description = "A set of server components for JupyterLab and JupyterLab like applications";
homepage = "https://jupyter.org";
license = licenses.bsdOriginal;
maintainers = [ maintainers.costrouc ];

View file

@ -1,21 +1,41 @@
{ lib, buildPythonPackage, fetchFromGitHub, python, pygments }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, python
, pygments
}:
buildPythonPackage rec {
pname = "markdown2";
version = "2.4.1";
version = "2.4.3";
# PyPI does not contain tests, so using GitHub instead.
src = fetchFromGitHub {
owner = "trentm";
repo = "python-markdown2";
rev = version;
sha256 = "0y7kh9jj8ys00qkfmmyqj63y21g7wn7yr715kj0j1nabs6xbp0y7";
sha256 = "sha256-zNZ7/dDZbPIwcxSLvf8u5oaAgHLrZ6kk4vXNPUuZs/4=";
};
patches = [
(fetchpatch {
name = "SNYK-PYTHON-MARKDOWN2-2606985-xss.patch"; # no CVE (yet?)
url = "https://github.com/trentm/python-markdown2/commit/5898fcc1090ef7cd7783fa1422cc0e53cbca9d1b.patch";
sha256 = "sha256-M6kKxjHVC3O0BvDeEF4swzfpFsDO/LU9IHvfjK4hznA=";
})
];
checkInputs = [ pygments ];
checkPhase = ''
${python.interpreter} ./test/test.py
runHook preCheck
pushd test
${python.interpreter} ./test.py -- -knownfailure
popd # test
runHook postCheck
'';
meta = with lib; {

View file

@ -58,7 +58,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Type annotations builder for boto3";
homepage = "https://vemel.github.io/mypy_boto3_builder/";
homepage = "https://github.com/youtype/mypy_boto3_builder";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};

View file

@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchPypi, sphinx }:
buildPythonPackage rec {
pname = "piccolo-theme";
version = "0.12.0";
src = fetchPypi {
pname = "piccolo_theme";
inherit version;
sha256 = "sha256-o6uaqAo/Nb28doByq40XakKJpA4o6/Z/PzMhmb058FE=";
};
propagatedBuildInputs = [
sphinx
];
pythonImportsCheck = [ "piccolo_theme" ];
meta = with lib; {
description = "Clean and modern Sphinx theme";
homepage = "https://piccolo-theme.readthedocs.io";
license = licenses.mit;
maintainers = with maintainers; [ loicreynier ];
platforms = platforms.unix;
};
}

View file

@ -31,8 +31,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "An advanced Python REPL";
homepage = "https://github.com/prompt-toolkit/ptpython";
license = licenses.bsd3;
maintainers = with maintainers; [ mlieberman85 ];
platforms = platforms.all;
};
}

View file

@ -0,0 +1,47 @@
{ fetchFromGitHub
, buildPythonPackage
, pillow
, numpy
, libdmtx
, lib
}:
buildPythonPackage rec {
pname = "pylibdmtx";
version = "0.1.10";
src = fetchFromGitHub {
owner = "NaturalHistoryMuseum";
repo = pname;
rev = "v${version}";
hash = "sha256-vNWzhO4V0mj4eItZ0Z5UG9RBCqprIcgMGNyIe1+mXWY=";
};
# Change:
# def load():
# """Loads the libdmtx shared library.
#
# To:
# def load():
# return cdll.LoadLibrary("/nix/store/.../lib/libdmtx.so")
# """Loads the libdmtx shared library.
postPatch = ''
sed -i '\#def load.*#a\ return cdll.LoadLibrary("${libdmtx}/lib/libdmtx.so")' \
pylibdmtx/dmtx_library.py
# Checks that the loader works in various scenarios, but we just
# forced it to only work one way.
rm pylibdmtx/tests/test_dmtx_library.py
'';
propagatedBuildInputs = [ pillow numpy ];
pythonImportsCheck = [ "pylibdmtx" ];
meta = with lib; {
description = "Read and write Data Matrix barcodes from Python 2 and 3 using the libdmtx library";
homepage = "https://github.com/NaturalHistoryMuseum/pylibdmtx/";
license = licenses.mit;
maintainers = with maintainers; [ grahamc ];
};
}

View file

@ -0,0 +1,96 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, writeText
, autograd
, cma
, cython
, deprecated
, dill
, matplotlib
, nbformat
, notebook
, numba
, numpy
, pandas
, scipy
}:
buildPythonPackage rec {
pname = "pymoo";
version = "0.6.0";
src = fetchFromGitHub {
owner = "anyoptimization";
repo = "pymoo";
rev = version;
sha256 = "sha256-dzKr+u84XmPShWXFjH7V9KzwJPGZz3msGOe1S7FlGTQ=";
};
pymoo_data = fetchFromGitHub {
owner = "anyoptimization";
repo = "pymoo-data";
rev = "33f61a78182ceb211b95381dd6d3edee0d2fc0f3";
sha256 = "sha256-iGWPepZw3kJzw5HKV09CvemVvkvFQ38GVP+BAryBSs0=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "cma==3.2.2" "cma" \
--replace "'alive-progress'," ""
substituteInPlace pymoo/util/display/display.py \
--replace "from pymoo.util.display.progress import ProgressBar" "" \
--replace "ProgressBar() if progress else None" \
"print('Missing alive_progress needed for progress=True!') if progress else None"
'';
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
autograd
cma
deprecated
dill
matplotlib
numpy
scipy
];
doCheck = true;
preCheck = ''
substituteInPlace pymoo/config.py \
--replace "https://raw.githubusercontent.com/anyoptimization/pymoo-data/main/" \
"file://$pymoo_data/"
'';
checkInputs = [
pytestCheckHook
nbformat
notebook
numba
];
# Select some lightweight tests
pytestFlagsArray = [
"-m 'not long'"
];
disabledTests = [
# ModuleNotFoundError: No module named 'pymoo.cython.non_dominated_sorting'
"test_fast_non_dominated_sorting"
"test_efficient_non_dominated_sort"
];
# Avoid crashing sandboxed build on macOS
MATPLOTLIBRC=writeText "" ''
backend: Agg
'';
pythonImportsCheck = [ "pymoo" ];
meta = with lib; {
description = "Multi-objective Optimization in Python";
homepage = "https://pymoo.org/";
license = licenses.asl20;
maintainers = with maintainers; [ veprbl ];
};
}

View file

@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "pynetgear";
version = "0.10.7";
version = "0.10.8";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -16,7 +16,7 @@ buildPythonPackage rec {
owner = "MatMaul";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-dYpYUeZClfRGrhd5Rw7MzBQkyGURQTeQVtCc51AqXb4=";
sha256 = "sha256-cffaXYoMBICfevoRnm3n0/qfD/Arz4TZeGihhIMmUcI=";
};
propagatedBuildInputs = [

View file

@ -9,7 +9,7 @@
buildPythonPackage rec {
pname = "r2pipe";
version = "1.7.1";
version = "1.7.2";
postPatch = let
r2lib = "${lib.getOutput "lib" radare2}/lib";
@ -27,7 +27,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "sha256-7Qa8Jl7vX/acMhGSqWfaqvN9emA05RSubpseAwRSpG4=";
sha256 = "sha256-XoYIZWlIN54O/8LHre8Ut+2neLER/g7bYBD9+xNCkAU=";
};
# Tiny sanity check to make sure r2pipe finds radare2 (since r2pipe doesn't

View file

@ -0,0 +1,61 @@
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, matplotlib
, python-snap7
, opencv4
}:
buildPythonPackage rec {
pname = "remi";
version = "2022.7.27";
src = fetchFromGitHub {
owner = "rawpython";
repo = pname;
rev = version;
hash = "sha256-VQn+Uzp6oGSit8ot0e8B0C2N41Q8+J+o91skyVN1gDA=";
};
preCheck = ''
# for some reason, REMI already deal with these using try blocks, but they fail
substituteInPlace test/test_widget.py \
--replace \
"from html_validator import " \
"from .html_validator import "
substituteInPlace test/test_examples_app.py \
--replace \
"from mock_server_and_request import " \
"from .mock_server_and_request import " \
--replace \
"from html_validator import " \
"from .html_validator import "
# Halves number of warnings
substituteInPlace test/test_*.py \
--replace \
"self.assertEquals(" \
"self.assertEqual("
'';
checkInputs = [
pytestCheckHook
python-snap7
opencv4
matplotlib
];
pythonImportsCheck = [
"remi"
"editor"
"editor.widgets"
];
meta = with lib; {
description = "Pythonic, lightweight and websocket-based webui library";
homepage = "https://github.com/rawpython/remi";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ pbsds ];
};
}

View file

@ -21,7 +21,7 @@
buildPythonPackage rec {
pname = "slack-sdk";
version = "3.18.1";
version = "3.18.2";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -30,7 +30,7 @@ buildPythonPackage rec {
owner = "slackapi";
repo = "python-slack-sdk";
rev = "refs/tags/v${version}";
sha256 = "sha256-pHIsYOY+/LlH9+kmp2ETEY1IE8izy5+R4tm0iY7NmQk=";
sha256 = "sha256-DBJyw+im7OyzOCUQ9xyth6Tv0kjXRz+R4YUMay1HF3Y=";
};
propagatedBuildInputs = [

View file

@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "tesla-wall-connector";
version = "1.0.1";
version = "1.0.2";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "einarhauks";
repo = pname;
rev = version;
hash = "sha256-JBtlGd9aHY8ikhpJ5v7ZcNu3BfLdBmOBZCMa6C0s6gE=";
hash = "sha256-GblKXWV9h37E3bxNsx17hEe0uDm8ahzJUx8wiE+Vc38=";
};
nativeBuildInputs = [
@ -40,11 +40,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'backoff = "^1.11.1"' 'backoff = "*"'
'';
pythonImportsCheck = [
"tesla_wall_connector"
];

View file

@ -26,6 +26,10 @@ buildGoModule rec {
./skip_test_requiring_network.patch
# Skip TestWorkspaceGit which requires .git and commits.
./skip_test_requiring_dotgit.patch
# Skips the invalid_upstream test as it is flakey. Based on upstream commit
# 27930caf2eb35c2592a77f59ed5afe4d9e2fb7ea.
# This patch may be removed on the next buf update.
./skip_test_invalid_upstream_flakey.patch
];
nativeBuildInputs = [ installShellFiles ];

View file

@ -0,0 +1,24 @@
diff --git a/private/bufpkg/bufstudioagent/bufstudioagent_test.go b/private/bufpkg/bufstudioagent/bufstudioagent_test.go
index 6e010937..9cacc082 100644
--- a/private/bufpkg/bufstudioagent/bufstudioagent_test.go
+++ b/private/bufpkg/bufstudioagent/bufstudioagent_test.go
@@ -186,6 +186,19 @@ func testPlainPostHandlerErrors(t *testing.T, upstreamServer *httptest.Server) {
})
t.Run("invalid_upstream", func(t *testing.T) {
+ // TODO: unskip this test. This is flaky because of two reasons:
+ //
+ // 1. When a connection is closed, the underlying HTTP client does not
+ // always knows it, since the http handler implementation in go has no way
+ // of changing the connection timeout. See:
+ // https://github.com/golang/go/issues/16100
+ //
+ // 2. The expected status code is `StatusBadGateway` since the issue
+ // happened client-side (a response never came back from the server). This
+ // is not deterministic in the business logic because we're based on the
+ // connect error code that's returned. See
+ // https://linear.app/bufbuild/issue/BSR-383/flaky-test-in-bufstudioagent-testgo
+ t.SkipNow()
listener, err := net.Listen("tcp", "127.0.0.1:")
require.NoError(t, err)
go func() {

View file

@ -1,25 +1,38 @@
{ buildGoModule, lib, fetchFromGitHub }:
{ buildGoModule
, clickhouse-backup
, fetchFromGitHub
, lib
, testers
}:
buildGoModule rec {
pname = "clickhouse-backup";
version = "1.6.0";
version = "2.0.0";
src = fetchFromGitHub {
owner = "AlexAkulov";
repo = pname;
rev = "v${version}";
sha256 = "sha256-wvF81bzNW1ps+iZ9HDmE91vciD8l8dO0HS5XGUDa+AA=";
sha256 = "sha256-PIn90tz/FnUr4MGKZfLcP0hmF3eqKGB+1gKwfgtk/70=";
};
vendorSha256 = "sha256-7pKaIhIqINy7A/QE9teVT/S2ho9atnKcixk8y5DEuVk=";
vendorSha256 = "sha256-aPVzXZ7wjVtxjJXhbDlvBhdzoYsvii6OKUaQryrjaNc=";
ldflags = [
"-X main.version=${version}"
];
postConfigure = ''
export CGO_ENABLED=0
'';
passthru.tests.version = testers.testVersion {
package = clickhouse-backup;
};
meta = with lib; {
homepage = "https://github.com/AlexAkulov/clickhouse-backup";
description = "Tool for easy ClickHouse backup and restore with cloud storages support";
homepage = "https://github.com/AlexAkulov/clickhouse-backup";
license = licenses.mit;
maintainers = with maintainers; [ ma27 ];
platforms = platforms.linux;

View file

@ -25,15 +25,15 @@ in
rustPlatform.buildRustPackage rec {
pname = "diesel-cli";
version = "1.4.1";
version = "2.0.0";
src = fetchCrate {
inherit version;
crateName = "diesel_cli";
sha256 = "sha256-mRdDc4fHMkwkszY+2l8z1RSNMEQnrWI5/Y0Y2W+guQE=";
sha256 = "sha256-PBfVLqm9vEbf1tDTx4v8U1amYwC0hpYTAYcWyfHB84g=";
};
cargoSha256 = "sha256-sQ762Ss31sA5qALHzwkvwbfRXo00cCtqzQyoz3/zf6I=";
cargoSha256 = "sha256-8bvJwdZEdIChFUdTVL+EyjzqI+OAJaVMOOyspReSFzc=";
nativeBuildInputs = [ installShellFiles pkg-config ];

View file

@ -1,10 +1,10 @@
{ lib, stdenv, fetchurl, jre_headless, makeWrapper }:
stdenv.mkDerivation rec{
pname = "flyway";
version = "9.2.0";
version = "9.2.2";
src = fetchurl {
url = "mirror://maven/org/flywaydb/flyway-commandline/${version}/flyway-commandline-${version}.tar.gz";
sha256 = "sha256-vNTL1yIGYgldjC69Yhj8fGShvfaDv5zM82cxwZMpzQw=";
sha256 = "sha256-aHsBey1WzmRhcrCeHeAeVuEvX4iaxbIb/C7N6tCOyuY=";
};
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;

View file

@ -2,13 +2,13 @@
buildGoModule rec {
pname = "ijq";
version = "0.4.0";
version = "0.4.1";
src = fetchFromSourcehut {
owner = "~gpanders";
repo = pname;
rev = "v${version}";
sha256 = "sha256-EQfCEdQIrjg38JjjePNDNWKi0cFezjYvIGVJajbf9jw=";
sha256 = "sha256-WTA14W8JFHdouDgWmsc4wMygnwlANPjSYCAhxFVrwAA=";
};
vendorSha256 = "sha256-DX8m5FsqMZnzk1wgJA/ESZl0QeDv3p9huF4h1HY9DIA=";

View file

@ -11,13 +11,13 @@
stdenv.mkDerivation rec {
pname = "luarocks";
version = "3.9.0";
version = "3.9.1";
src = fetchFromGitHub {
owner = "luarocks";
repo = "luarocks";
rev = "v${version}";
sha256 = "sha256-i0NmF268aK5lr4zjYyhk4TPUO7Zyz0Cl0fSW43Pmd1Q=";
sha256 = "sha256-G6HDap3pspeQtGDBq+ukN7kftDaT/CozMVdYM60F6HI=";
};
patches = [ ./darwin-3.7.0.patch ];

View file

@ -1,20 +1,24 @@
{ luarocks, fetchFromGitHub, nix-update-script }:
{ luarocks, fetchFromGitHub, unstableGitUpdater }:
luarocks.overrideAttrs(old: {
pname = "luarocks-nix";
version = "unstable-2022-09-04";
src = fetchFromGitHub {
owner = "nix-community";
repo = "luarocks-nix";
rev = "b1ff9eeb64c7c1dc5fc177008d6f2be9191c6aa2";
sha256 = "sha256-mkzrf/6yMyLMIEDwsuCIxi1HJvg57ybyZPXVheFAAHE=";
rev = "cfc1439a29ac666fb0fcf440224adf73004655d4";
sha256 = "sha256-uHkE9ztOZDs2pi7to3kZ0iELRhv/gPQgTK+qyYpFZ/Y=";
};
patches = [];
passthru = {
updateScript = nix-update-script {
attrPath = "luarocks-nix";
updateScript = unstableGitUpdater {
branch = "use-fetchzip";
};
};
meta.mainProgram = "luarocks";
meta = {
mainProgram = "luarocks";
};
})

View file

@ -1,8 +1,8 @@
{ lib, stdenv, jdk, jre, coursier, makeWrapper }:
{ lib, stdenv, jre, coursier, makeWrapper, setJavaClassPath }:
let
baseName = "scalafmt";
version = "3.4.3";
version = "3.5.2";
deps = stdenv.mkDerivation {
name = "${baseName}-deps-${version}";
buildCommand = ''
@ -12,16 +12,15 @@ let
cp $(< deps) $out/share/java/
'';
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = "FWGvhKK/VnvetnHS35/z1errYTRZCrcfWyEAHlhKApk=";
outputHash = "sha256-1QP5a0QjYUDU3JzrIX2rM/DclRfU/ACSXVLd6C7uFCo=";
};
in
stdenv.mkDerivation {
pname = baseName;
inherit version;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jdk deps ];
nativeBuildInputs = [ makeWrapper setJavaClassPath ];
buildInputs = [ deps ];
dontUnpack = true;

View file

@ -3,16 +3,16 @@
rustPlatform.buildRustPackage rec {
pname = "blightmud";
version = "3.5.0";
version = "3.6.2";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-DaICzwBew90YstV42wiY0IbvR1W4Hm8dzo3xY2qlMGQ=";
sha256 = "sha256-0TFJjOuaixBqpo6gHJynIbVHvI+PxRhwdubIXDcR098=";
};
cargoSha256 = "sha256-BamMTPh+GN9GG4puxyTauPhjCC8heCu1wsgFaw98s9U=";
cargoSha256 = "sha256-jTyXoEC/QBeVbAnv2BspflGP1jA9qH+NPrRAx3x2kEg=";
buildFeatures = lib.optional withTTS "tts";
@ -51,6 +51,7 @@ rustPlatform.buildRustPackage rec {
"test_gmcp_negotiation"
"test_ttype_negotiation"
"test_reconnect"
"test_is_connected"
"test_mud"
"test_server"
"test_lua_script"
@ -75,7 +76,5 @@ rustPlatform.buildRustPackage rec {
license = licenses.gpl3Plus;
maintainers = with maintainers; [ cpu ];
platforms = platforms.linux;
# See https://github.com/NixOS/nixpkgs/pull/160120
broken = withTTS;
};
}

View file

@ -1,5 +1,16 @@
diff --git a/data/bios-settings.d/meson.build b/data/bios-settings.d/meson.build
index b0ff5b106..13ac380d0 100644
--- a/data/bios-settings.d/meson.build
+++ b/data/bios-settings.d/meson.build
@@ -1,5 +1,5 @@
if build_standalone and host_machine.system() == 'linux'
install_data('README.md',
- install_dir: join_paths(sysconfdir, 'fwupd', 'bios-settings.d')
+ install_dir: join_paths(sysconfdir_install, 'fwupd', 'bios-settings.d')
)
endif
diff --git a/data/meson.build b/data/meson.build
index d8494020d..7c896fa0d 100644
index 3a77a7bfc..747bd1988 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -26,7 +26,7 @@ endif
@ -83,7 +94,7 @@ index 1d1698a7e..5469d00a6 100644
+ install_dir: join_paths(sysconfdir_install, 'fwupd', 'remotes.d'),
)
diff --git a/meson.build b/meson.build
index e6b717078..f8a7a7455 100644
index e7980e965..2c66e2dc4 100644
--- a/meson.build
+++ b/meson.build
@@ -195,6 +195,12 @@ endif
@ -100,7 +111,7 @@ index e6b717078..f8a7a7455 100644
gio = dependency('gio-2.0', version: '>= 2.45.8')
giounix = dependency('gio-unix-2.0', version: '>= 2.45.8', required: false)
diff --git a/meson_options.txt b/meson_options.txt
index 06d242371..d9e517fc0 100644
index 6cf92e72e..2e8568292 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,4 @@
@ -121,7 +132,7 @@ index 67bd3b9d9..ad04a91b6 100644
)
endif
diff --git a/plugins/msr/meson.build b/plugins/msr/meson.build
index 13f03ccd4..9235ebe33 100644
index d626c3ad3..5a2f847d5 100644
--- a/plugins/msr/meson.build
+++ b/plugins/msr/meson.build
@@ -10,7 +10,7 @@ install_data(['fwupd-msr.conf'],

View file

@ -114,7 +114,7 @@ let
self = stdenv.mkDerivation rec {
pname = "fwupd";
version = "1.8.3";
version = "1.8.4";
# libfwupd goes to lib
# daemon, plug-ins and libfwupdplugin go to out
@ -123,7 +123,7 @@ let
src = fetchurl {
url = "https://people.freedesktop.org/~hughsient/releases/fwupd-${version}.tar.xz";
sha256 = "sha256-ciIpd86KhmJRH/o8CIFWb2xFjsjWHSUNlGYRfWEiOOw=";
sha256 = "sha256-rfoHQ0zcKexBxA/vRg6Nlwlj/gx+hJ3sfzkyrbFh+IY=";
};
patches = [
@ -322,6 +322,7 @@ let
passthru = {
filesInstalledToEtc = [
"fwupd/bios-settings.d/README.md"
"fwupd/daemon.conf"
"fwupd/remotes.d/lvfs-testing.conf"
"fwupd/remotes.d/lvfs.conf"

View file

@ -4,16 +4,16 @@ let
# comments with variant added for update script
# ./update-zen.py zen
zenVariant = {
version = "5.19.6"; #zen
suffix = "zen1"; #zen
sha256 = "1mnrnvlxdckf036w8bhw48z915187sfbfy3cpwclvcrmhixiafql"; #zen
version = "5.19.7"; #zen
suffix = "zen2"; #zen
sha256 = "19hvjbw845g8jhfy6mhjizlkcq26si4mm9nchd3jl5mmbps4k2sp"; #zen
isLqx = false;
};
# ./update-zen.py lqx
lqxVariant = {
version = "5.19.6"; #lqx
version = "5.19.7"; #lqx
suffix = "lqx1"; #lqx
sha256 = "0siv53qr6192s4qq1skssxkzapqk5w3k043dl548rdzp6a26yvrh"; #lqx
sha256 = "0zackpfnc4fmf9hvlcbmw9sdw3hag023k3ppy0iaakrfq44zqnis"; #lqx
isLqx = true;
};
zenKernelsFor = { version, suffix, sha256, isLqx }: buildLinux (args // {

View file

@ -54,11 +54,11 @@ rec {
# Vulkan developer beta driver
# See here for more information: https://developer.nvidia.com/vulkan-driver
vulkan_beta = generic rec {
version = "515.49.14";
version = "515.49.15";
persistencedVersion = "515.48.07";
settingsVersion = "515.48.07";
sha256_64bit = "sha256-xNaqTeIfYQIdCxo841rQ87RQc+br5OhP6K12o4V3I18=";
openSha256 = "sha256-4KvOOAR0RQkHTFJkkG32y6uOSHB85Lh6PyVSgRjU1l4=";
sha256_64bit = "sha256-yQbNE+YsbHUc4scXvMZFGuuBRrFTa42g1XoMVZEO/zo=";
openSha256 = "sha256-2RvogIdTA7Rg4oq14TG7Kh31HWuj860xsK7/MYFitpQ=";
settingsSha256 = "sha256-XwdMsAAu5132x2ZHqjtFvcBJk6Dao7I86UksxrOkknU=";
persistencedSha256 = "sha256-BTfYNDJKe4tOvV71/1JJSPltJua0Mx/RvDcWT5ccRRY=";
url = "https://developer.nvidia.com/vulkan-beta-${lib.concatStrings (lib.splitString "." version)}-linux";

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "bazarr";
version = "1.0.3";
version = "1.1.1";
sourceRoot = ".";
src = fetchurl {
url = "https://github.com/morpheus65535/bazarr/releases/download/v${version}/bazarr.zip";
sha256 = "sha256-VApcTYARC6NaVmwXgpzW8xRE23refGudBgPsyq7Ypig=";
sha256 = "sha256-ClVHThhcf4QkYhgJevTKroBe0z0YZX83qKFB0thH6eM=";
};
nativeBuildInputs = [ unzip makeWrapper ];
@ -32,6 +32,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "Subtitle manager for Sonarr and Radarr";
homepage = "https://www.bazarr.media/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.gpl3Only;
maintainers = with maintainers; [ d-xo ];
platforms = platforms.all;

View file

@ -48,6 +48,15 @@ stdenv.mkDerivation rec {
for f in "$lib/lib/"*.la "$dev/bin/"bind*-config; do
sed -i "$f" -e 's|-L${openssl.dev}|-L${lib.getLib openssl}|g'
done
cat <<EOF >$out/etc/rndc.conf
include "/etc/bind/rndc.key";
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
EOF
'';
doCheck = false; # requires root and the net

View file

@ -17,16 +17,16 @@ let
in
rustPlatform.buildRustPackage rec {
pname = "kanidm";
version = "1.1.0-alpha.8";
version = "1.1.0-alpha.9";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-zMtbE6Y9wXFPBqhmiTMJ3m6bLVZl+c6lRY39DWDlJNo=";
rev = "985462590b1c49b26a0b0ee01e24b1eb01942165";
hash = "sha256-JtoDuA3NCKmX+wDqav30VwrLeDALYat1iKFWpbYOO1s=";
};
cargoSha256 = "sha256:1l7xqp457zfd9gfjp6f4lzgadfp6112jbip4irazw4084qwj0z6x";
cargoSha256 = "sha256-pkBkXIG2PF5YMeighQwHwhURWbJabfveyszRIdrQjcA=";
KANIDM_BUILD_PROFILE = "release_nixos_${arch}";
@ -56,25 +56,22 @@ rustPlatform.buildRustPackage rec {
pam
];
# Failing tests, probably due to network issues
checkFlags = [
"--skip default_entries"
"--skip oauth2_openid_basic_flow"
"--skip test_server"
"--skip test_cache"
];
# The UI needs to be in place before the tests are run.
postBuild = ''
# We don't compile the wasm-part form source, as there isn't a rustc for
# wasm32-unknown-unknown in nixpkgs yet.
mkdir $out
cp -r kanidmd_web_ui/pkg $out/ui
'';
preFixup = ''
installShellCompletion --bash $releaseDir/build/completions/*.bash
installShellCompletion --zsh $releaseDir/build/completions/_*
installShellCompletion \
--bash $releaseDir/build/completions/*.bash \
--zsh $releaseDir/build/completions/_*
# PAM and NSS need fix library names
mv $out/lib/libnss_kanidm.so $out/lib/libnss_kanidm.so.2
mv $out/lib/libpam_kanidm.so $out/lib/pam_kanidm.so
# We don't compile the wasm-part form source, as there isn't a rustc for
# wasm32-unknown-unknown in nixpkgs yet.
cp -r kanidmd_web_ui/pkg $out/ui
'';
passthru.tests = { inherit (nixosTests) kanidm; };

View file

@ -3,13 +3,13 @@
stdenv.mkDerivation rec {
pname = "tmate-ssh-server";
version = "2.3.0";
version = "unstable-2021-10-17";
src = fetchFromGitHub {
owner = "tmate-io";
repo = "tmate-ssh-server";
rev = version;
sha256 = "1y77mv1k4c79glj84lzlp0s1lafr1jzf60mywr5vhy6sq47q8hwd";
rev = "1f314123df2bb29cb07427ed8663a81c8d9034fd";
sha256 = "sha256-9/xlMvtkNWUBRYYnJx20qEgtEcjagH2NtEKZcDOM1BY=";
};
dontUseCmakeConfigure = true;
@ -22,8 +22,7 @@ stdenv.mkDerivation rec {
description = "tmate SSH Server";
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ ];
knownVulnerabilities = [ "CVE-2021-44513" "CVE-2021-44512" ];
maintainers = with maintainers; [ ck3d ];
};
}

View file

@ -0,0 +1,31 @@
{ lib, buildGo117Module, fetchFromGitHub }:
buildGo117Module rec {
pname = "carapace";
version = "0.8.10";
src = fetchFromGitHub {
owner = "rsteube";
repo = "${pname}-bin";
rev = "v${version}";
sha256 = "0j60fvrmjm4440gj9hib2ar386zxcblw7yifigsnchr7p3i2187n";
};
vendorSha256 = "1s1sws79cyz1rl63wayzf7yhb04x29a4a1mkifqnl4cc2pv806jf";
subPackages = [ "./cmd/carapace" ];
tags = [ "release" ];
preBuild = ''
go generate ./...
'';
meta = with lib; {
description = "Multi-shell multi-command argument completer";
homepage = "https://rsteube.github.io/carapace-bin/";
maintainers = with maintainers; [ mredaelli ];
license = licenses.mit;
platforms = platforms.unix;
};
}

View file

@ -0,0 +1,30 @@
{ lib, buildFishPlugin, fetchFromGitHub, python3 }:
buildFishPlugin rec {
pname = "bass";
version = "unstable-2021-02-18";
src = fetchFromGitHub {
owner = "edc";
repo = pname;
rev = "2fd3d2157d5271ca3575b13daec975ca4c10577a";
sha256 = "0mb01y1d0g8ilsr5m8a71j6xmqlyhf8w4xjf00wkk8k41cz3ypky";
};
#buildFishplugin will only move the .fish files, but bass also relies on python
postInstall = ''
cp functions/__bass.py $out/share/fish/vendor_functions.d/
'';
checkInputs = [ python3 ];
checkPhase = ''
make test
'';
meta = with lib; {
description = "Fish function making it easy to use utilities written for Bash in Fish shell";
homepage = "https://github.com/edc/bass";
license = licenses.mit;
maintainers = with maintainers; [ beezow ];
};
}

View file

@ -8,6 +8,8 @@ lib.makeScope newScope (self: with self; {
clownfish = callPackage ./clownfish.nix { };
bass = callPackage ./bass.nix { };
done = callPackage ./done.nix { };
# Fishtape 2.x and 3.x aren't compatible,

View file

@ -2,7 +2,7 @@
buildFishPlugin rec {
pname = "forgit";
version = "unstable-2021-12-05";
version = "unstable-2022-08-16";
preFixup = ''
substituteInPlace $out/share/fish/vendor_conf.d/forgit.plugin.fish \
@ -13,8 +13,8 @@ buildFishPlugin rec {
src = fetchFromGitHub {
owner = "wfxr";
repo = "forgit";
rev = "7b26cd46ac768af51b8dd4b84b6567c4e1c19642";
sha256 = "sha256-S/alL3CiyedJ8aGhC2Vg9fmLJYcLxDe4EjQns5dZkKM=";
rev = "3f50933f047510020428114551da0ee5cdfb32a3";
sha256 = "sha256-TSF4Vr5uf/+MVU4yCdIHNnwB7kkp4mF+hkhKtLqQvmk=";
};
meta = with lib; {

View file

@ -0,0 +1,30 @@
{ lib, fetchFromGitHub, installShellFiles, stdenvNoCC }:
stdenvNoCC.mkDerivation rec {
pname = "zi";
version = "unstable-2022-04-09";
src = fetchFromGitHub {
owner = "z-shell";
repo = pname;
rev = "4ca4d3276ca816c3d37a31e47d754f9a732c40b9";
sha256 = "sha256-KcDFT0is5Ef/zRo6zVfxYfBMOb5oVaVFT4EsUrfiMko=";
};
dontBuild = true;
nativeBuildInputs = [ installShellFiles ];
installPhase = ''
mkdir -p $out
cp -r lib zi.zsh $out
installManPage docs/man/zi.1
installShellCompletion --zsh lib/_zi
'';
meta = with lib; {
homepage = "https://github.com/z-shell/zi";
description = "A Swiss Army Knife for Zsh - Unix Shell";
license = licenses.mit;
maintainers = with maintainers; [ sei40kr ];
};
}

View file

@ -0,0 +1,50 @@
{ lib
, fetchFromGitHub
, python3
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "gyb";
version = "1.62";
format = "other";
src = fetchFromGitHub {
owner = "GAM-team";
repo = "got-your-back";
rev = "v${version}";
sha256 = "sha256-HaexQ0y5i9Q0xgjzAX6E2xeyeDvARo7/Gx3ytohRT7U=";
};
propagatedBuildInputs = with python3Packages; [
google-api-python-client
google-auth
google-auth-oauthlib
google-auth-httplib2
httplib2
];
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,${python3.sitePackages}}
mv gyb.py "$out/bin/gyb"
mv *.py "$out/${python3.sitePackages}/"
runHook postInstall
'';
checkPhase = ''
$out/bin/gyb --help > /dev/null
'';
meta = with lib; {
description = ''
Got Your Back (GYB) is a command line tool for backing up your Gmail
messages to your computer using Gmail's API over HTTPS.
'';
homepage = "https://github.com/GAM-team/got-your-back";
license = licenses.asl20;
maintainers = with maintainers; [ austinbutler ];
};
}

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