Merge master into haskell-updates

This commit is contained in:
github-actions[bot] 2022-07-31 00:15:01 +00:00 committed by GitHub
commit eb9760b8f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
189 changed files with 1564 additions and 1029 deletions

View File

@ -5312,6 +5312,12 @@
githubId = 39689; githubId = 39689;
name = "Hugo Tavares Reis"; name = "Hugo Tavares Reis";
}; };
hufman = {
email = "hufman@gmail.com";
github = "hufman";
githubId = 1592375;
name = "Walter Huf";
};
hugolgst = { hugolgst = {
email = "hugo.lageneste@pm.me"; email = "hugo.lageneste@pm.me";
github = "hugolgst"; github = "hugolgst";
@ -9563,6 +9569,15 @@
fingerprint = "D5E4 A51D F8D2 55B9 FAC6 A9BB 2F96 07F0 9B36 0F2D"; fingerprint = "D5E4 A51D F8D2 55B9 FAC6 A9BB 2F96 07F0 9B36 0F2D";
}]; }];
}; };
ocfox = {
email = "i@ocfox.me";
github = "ocfox";
githubId = 47410251;
name = "ocfox";
keys = [{
fingerprint = "939E F8A5 CED8 7F50 5BB5 B2D0 24BC 2738 5F70 234F";
}];
};
odi = { odi = {
email = "oliver.dunkl@gmail.com"; email = "oliver.dunkl@gmail.com";
github = "odi"; github = "odi";
@ -12050,15 +12065,6 @@
githubId = 9720532; githubId = 9720532;
name = "Sergei K"; name = "Sergei K";
}; };
sondr3 = {
email = "nilsen.sondre@gmail.com";
github = "sondr3";
githubId = 2280539;
name = "Sondre Nilsen";
keys = [{
fingerprint = "0EC3 FA89 EFBA B421 F82E 40B0 2567 6BCB FFAD 76B1";
}];
};
sophrosyne = { sophrosyne = {
email = "joshuaortiz@tutanota.com"; email = "joshuaortiz@tutanota.com";
github = "sophrosyne97"; github = "sophrosyne97";

View File

@ -18,7 +18,7 @@ rec {
]; ];
qemuSerialDevice = if pkgs.stdenv.hostPlatform.isx86 || pkgs.stdenv.hostPlatform.isRiscV then "ttyS0" qemuSerialDevice = if pkgs.stdenv.hostPlatform.isx86 || pkgs.stdenv.hostPlatform.isRiscV then "ttyS0"
else if (with pkgs.stdenv.hostPlatform; isAarch32 || isAarch64 || isPower) then "ttyAMA0" else if (with pkgs.stdenv.hostPlatform; isAarch || isPower) then "ttyAMA0"
else throw "Unknown QEMU serial device for system '${pkgs.stdenv.hostPlatform.system}'"; else throw "Unknown QEMU serial device for system '${pkgs.stdenv.hostPlatform.system}'";
qemuBinary = qemuPkg: { qemuBinary = qemuPkg: {

View File

@ -159,7 +159,11 @@ in
"${config.boot.initrd.systemd.package}/lib/systemd/systemd-vconsole-setup" "${config.boot.initrd.systemd.package}/lib/systemd/systemd-vconsole-setup"
"${config.boot.initrd.systemd.package.kbd}/bin/setfont" "${config.boot.initrd.systemd.package.kbd}/bin/setfont"
"${config.boot.initrd.systemd.package.kbd}/bin/loadkeys" "${config.boot.initrd.systemd.package.kbd}/bin/loadkeys"
"${config.boot.initrd.systemd.package.kbd.gzip}/bin/gzip" # keyboard layouts are compressed "${config.boot.initrd.systemd.package.kbd.gzip}/bin/gzip" # Fonts and keyboard layouts are compressed
] ++ optionals (hasPrefix builtins.storeDir cfg.font) [
"${cfg.font}"
] ++ optionals (hasPrefix builtins.storeDir cfg.keyMap) [
"${cfg.keyMap}"
]; ];
systemd.services.reload-systemd-vconsole-setup = systemd.services.reload-systemd-vconsole-setup =

View File

@ -62,7 +62,7 @@ in {
alsa-firmware alsa-firmware
sof-firmware sof-firmware
libreelec-dvb-firmware libreelec-dvb-firmware
] ++ optional (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) raspberrypiWirelessFirmware ] ++ optional pkgs.stdenv.hostPlatform.isAarch raspberrypiWirelessFirmware
++ optionals (versionOlder config.boot.kernelPackages.kernel.version "4.13") [ ++ optionals (versionOlder config.boot.kernelPackages.kernel.version "4.13") [
rtl8723bs-firmware rtl8723bs-firmware
] ++ optionals (versionOlder config.boot.kernelPackages.kernel.version "5.16") [ ] ++ optionals (versionOlder config.boot.kernelPackages.kernel.version "5.16") [

View File

@ -476,9 +476,9 @@ in
isoImage.squashfsCompression = mkOption { isoImage.squashfsCompression = mkOption {
default = with pkgs.stdenv.targetPlatform; "xz -Xdict-size 100% " default = with pkgs.stdenv.targetPlatform; "xz -Xdict-size 100% "
+ lib.optionalString (isx86_32 || isx86_64) "-Xbcj x86" + lib.optionalString isx86 "-Xbcj x86"
# Untested but should also reduce size for these platforms # Untested but should also reduce size for these platforms
+ lib.optionalString (isAarch32 || isAarch64) "-Xbcj arm" + lib.optionalString isAarch "-Xbcj arm"
+ lib.optionalString (isPower && is32bit && isBigEndian) "-Xbcj powerpc" + lib.optionalString (isPower && is32bit && isBigEndian) "-Xbcj powerpc"
+ lib.optionalString (isSparc) "-Xbcj sparc"; + lib.optionalString (isSparc) "-Xbcj sparc";
description = '' description = ''

View File

@ -57,7 +57,7 @@ in
# Hyper-V support. # Hyper-V support.
"hv_storvsc" "hv_storvsc"
] ++ lib.optionals (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) [ ] ++ lib.optionals pkgs.stdenv.hostPlatform.isAarch [
# Most of the following falls into two categories: # Most of the following falls into two categories:
# - early KMS / early display # - early KMS / early display
# - early storage (e.g. USB) support # - early storage (e.g. USB) support

View File

@ -92,7 +92,7 @@ in {
"default_config" "default_config"
"met" "met"
"esphome" "esphome"
] ++ optionals (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) [ ] ++ optionals pkgs.stdenv.hostPlatform.isAarch [
# Use the platform as an indicator that we might be running on a RaspberryPi and include # Use the platform as an indicator that we might be running on a RaspberryPi and include
# relevant components # relevant components
"rpi_power" "rpi_power"

View File

@ -38,6 +38,15 @@ in {
For this to work, the <literal>ssh</literal> SSS service must be enabled in the sssd configuration. For this to work, the <literal>ssh</literal> SSS service must be enabled in the sssd configuration.
''; '';
}; };
kcm = mkOption {
type = types.bool;
default = false;
description = ''
Whether to use SSS as a Kerberos Cache Manager (KCM).
Kerberos will be configured to cache credentials in SSS.
'';
};
}; };
}; };
config = mkMerge [ config = mkMerge [
@ -79,6 +88,28 @@ in {
services.dbus.packages = [ pkgs.sssd ]; services.dbus.packages = [ pkgs.sssd ];
}) })
(mkIf cfg.kcm {
systemd.services.sssd-kcm = {
description = "SSSD Kerberos Cache Manager";
requires = [ "sssd-kcm.socket" ];
serviceConfig = {
ExecStartPre = "-${pkgs.sssd}/bin/sssd --genconf-section=kcm";
ExecStart = "${pkgs.sssd}/libexec/sssd/sssd_kcm --uid 0 --gid 0";
};
restartTriggers = [
config.environment.etc."sssd/sssd.conf".source
];
};
systemd.sockets.sssd-kcm = {
description = "SSSD Kerberos Cache Manager responder socket";
wantedBy = [ "sockets.target" ];
# Matches the default in MIT krb5 and Heimdal:
# https://github.com/krb5/krb5/blob/krb5-1.19.3-final/src/include/kcm.h#L43
listenStreams = [ "/var/run/.heim_org.h5l.kcm-socket" ];
};
krb5.libdefaults.default_ccache_name = "KCM:";
})
(mkIf cfg.sshAuthorizedKeysIntegration { (mkIf cfg.sshAuthorizedKeysIntegration {
# Ugly: sshd refuses to start if a store path is given because /nix/store is group-writable. # Ugly: sshd refuses to start if a store path is given because /nix/store is group-writable.
# So indirect by a symlink. # So indirect by a symlink.

View File

@ -429,12 +429,16 @@ in
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
restartTriggers = [ configFile ]; restartTriggers = [ configFile ];
environment.GIN_MODE = "release";
script = '' script = ''
${optionalString (cfg.database.passwordFile != null) '' ${optionalString (cfg.database.passwordFile != null) ''
export HEADSCALE_DB_PASS="$(head -n1 ${escapeShellArg cfg.database.passwordFile})" export HEADSCALE_DB_PASS="$(head -n1 ${escapeShellArg cfg.database.passwordFile})"
''} ''}
export HEADSCALE_OIDC_CLIENT_SECRET="$(head -n1 ${escapeShellArg cfg.openIdConnect.clientSecretFile})" ${optionalString (cfg.openIdConnect.clientSecretFile != null) ''
export HEADSCALE_OIDC_CLIENT_SECRET="$(head -n1 ${escapeShellArg cfg.openIdConnect.clientSecretFile})"
''}
exec ${cfg.package}/bin/headscale serve exec ${cfg.package}/bin/headscale serve
''; '';

View File

@ -870,7 +870,7 @@ in
(mkIf pkgs.stdenv.hostPlatform.isx86 [ (mkIf pkgs.stdenv.hostPlatform.isx86 [
"-usb" "-device usb-tablet,bus=usb-bus.0" "-usb" "-device usb-tablet,bus=usb-bus.0"
]) ])
(mkIf (pkgs.stdenv.isAarch32 || pkgs.stdenv.isAarch64) [ (mkIf pkgs.stdenv.hostPlatform.isAarch [
"-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet" "-device virtio-gpu-pci" "-device usb-ehci,id=usb0" "-device usb-kbd" "-device usb-tablet"
]) ])
(let (let

View File

@ -254,7 +254,7 @@ in {
jibri = handleTest ./jibri.nix {}; jibri = handleTest ./jibri.nix {};
jirafeau = handleTest ./jirafeau.nix {}; jirafeau = handleTest ./jirafeau.nix {};
jitsi-meet = handleTest ./jitsi-meet.nix {}; jitsi-meet = handleTest ./jitsi-meet.nix {};
k3s-single-node = handleTest ./k3s-single-node.nix {}; k3s = handleTest ./k3s {};
kafka = handleTest ./kafka.nix {}; kafka = handleTest ./kafka.nix {};
kanidm = handleTest ./kanidm.nix {}; kanidm = handleTest ./kanidm.nix {};
kbd-setfont-decompress = handleTest ./kbd-setfont-decompress.nix {}; kbd-setfont-decompress = handleTest ./kbd-setfont-decompress.nix {};

View File

@ -0,0 +1,9 @@
{ system ? builtins.currentSystem
, pkgs ? import ../../.. { inherit system; }
}:
{
# Run a single node k3s cluster and verify a pod can run
single-node = import ./single-node.nix { inherit system pkgs; };
# Run a multi-node k3s cluster and verify pod networking works across nodes
multi-node = import ./multi-node.nix { inherit system pkgs; };
}

View File

@ -0,0 +1,137 @@
import ../make-test-python.nix ({ pkgs, ... }:
let
imageEnv = pkgs.buildEnv {
name = "k3s-pause-image-env";
paths = with pkgs; [ tini bashInteractive coreutils socat ];
};
pauseImage = pkgs.dockerTools.streamLayeredImage {
name = "test.local/pause";
tag = "local";
contents = imageEnv;
config.Entrypoint = [ "/bin/tini" "--" "/bin/sleep" "inf" ];
};
# A daemonset that responds 'server' on port 8000
networkTestDaemonset = pkgs.writeText "test.yml" ''
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: test
labels:
name: test
spec:
selector:
matchLabels:
name: test
template:
metadata:
labels:
name: test
spec:
containers:
- name: test
image: test.local/pause:local
imagePullPolicy: Never
resources:
limits:
memory: 20Mi
command: ["socat", "TCP4-LISTEN:8000,fork", "EXEC:echo server"]
'';
tokenFile = pkgs.writeText "token" "p@s$w0rd";
in
{
name = "k3s-multi-node";
nodes = {
server = { pkgs, ... }: {
environment.systemPackages = with pkgs; [ gzip jq ];
# k3s uses enough resources the default vm fails.
virtualisation.memorySize = 1536;
virtualisation.diskSize = 4096;
services.k3s = {
inherit tokenFile;
enable = true;
role = "server";
package = pkgs.k3s;
extraFlags = "--no-deploy coredns,servicelb,traefik,local-storage,metrics-server --pause-image test.local/pause:local --node-ip 192.168.1.1";
};
networking.firewall.allowedTCPPorts = [ 6443 ];
networking.firewall.allowedUDPPorts = [ 8472 ];
networking.firewall.trustedInterfaces = [ "flannel.1" ];
networking.useDHCP = false;
networking.defaultGateway = "192.168.1.1";
networking.interfaces.eth1.ipv4.addresses = pkgs.lib.mkForce [
{ address = "192.168.1.1"; prefixLength = 24; }
];
};
agent = { pkgs, ... }: {
virtualisation.memorySize = 1024;
virtualisation.diskSize = 2048;
services.k3s = {
inherit tokenFile;
enable = true;
role = "agent";
serverAddr = "https://192.168.1.1:6443";
extraFlags = "--pause-image test.local/pause:local --node-ip 192.168.1.2";
};
networking.firewall.allowedTCPPorts = [ 6443 ];
networking.firewall.allowedUDPPorts = [ 8472 ];
networking.firewall.trustedInterfaces = [ "flannel.1" ];
networking.useDHCP = false;
networking.defaultGateway = "192.168.1.2";
networking.interfaces.eth1.ipv4.addresses = pkgs.lib.mkForce [
{ address = "192.168.1.2"; prefixLength = 24; }
];
};
};
meta = with pkgs.lib.maintainers; {
maintainers = [ euank ];
};
testScript = ''
start_all()
machines = [server, agent]
for m in machines:
m.wait_for_unit("k3s")
# wait for the agent to show up
server.wait_until_succeeds("k3s kubectl get node agent")
for m in machines:
m.succeed("k3s check-config")
m.succeed(
"${pauseImage} | k3s ctr image import -"
)
server.succeed("k3s kubectl cluster-info")
# Also wait for our service account to show up; it takes a sec
server.wait_until_succeeds("k3s kubectl get serviceaccount default")
# Now create a pod on each node via a daemonset and verify they can talk to each other.
server.succeed("k3s kubectl apply -f ${networkTestDaemonset}")
server.wait_until_succeeds(f'[ "$(k3s kubectl get ds test -o json | jq .status.numberReady)" -eq {len(machines)} ]')
# Get pod IPs
pods = server.succeed("k3s kubectl get po -o json | jq '.items[].metadata.name' -r").splitlines()
pod_ips = [server.succeed(f"k3s kubectl get po {name} -o json | jq '.status.podIP' -cr").strip() for name in pods]
# Verify each server can ping each pod ip
for pod_ip in pod_ips:
server.succeed(f"ping -c 1 {pod_ip}")
agent.succeed(f"ping -c 1 {pod_ip}")
# Verify the pods can talk to each other
resp = server.wait_until_succeeds(f"k3s kubectl exec {pods[0]} -- socat TCP:{pod_ips[1]}:8000 -")
assert resp.strip() == "server"
resp = server.wait_until_succeeds(f"k3s kubectl exec {pods[1]} -- socat TCP:{pod_ips[0]}:8000 -")
assert resp.strip() == "server"
# Cleanup
server.succeed("k3s kubectl delete -f ${networkTestDaemonset}")
for m in machines:
m.shutdown()
'';
})

View File

@ -1,5 +1,4 @@
import ./make-test-python.nix ({ pkgs, ... }: import ../make-test-python.nix ({ pkgs, ... }:
let let
imageEnv = pkgs.buildEnv { imageEnv = pkgs.buildEnv {
name = "k3s-pause-image-env"; name = "k3s-pause-image-env";
@ -11,20 +10,12 @@ import ./make-test-python.nix ({ pkgs, ... }:
contents = imageEnv; contents = imageEnv;
config.Entrypoint = [ "/bin/tini" "--" "/bin/sleep" "inf" ]; config.Entrypoint = [ "/bin/tini" "--" "/bin/sleep" "inf" ];
}; };
# Don't use the default service account because there's a race where it may
# not be created yet; make our own instead.
testPodYaml = pkgs.writeText "test.yml" '' testPodYaml = pkgs.writeText "test.yml" ''
apiVersion: v1
kind: ServiceAccount
metadata:
name: test
---
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: test name: test
spec: spec:
serviceAccountName: test
containers: containers:
- name: test - name: test
image: test.local/pause:local image: test.local/pause:local
@ -66,13 +57,14 @@ import ./make-test-python.nix ({ pkgs, ... }:
machine.wait_for_unit("k3s") machine.wait_for_unit("k3s")
machine.succeed("k3s kubectl cluster-info") machine.succeed("k3s kubectl cluster-info")
machine.fail("sudo -u noprivs k3s kubectl cluster-info") machine.fail("sudo -u noprivs k3s kubectl cluster-info")
# FIXME: this fails with the current nixos kernel config; once it passes, we should uncomment it machine.succeed("k3s check-config")
# machine.succeed("k3s check-config")
machine.succeed( machine.succeed(
"${pauseImage} | k3s ctr image import -" "${pauseImage} | k3s ctr image import -"
) )
# Also wait for our service account to show up; it takes a sec
machine.wait_until_succeeds("k3s kubectl get serviceaccount default")
machine.succeed("k3s kubectl apply -f ${testPodYaml}") machine.succeed("k3s kubectl apply -f ${testPodYaml}")
machine.succeed("k3s kubectl wait --for 'condition=Ready' pod/test") machine.succeed("k3s kubectl wait --for 'condition=Ready' pod/test")
machine.succeed("k3s kubectl delete -f ${testPodYaml}") machine.succeed("k3s kubectl delete -f ${testPodYaml}")

View File

@ -53,14 +53,14 @@ import ./make-test-python.nix {
driver.implicitly_wait(20) driver.implicitly_wait(20)
driver.get('http://server/') driver.get('http://server/')
driver.find_element_by_xpath('//div[@foo="bar"]') driver.find_element('xpath', '//div[@foo="bar"]')
open('/tmp/passed_stage1', 'w') open('/tmp/passed_stage1', 'w')
while not os.path.exists('/tmp/proceed'): while not os.path.exists('/tmp/proceed'):
time.sleep(0.5) time.sleep(0.5)
driver.get('http://server/') driver.get('http://server/')
driver.find_element_by_xpath('//div[@foo="yay"]') driver.find_element('xpath', '//div[@foo="yay"]')
open('/tmp/passed', 'w') open('/tmp/passed', 'w')
''; '';
in [ pkgs.firefox-unwrapped pkgs.geckodriver testRunner ]; in [ pkgs.firefox-unwrapped pkgs.geckodriver testRunner ];

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fdkaac"; pname = "fdkaac";
version = "1.0.2"; version = "1.0.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "nu774"; owner = "nu774";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "tHhICq/FzbkvWkDdNzGqGoo7nIDb+DJXmkFwtPIA89c="; sha256 = "sha256-7a8JlQtMGuMWgU/HePd31/EvtBNc2tBMz8V8NQivuNo=";
}; };
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];

View File

@ -1,115 +1,185 @@
{ mkDerivation { stdenv
, lib , lib
, qtbase
, fetchFromGitHub , fetchFromGitHub
, ruby , wrapQtAppsHook
, erlang , makeDesktopItem
, aubio , copyDesktopItems
, alsa-lib
, rtmidi
, libsndfile
, cmake , cmake
, pkg-config , pkg-config
, catch2_3
, qtbase
, qtsvg
, qttools
, qwt
, qscintilla
, kissfftFloat
, crossguid
, reproc
, platform-folders
, ruby
, erlang
, elixir
, beamPackages
, alsa-lib
, rtmidi
, boost , boost
, bash , aubio
, jack2 , jack2
, supercollider-with-sc3-plugins , supercollider-with-sc3-plugins
, qwt , parallel
, withTauWidget ? false
, qtwebengine
, withImGui ? false
, gl3w
, SDL2
, fmt
}: }:
let stdenv.mkDerivation rec {
pname = "sonic-pi"; pname = "sonic-pi";
version = "3.3.1"; version = "4.0.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sonic-pi-net"; owner = "sonic-pi-net";
repo = "sonic-pi"; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-AE7iuSNnW1SAtBMplReGzXKcqD4GG23i10MIAWnlcPo="; hash = "sha256-kTuW+i/kdPhyG3L6SkgQTE9UvADY49KahJcw3+5Uz4k=";
}; };
# sonic pi uses it's own aubioonset with hardcoded parameters but will compile a whole aubio for it mixFodDeps = beamPackages.fetchMixDeps {
# let's just build the aubioonset instead and link against aubio from nixpkgs inherit version;
aubioonset = mkDerivation { pname = "mix-deps-${pname}";
name = "aubioonset"; mixEnv = "test";
src = src; src = "${src}/app/server/beam/tau";
sourceRoot = "source/app/external/aubio/examples"; sha256 = "sha256-MvwUyVTS23vQKLpGxz46tEVCs/OyYk5dDaBlv+kYg1M=";
buildInputs = [jack2 aubio libsndfile];
patchPhase = ''
sed -i "s@<aubio.h>@<aubio/aubio.h>@" jackio.c utils.h
'';
buildPhase = ''
gcc -o aubioonset -laubio jackio.c utils.c aubioonset.c
'';
installPhase = ''
install -D aubioonset $out/aubioonset
'';
}; };
in strictDeps = true;
mkDerivation rec { nativeBuildInputs = [
inherit pname version src; wrapQtAppsHook
copyDesktopItems
nativeBuildInputs = [ cmake ]; cmake
buildInputs = [
bash
pkg-config pkg-config
qtbase
qwt
ruby
aubio
supercollider-with-sc3-plugins
boost
erlang erlang
alsa-lib elixir
rtmidi beamPackages.hex
]; ];
dontUseCmakeConfigure = true; buildInputs = [
qtbase
qtsvg
qttools
qwt
qscintilla
kissfftFloat
catch2_3
crossguid
reproc
platform-folders
ruby
alsa-lib
rtmidi
boost
aubio
] ++ lib.optionals withTauWidget [
qtwebengine
] ++ lib.optionals withImGui [
gl3w
SDL2
fmt
];
prePatch = '' checkInputs = [
sed -i '/aubio/d' app/external/linux_build_externals.sh parallel
sed -i '/aubio/d' app/linux-prebuild.sh ruby
patchShebangs app supercollider-with-sc3-plugins
jack2
];
cmakeFlags = [
"-DUSE_SYSTEM_LIBS=ON"
"-DBUILD_IMGUI_INTERFACE=${if withImGui then "ON" else "OFF"}"
"-DWITH_QT_GUI_WEBENGINE=${if withTauWidget then "ON" else "OFF"}"
];
doCheck = true;
postPatch = ''
# Fix shebangs on files in app and bin scripts
patchShebangs app bin
''; '';
configurePhase = '' preConfigure = ''
runHook preConfigure # Set build environment
export SONIC_PI_HOME="$TMPDIR/spi"
./app/linux-prebuild.sh export HEX_HOME="$TEMPDIR/hex"
./app/linux-config.sh export HEX_OFFLINE=1
export MIX_REBAR3='${beamPackages.rebar3}/bin/rebar3'
export REBAR_GLOBAL_CONFIG_DIR="$TEMPDIR/rebar3"
export REBAR_CACHE_DIR="$TEMPDIR/rebar3.cache"
export MIX_HOME="$TEMPDIR/mix"
export MIX_DEPS_PATH="$TEMPDIR/deps"
export MIX_ENV=prod
runHook postConfigure # Copy Mix dependency sources
echo 'Copying ${mixFodDeps} to Mix deps'
cp --no-preserve=mode -R '${mixFodDeps}' "$MIX_DEPS_PATH"
# Change to project base directory
cd app
# Prebuild Ruby vendored dependencies and Qt docs
./linux-prebuild.sh -o
# Append CMake flag depending on the value of $out
cmakeFlags+=" -DAPP_INSTALL_ROOT=$out/app"
''; '';
buildPhase = '' postBuild = ''
runHook preBuild # Build BEAM server
../linux-post-tau-prod-release.sh -o
'';
pushd app/build checkPhase = ''
cmake --build . --config Release runHook preCheck
# BEAM tests
pushd ../server/beam/tau
MIX_ENV=test TAU_ENV=test mix test
popd popd
runHook postBuild # Ruby tests
pushd ../server/ruby
rake test
popd
# API tests
pushd api-tests
# run JACK parallel to tests and quit both when one exits
SONIC_PI_ENV=test parallel --no-notice -j2 --halt now,done=1 ::: 'jackd -rd dummy' 'ctest --verbose'
popd
runHook postCheck
''; '';
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
# Run Linux release script
../linux-release.sh
# Copy dist directory to output
mkdir $out mkdir $out
cp -r {bin,etc} $out/ cp -r linux_dist/* $out/
# Copy server whole. # Copy icon
mkdir -p $out/app install -Dm644 ../gui/qt/images/icon-smaller.png $out/share/icons/hicolor/256x256/apps/sonic-pi.png
cp -r app/server $out/app/
# We didn't build this during linux-prebuild.sh so copy from the separate derivation
cp ${aubioonset}/aubioonset $out/app/server/native/
# Copy only necessary files for the gui app.
mkdir -p $out/app/gui/qt
cp -r app/gui/qt/{book,fonts,help,html,images,image_source,info,lang,theme} $out/app/gui/qt/
mkdir -p $out/app/build/gui/qt
cp app/build/gui/qt/sonic-pi $out/app/build/gui/qt/sonic-pi
runHook postInstall runHook postInstall
''; '';
@ -117,19 +187,42 @@ mkDerivation rec {
# $out/bin/sonic-pi is a shell script, and wrapQtAppsHook doesn't wrap them. # $out/bin/sonic-pi is a shell script, and wrapQtAppsHook doesn't wrap them.
dontWrapQtApps = true; dontWrapQtApps = true;
preFixup = '' preFixup = ''
wrapQtApp "$out/bin/sonic-pi" \ # Wrap Qt GUI (distributed binary)
--prefix PATH : ${lib.makeBinPath [ bash jack2 ruby supercollider-with-sc3-plugins erlang] } wrapQtApp $out/bin/sonic-pi \
makeWrapper \ --prefix PATH : ${lib.makeBinPath [ ruby supercollider-with-sc3-plugins jack2 ]}
$out/app/server/ruby/bin/sonic-pi-server.rb \
$out/bin/sonic-pi-server \ # If ImGui was built
--prefix PATH : ${lib.makeBinPath [ bash jack2 ruby supercollider-with-sc3-plugins erlang ] } if [ -e $out/app/build/gui/imgui/sonic-pi-imgui ]; then
# Wrap ImGui into bin
makeWrapper $out/app/build/gui/imgui/sonic-pi-imgui $out/bin/sonic-pi-imgui \
--inherit-argv0 \
--prefix PATH : ${lib.makeBinPath [ ruby supercollider-with-sc3-plugins jack2 ]}
fi
# Remove runtime Erlang references
for file in $(grep -FrIl '${erlang}/lib/erlang' $out/app/server/beam/tau); do
substituteInPlace "$file" --replace '${erlang}/lib/erlang' $out/app/server/beam/tau/_build/prod/rel/tau
done
''; '';
meta = { stripDebugList = [ "app" "bin" ];
desktopItems = [
(makeDesktopItem {
name = "sonic-pi";
exec = "sonic-pi";
icon = "sonic-pi";
desktopName = "Sonic Pi";
comment = meta.description;
categories = [ "Audio" "AudioVideo" "Education" ];
})
];
meta = with lib; {
homepage = "https://sonic-pi.net/"; homepage = "https://sonic-pi.net/";
description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools"; description = "Free live coding synth for everyone originally designed to support computing and music lessons within schools";
license = lib.licenses.mit; license = licenses.mit;
maintainers = with lib.maintainers; [ Phlogistique kamilchm c0deaddict sohalt lilyinstarlight ]; maintainers = with maintainers; [ Phlogistique kamilchm c0deaddict sohalt lilyinstarlight ];
platforms = lib.platforms.linux; platforms = platforms.linux;
}; };
} }

View File

@ -76,7 +76,7 @@ stdenv.mkDerivation rec {
# fix "Killed: 9 test/test_bitcoin" # fix "Killed: 9 test/test_bitcoin"
# https://github.com/NixOS/nixpkgs/issues/179474 # https://github.com/NixOS/nixpkgs/issues/179474
hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "stackprotector" ]; hardeningDisable = lib.optionals (stdenv.isAarch64 && stdenv.isDarwin) [ "fortify" "stackprotector" ];
checkInputs = [ python3 ]; checkInputs = [ python3 ];

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "greenfoot"; pname = "greenfoot";
version = "3.7.0"; version = "3.7.1";
src = fetchurl { src = fetchurl {
# We use the deb here. First instinct might be to go for the "generic" JAR # We use the deb here. First instinct might be to go for the "generic" JAR
# download, but that is actually a graphical installer that is much harder # download, but that is actually a graphical installer that is much harder
# to unpack than the deb. # to unpack than the deb.
url = "https://www.greenfoot.org/download/files/Greenfoot-linux-${builtins.replaceStrings ["."] [""] version}.deb"; url = "https://www.greenfoot.org/download/files/Greenfoot-linux-${builtins.replaceStrings ["."] [""] version}.deb";
sha256 = "sha256-K9faU3ZarcR4g8riHpoZYVH0sXtueqfm3Fo+sZAHJA8="; sha256 = "sha256-wGgKDsA/2luw+Nzs9dWb/HRHMx/0S0CFfoI53OCzxug=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];

View File

@ -108,7 +108,7 @@ in stdenv.mkDerivation rec {
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ AndersonTorres kira-bruneau ]; maintainers = with maintainers; [ AndersonTorres kira-bruneau ];
platforms = platforms.unix; platforms = platforms.unix;
badPlatforms = [ "aarch64-darwin" ]; # Undefined symbols for architecture arm64 broken = stdenv.isDarwin && stdenv.isAarch64; # Undefined symbols for architecture arm64
}; };
} }

View File

@ -5,13 +5,13 @@
buildPythonApplication rec { buildPythonApplication rec {
pname = "rednotebook"; pname = "rednotebook";
version = "2.24"; version = "2.25";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jendrikseipp"; owner = "jendrikseipp";
repo = "rednotebook"; repo = "rednotebook";
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-nTFyRNJAhTrVlKdLd2F0jv7VcNn2pGTAegvfMjfHY84="; sha256 = "sha256-3FcnyiQc7XGiZVtqxVxqaWYxXejgy/eNQQ4QNTUsCUI=";
}; };
# We have not packaged tests. # We have not packaged tests.

View File

@ -1,65 +1,76 @@
{ lib { lib
, fetchurl , fetchurl
, vscode-utils , vscode-utils
, unzip
, patchelf , patchelf
, makeWrapper
, icu , icu
, stdenv , stdenv
, openssl , openssl
, mono
}: }:
let let
# Get as close as possible as the `package.json` required version. inherit (stdenv.hostPlatform) system;
# This is what drives omnisharp.
rtDepsSrcsFromJson = lib.importJSON ./rt-deps-bin-srcs.json;
rtDepsBinSrcs = builtins.mapAttrs (k: v: version = "1.25.0";
let
# E.g: "OmniSharp-x86_64-linux"
kSplit = builtins.split "(__)" k; vsixInfo =
name = builtins.elemAt kSplit 0; let
system = builtins.elemAt kSplit 2; linuxDebuggerBins = [
in ".debugger/vsdbg-ui"
".debugger/vsdbg"
];
darwinX86DebuggerBins = [
".debugger/x86_64/vsdbg-ui"
".debugger/x86_64/vsdbg"
];
darwinAarch64DebuggerBins = [
".debugger/arm64/vsdbg-ui"
".debugger/arm64/vsdbg"
];
omniSharpBins = [
".omnisharp/1.39.0-net6.0/OmniSharp"
];
razorBins = [
".razor/createdump"
".razor/rzls"
];
in
{ {
inherit name system; x86_64-linux = {
installPath = v.installPath; url = "https://github.com/OmniSharp/omnisharp-vscode/releases/download/v${version}/csharp-${version}-linux-x64.vsix";
binaries = v.binaries; sha256 = "1cqqjg8q6v56b19aabs9w1kxly457mpm0akbn5mis9nd1mrdmydl";
bin-src = fetchurl { binaries = linuxDebuggerBins ++ omniSharpBins ++ razorBins;
urls = v.urls;
inherit (v) sha256;
}; };
} aarch64-linux = {
) url = "https://github.com/OmniSharp/omnisharp-vscode/releases/download/v${version}/csharp-${version}-linux-arm64.vsix";
rtDepsSrcsFromJson; sha256 = "0nsjgrb7y4w71w1gnrf50ifwbmjidi4vrw2fyfmch7lgjl8ilnhd";
binaries = linuxDebuggerBins ++ omniSharpBins; # Linux aarch64 version has no Razor Language Server
rtDepBinSrcByName = bSrcName: };
rtDepsBinSrcs."${bSrcName}__${stdenv.targetPlatform.system}"; x86_64-darwin = {
url = "https://github.com/OmniSharp/omnisharp-vscode/releases/download/v${version}/csharp-${version}-darwin-x64.vsix";
omnisharp = rtDepBinSrcByName "OmniSharp"; sha256 = "01qn398vmjfi9imzlmzm0qi7y2h214wx6a8la088lfkhyj3gfjh8";
vsdbgs = [ binaries = darwinX86DebuggerBins ++ omniSharpBins ++ razorBins;
(rtDepBinSrcByName "Debugger") };
] ++ lib.optionals (stdenv.isDarwin) [ aarch64-darwin = {
# Include the aarch64-darwin debugger binaries on x86_64-darwin. Even though OmniSharp will be url = "https://github.com/OmniSharp/omnisharp-vscode/releases/download/v${version}/csharp-${version}-darwin-arm64.vsix";
# running under Rosetta 2, debugging will fail to start if both sets of binaries are not present. sha256 = "020j451innh7jzarbv1ij57rfmqnlngdxaw6wdgp8sjkgbylr634";
(rtDepsBinSrcs."Debugger__aarch64-darwin") binaries = darwinAarch64DebuggerBins ++ darwinX86DebuggerBins ++ omniSharpBins ++ razorBins;
]; };
razor = rtDepBinSrcByName "Razor"; }.${system} or (throw "Unsupported system: ${system}");
in in
vscode-utils.buildVscodeMarketplaceExtension rec {
vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = { mktplcRef = {
name = "csharp"; name = "csharp";
publisher = "ms-dotnettools"; publisher = "ms-dotnettools";
version = "1.23.16"; inherit version;
sha256 = "sha256-fM4vcSMi2tEjIox9Twh2sRiFhXgAeRwAM9to3vtcSqI="; };
vsix = fetchurl {
name = "${mktplcRef.publisher}-${mktplcRef.name}.zip";
inherit (vsixInfo) url sha256;
}; };
nativeBuildInputs = [ nativeBuildInputs = [
unzip
patchelf patchelf
makeWrapper
]; ];
postPatch = '' postPatch = ''
@ -78,23 +89,11 @@ vscode-utils.buildVscodeMarketplaceExtension {
-E -e 's/(this\._pipePath=[a-zA-Z0-9_]+\.join\()([a-zA-Z0-9_]+\.getExtensionPath\(\)[^,]*,)/\1require("os").tmpdir(), "'"$ext_unique_id"'"\+/g' \ -E -e 's/(this\._pipePath=[a-zA-Z0-9_]+\.join\()([a-zA-Z0-9_]+\.getExtensionPath\(\)[^,]*,)/\1require("os").tmpdir(), "'"$ext_unique_id"'"\+/g' \
"$PWD/dist/extension.js" "$PWD/dist/extension.js"
unzip_to() {
declare src_zip="''${1?}"
declare target_dir="''${2?}"
mkdir -p "$target_dir"
if unzip "$src_zip" -d "$target_dir"; then
true
elif [[ "1" -eq "$?" ]]; then
1>&2 echo "WARNING: unzip('$?' -> skipped files)."
else
1>&2 echo "ERROR: unzip('$?')."
fi
}
patchelf_add_icu_as_needed() { patchelf_add_icu_as_needed() {
declare elf="''${1?}" declare elf="''${1?}"
declare icu_major_v="${ declare icu_major_v="${
with builtins; head (splitVersion (parseDrvName icu.name).version)}" lib.head (lib.splitVersion (lib.getVersion icu.name))
}"
for icu_lib in icui18n icuuc icudata; do for icu_lib in icui18n icuuc icudata; do
patchelf --add-needed "lib''${icu_lib}.so.$icu_major_v" "$elf" patchelf --add-needed "lib''${icu_lib}.so.$icu_major_v" "$elf"
@ -111,42 +110,22 @@ vscode-utils.buildVscodeMarketplaceExtension {
"$elf" "$elf"
} }
declare omnisharp_dir="$PWD/${omnisharp.installPath}" '' + (lib.concatStringsSep "\n" (map
unzip_to "${omnisharp.bin-src}" "$omnisharp_dir" (bin: ''
rm "$omnisharp_dir/bin/mono" chmod +x "${bin}"
ln -s -T "${mono}/bin/mono" "$omnisharp_dir/bin/mono" '')
chmod a+x "$omnisharp_dir/run" vsixInfo.binaries))
touch "$omnisharp_dir/install.Lock" + lib.optionalString stdenv.isLinux (lib.concatStringsSep "\n" (map
(bin: ''
'' + builtins.concatStringsSep "\n" (map (vsdbg: '' patchelf_common "${bin}"
declare vsdbg_dir="$PWD/${vsdbg.installPath}" '')
unzip_to "${vsdbg.bin-src}" "$vsdbg_dir" vsixInfo.binaries));
chmod a+x "$vsdbg_dir/vsdbg-ui"
chmod a+x "$vsdbg_dir/vsdbg"
touch "$vsdbg_dir/install.complete"
touch "$vsdbg_dir/install.Lock"
'') vsdbgs) + ''
declare razor_dir="$PWD/${razor.installPath}"
unzip_to "${razor.bin-src}" "$razor_dir"
chmod a+x "$razor_dir/rzls"
touch "$razor_dir/install.Lock"
'' + lib.optionalString stdenv.isLinux ''
patchelf_common "$vsdbg_dir/vsdbg"
patchelf_common "$vsdbg_dir/vsdbg-ui"
patchelf_common "$razor_dir/rzls"
'' + lib.optionalString stdenv.isDarwin ''
substituteInPlace $omnisharp_dir/etc/config \
--replace "libmono-native-compat.dylib" "libmono-native.dylib"
'';
meta = with lib; { meta = with lib; {
description = "C# for Visual Studio Code (powered by OmniSharp)"; description = "C# for Visual Studio Code (powered by OmniSharp)";
homepage = "https://github.com/OmniSharp/omnisharp-vscode"; homepage = "https://github.com/OmniSharp/omnisharp-vscode";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.jraygauthier ]; maintainers = [ maintainers.jraygauthier ];
platforms = [ "x86_64-linux" "x86_64-darwin" ]; platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
}; };
} }

View File

@ -1,94 +0,0 @@
{
"OmniSharp__x86_64-darwin": {
"installPath": ".omnisharp/1.37.16",
"binaries": [
"./mono.osx",
"./run"
],
"urls": [
"https://download.visualstudio.microsoft.com/download/pr/03c32aa6-7c7a-4936-82a0-fd8f816d112f/0ea1ea1eae48552a1992ed6df782353a/omnisharp-osx-1.37.16.zip",
"https://roslynomnisharp.blob.core.windows.net/releases/1.37.16/omnisharp-osx-1.37.16.zip"
],
"sha256": "0hhgfx7zs1rljhn3n9c7lci7j15yp2448z3f1d3c47a95l1hmlip"
},
"OmniSharp__x86_64-linux": {
"installPath": ".omnisharp/1.37.16",
"binaries": [
"./mono.linux-x86_64",
"./run"
],
"urls": [
"https://download.visualstudio.microsoft.com/download/pr/03c32aa6-7c7a-4936-82a0-fd8f816d112f/9ae3ed99fc0c41c7139751dde6f2bc78/omnisharp-linux-x64-1.37.16.zip",
"https://roslynomnisharp.blob.core.windows.net/releases/1.37.16/omnisharp-linux-x64-1.37.16.zip"
],
"sha256": "0a2basc6dw42fnjv9zz93ff0bsw2i3446gvcjx5mn5d8dasi483i"
},
"Debugger__x86_64-darwin": {
"installPath": ".debugger/x86_64",
"binaries": [
"./vsdbg-ui",
"./vsdbg"
],
"urls": [
"https://download.visualstudio.microsoft.com/download/pr/49f44239-bd47-4fb5-91be-4c91d7638fff/c1122f7141735472d9583c1124024c55/coreclr-debug-osx-x64.zip",
"https://vsdebugger.blob.core.windows.net/coreclr-debug-1-23-14/coreclr-debug-osx-x64.zip"
],
"sha256": "08z3k0h25gdsbmlxwayd94672hp2z7zmwdmd0nyr9j82izj3ci2m"
},
"Debugger__aarch64-darwin": {
"installPath": ".debugger/arm64",
"binaries": [
"./vsdbg-ui",
"./vsdbg"
],
"urls": [
"https://download.visualstudio.microsoft.com/download/pr/49f44239-bd47-4fb5-91be-4c91d7638fff/96a88189c7904a517f3bb59b2dba8bd1/coreclr-debug-osx-arm64.zip",
"https://vsdebugger.blob.core.windows.net/coreclr-debug-1-23-14/coreclr-debug-osx-arm64.zip"
],
"sha256": "113kz02ihvb4y5fj01wamqz2jsql2q7n7f55s9kzs9dsrmq5ffa0"
},
"Debugger__aarch64-linux": {
"installPath": ".debugger",
"binaries": [
"./vsdbg-ui",
"./vsdbg"
],
"urls": [
"https://download.visualstudio.microsoft.com/download/pr/49f44239-bd47-4fb5-91be-4c91d7638fff/7a723bfbda6d196c52084226b6835b36/coreclr-debug-linux-arm64.zip",
"https://vsdebugger.blob.core.windows.net/coreclr-debug-1-23-14/coreclr-debug-linux-arm64.zip"
],
"sha256": "1d4a5q3f7qfk3jq2i4f6g50i9i4z8z7g8ss083y9n5c1yj3629kw"
},
"Debugger__x86_64-linux": {
"installPath": ".debugger",
"binaries": [
"./vsdbg-ui",
"./vsdbg"
],
"urls": [
"https://download.visualstudio.microsoft.com/download/pr/49f44239-bd47-4fb5-91be-4c91d7638fff/dd019b4c839f458596e26bfcfe6a3e7f/coreclr-debug-linux-x64.zip",
"https://vsdebugger.blob.core.windows.net/coreclr-debug-1-23-14/coreclr-debug-linux-x64.zip"
],
"sha256": "0c5y0035sa07bl3m3iiqccqd92xjwpcfjrqhmi5xligk40q2i2gk"
},
"Razor__x86_64-linux": {
"installPath": ".razor",
"binaries": [
"./rzls"
],
"urls": [
"https://download.visualstudio.microsoft.com/download/pr/b8678010-2cd7-4201-a5e7-ba57920607d5/b846e9c7d7afdba54a72fae1dcb6c42c/razorlanguageserver-linux-x64-6.0.0-preview.5.21358.6.zip"
],
"sha256": "0gb36nlb7fgcv03a0awna1qyrsky6ys5gkpsmvxc5j35f1yq337b"
},
"Razor__x86_64-darwin": {
"installPath": ".razor",
"binaries": [
"./rzls"
],
"urls": [
"https://download.visualstudio.microsoft.com/download/pr/b8678010-2cd7-4201-a5e7-ba57920607d5/ad846449769eb2ae810d0236823a6aaa/razorlanguageserver-osx-x64-6.0.0-preview.5.21358.6.zip"
],
"sha256": "0iqinpwwlqwajdq4i1qbb9hfpfmgy17av95bpw02ad2f9fnyh572"
}
}

View File

@ -1,21 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell -I nixpkgs=../../../.. -i bash -p curl jq unzip
set -euf -o pipefail
declare scriptDir
scriptDir=$(cd "$(dirname "$0")"; pwd)
1>&2 echo "scriptDir='$scriptDir'"
. "$scriptDir/../_maintainers/update-bin-srcs-lib.sh"
declare extPublisher="ms-dotnettools"
declare extName="csharp"
declare defaultExtVersion="1.23.16"
declare extVersion="${1:-$defaultExtVersion}"
formatExtRuntimeDeps \
"$extPublisher" "$extName" "$extVersion" \
| computeAndAttachExtRtDepsChecksums \
| jqStreamToJson \
| tee "$scriptDir/rt-deps-bin-srcs.json" \
| jq '.'

View File

@ -13,26 +13,26 @@
, libpng , libpng
, libtheora , libtheora
, libvorbis , libvorbis
, python , python3
, tcl , tcl
, zlib , zlib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "openmsx"; pname = "openmsx";
version = "17.0"; version = "18.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "openMSX"; owner = "openMSX";
repo = "openMSX"; repo = "openMSX";
rev = "RELEASE_${builtins.replaceStrings ["."] ["_"] version}"; rev = "RELEASE_${builtins.replaceStrings ["."] ["_"] finalAttrs.version}";
sha256 = "sha256-9PdUNahJZ2O6ASkzLW/uudP3hiIzTDpxzFy6Pjb8JiU="; sha256 = "sha256-4V2B+OQbPVRmkRuqfeqyd+7pz9Z1YISjI79WqZS0Qhc=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
python python3
]; ];
buildInputs = [ buildInputs = [
@ -72,4 +72,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} })

View File

@ -16,14 +16,14 @@
mkDerivation rec { mkDerivation rec {
pname = "ppsspp"; pname = "ppsspp";
version = "1.12.3"; version = "1.13.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hrydgard"; owner = "hrydgard";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "sha256-S16rTB0svksW5MwrPV/+qpTK4uKZ7mFcmbOyEmMmzhY="; sha256 = "sha256-WsFy2aSOmkII2Lte5et4W6qj0AXUKWWkYe88T0OQP08=";
}; };
postPatch = '' postPatch = ''

View File

@ -10,14 +10,14 @@
python3Packages.buildPythonPackage rec { python3Packages.buildPythonPackage rec {
pname = "hydrus"; pname = "hydrus";
version = "492"; version = "493";
format = "other"; format = "other";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hydrusnetwork"; owner = "hydrusnetwork";
repo = "hydrus"; repo = "hydrus";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-KtuHPKVwk6nRQ5lqHxRgm7k7DfcGeRAzR/kkHVMizDM="; sha256 = "sha256-sROmWFH3sDBDh1VSVLTM71Y9qD8CndvwW7PKzkavIuc=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -6,7 +6,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "lightburn"; pname = "lightburn";
version = "1.1.03"; version = "1.2.01";
nativeBuildInputs = [ nativeBuildInputs = [
p7zip p7zip
@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://github.com/LightBurnSoftware/deployment/releases/download/${version}/LightBurn-Linux64-v${version}.7z"; url = "https://github.com/LightBurnSoftware/deployment/releases/download/${version}/LightBurn-Linux64-v${version}.7z";
sha256 = "sha256-X7hAkzVqIABpyFokiYaMGZqSda69cKhKghFDWDEVOow="; sha256 = "sha256-V4hswyj6Ly6inaIlHlxpvER8ar09wZ55Ad+xH4GbHfs=";
}; };
buildInputs = [ buildInputs = [

View File

@ -32,13 +32,13 @@ let
in in
mkDerivation rec { mkDerivation rec {
pname = "renderdoc"; pname = "renderdoc";
version = "1.18"; version = "1.21";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "baldurk"; owner = "baldurk";
repo = "renderdoc"; repo = "renderdoc";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-nwERwdNQYY1Fd7llwZHrJBzWDJNdsySRQ3ZvXZjB7YY="; sha256 = "sha256-T6OAr6Pl4VmXVSlNHF6kh8jIKs3FSTZsZ+Y4IH3SPTE=";
}; };
buildInputs = [ buildInputs = [

View File

@ -10,13 +10,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "free42"; pname = "free42";
version = "3.0.9"; version = "3.0.13";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "thomasokken"; owner = "thomasokken";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-ZSwqgHsfe9apyYZ1fkvDMnQxdNb9E8U1l9jvC9t693w="; hash = "sha256-0CFDkGUV9dihshYbjc0JL0axBcW499mt13xxdfO31vg=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -2,7 +2,7 @@
buildGoModule rec { buildGoModule rec {
pname = "overmind"; pname = "overmind";
version = "2.2.2"; version = "2.3.0";
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
@ -14,10 +14,10 @@ buildGoModule rec {
owner = "DarthSim"; owner = "DarthSim";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "zDjIwnhDoUj+zTAhtBa94dx7QhYMCTxv2DNUpeP8CP0="; sha256 = "sha256-vmmSsg0JneMseFCcx/no2x/Ghppmyiod8ZAIb4JWW9I=";
}; };
vendorSha256 = "KDMzR6qAruscgS6/bHTN6RnHOlLKCm9lxkr9k3oLY+Y="; vendorSha256 = "sha256-QIKyLknPvmt8yiUCSCIqha8h9ozDGeQnKSM9Vwus0uY=";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/DarthSim/overmind"; homepage = "https://github.com/DarthSim/overmind";

View File

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "argocd"; pname = "argocd";
version = "2.4.4"; version = "2.4.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "argoproj"; owner = "argoproj";
repo = "argo-cd"; repo = "argo-cd";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-rmgXsA9rOCUy1HDm09Aq5s8EfkM71We76gffPElnUAU="; sha256 = "sha256-7eL6PQPB9xI5vmYuIaLHQLx6Dj/bRuv+Qw0MzJXUk4g=";
}; };
vendorSha256 = "sha256-32cuYIySHtV+PfN2wrqf+p01+F6uBZJN3w2MeDQ8hbI="; vendorSha256 = "sha256-dM7ahmBaXrLjOF8XAPdIkoyhfSTbgturrf1F8xSUvjk=";
# Set target as ./cmd per cli-local # Set target as ./cmd per cli-local
# https://github.com/argoproj/argo-cd/blob/master/Makefile#L227 # https://github.com/argoproj/argo-cd/blob/master/Makefile#L227
@ -26,9 +26,9 @@ buildGoModule rec {
"-X ${package_url}.gitCommit=${src.rev}" "-X ${package_url}.gitCommit=${src.rev}"
"-X ${package_url}.gitTag=${src.rev}" "-X ${package_url}.gitTag=${src.rev}"
"-X ${package_url}.gitTreeState=clean" "-X ${package_url}.gitTreeState=clean"
"-X ${package_url}.kubectlVersion=v0.23.3" "-X ${package_url}.kubectlVersion=v0.23.1"
# NOTE: Update kubectlVersion when upgrading this package with # NOTE: Update kubectlVersion when upgrading this package with
# https://github.com/argoproj/argo-cd/blob/master/go.mod#L95 # https://github.com/argoproj/argo-cd/blob/v${version}/go.mod#L95
# Per https://github.com/argoproj/argo-cd/blob/master/Makefile#L18 # Per https://github.com/argoproj/argo-cd/blob/master/Makefile#L18
# Will need a way to automate it :P # Will need a way to automate it :P
]; ];

View File

@ -323,7 +323,7 @@ buildGoModule rec {
passthru.updateScript = ./update.sh; passthru.updateScript = ./update.sh;
passthru.tests = { inherit (nixosTests) k3s-single-node; }; passthru.tests = nixosTests.k3s;
meta = baseMeta; meta = baseMeta;
} }

View File

@ -2,24 +2,25 @@
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, makeWrapper , makeWrapper
, installShellFiles
, bash , bash
, openssh , openssh
}: }:
buildGoModule rec { buildGoModule rec {
pname = "k3sup"; pname = "k3sup";
version = "0.11.3"; version = "0.12.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "alexellis"; owner = "alexellis";
repo = "k3sup"; repo = "k3sup";
rev = version; rev = version;
sha256 = "sha256-6WYUmC2uVHFGLsfkA2EUOWmmo1dSKJzI4MEdRnlLgYY="; sha256 = "sha256-sb0cVLPIRD49AQ2XUsXkABFEZPrcuytr8Ht7Zt40H3o=";
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper installShellFiles ];
vendorSha256 = "sha256-Pd+BgPWoxf1AhP0o5SgFSvy4LyUQB7peKWJk0BMy7ds="; vendorSha256 = "sha256-I2bODrGF4D7B13qBZtCAOWgAmrxdleqfDQz+vCGmdjQ=";
postConfigure = '' postConfigure = ''
substituteInPlace vendor/github.com/alexellis/go-execute/pkg/v1/exec.go \ substituteInPlace vendor/github.com/alexellis/go-execute/pkg/v1/exec.go \
@ -37,6 +38,11 @@ buildGoModule rec {
postInstall = '' postInstall = ''
wrapProgram "$out/bin/k3sup" \ wrapProgram "$out/bin/k3sup" \
--prefix PATH : ${lib.makeBinPath [ openssh ]} --prefix PATH : ${lib.makeBinPath [ openssh ]}
installShellCompletion --cmd k3sup \
--bash <($out/bin/k3sup completion bash) \
--zsh <($out/bin/k3sup completion zsh) \
--fish <($out/bin/k3sup completion fish)
''; '';
meta = with lib; { meta = with lib; {

View File

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "levant"; pname = "levant";
version = "0.3.0"; version = "0.3.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hashicorp"; owner = "hashicorp";
repo = "levant"; repo = "levant";
rev = "v${version}"; rev = "v${version}";
sha256 = "9M7a4i+DPKb1H9jOEVAvhvYxGwtj3dK/40n4GSy4Rqo="; sha256 = "sha256-ujybD4nSHC/w2Pfu43eSO6rNJjXFAvc81T05icWFvbs=";
}; };
vendorSha256 = "sha256-m3WSk5RvCmeIgX6SwHpWHvokgs71cY6XCKtHJ4jnonc="; vendorSha256 = "sha256-pKxj0qz7adSuPpiXu4+2KBO3JZu8zZ8ycPF5LosF4T8=";
# The tests try to connect to a Nomad cluster. # The tests try to connect to a Nomad cluster.
doCheck = false; doCheck = false;

View File

@ -2,13 +2,13 @@
buildGoModule rec { buildGoModule rec {
pname = "odo"; pname = "odo";
version = "2.5.0"; version = "2.5.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "redhat-developer"; owner = "redhat-developer";
repo = "odo"; repo = "odo";
rev = "v${version}"; rev = "v${version}";
sha256 = "KYJkCoF80UPsebWwxpc5gIfmT3Aj4OU8r6dDkaWXqbY="; sha256 = "sha256-+UvG+aDji/GtkXdt+xZB06j6NxjeK2nhBjle5K+lx/A=";
}; };
vendorSha256 = null; vendorSha256 = null;

View File

@ -6,14 +6,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "compactor"; pname = "compactor";
version = "1.2.0"; version = "1.2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dns-stats"; owner = "dns-stats";
repo = pname; repo = pname;
rev = version; rev = version;
fetchSubmodules = true; fetchSubmodules = true;
hash = "sha256-AUNPUk70VwJ0nZgMPLMU258nqkL4QP6km0USrZi2ea0="; hash = "sha256-SgmtlbYOrSMzVfzsrbg4qs+yGkXQialiJTI99EBsUjQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -15,13 +15,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gftp"; pname = "gftp";
version = "2.8.0b"; version = "2.9.1b";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "masneyb"; owner = "masneyb";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-syeRFpqbd1VhKhhs/fIByDSVpcY+SAlmikDo3J1ZHlo="; hash = "sha256-0zdv2oYl24BXh61IGCWby/2CCkzNjLpDrAFc0J89Pw4=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -48,7 +48,7 @@ let
configureFlags = old.configureFlags configureFlags = old.configureFlags
++ (readLinesToList ./config/ffmpeg_args_common) ++ (readLinesToList ./config/ffmpeg_args_common)
++ lib.optionals stdenv.isLinux (readLinesToList ./config/ffmpeg_args_linux) ++ lib.optionals stdenv.isLinux (readLinesToList ./config/ffmpeg_args_linux)
++ lib.optionals (stdenv.isx86_32 || stdenv.isx86_64) (readLinesToList ./config/ffmpeg_args_x86); ++ lib.optionals stdenv.hostPlatform.isx86 (readLinesToList ./config/ffmpeg_args_x86);
outputs = [ "out" "doc" ]; outputs = [ "out" "doc" ];
meta = old.meta // { meta = old.meta // {
# undefined reference to `ff_nlmeans_init_aarch64' # undefined reference to `ff_nlmeans_init_aarch64'

View File

@ -0,0 +1,33 @@
{ lib, stdenv, fetchFromGitHub, pidgin, json-glib, signald }:
stdenv.mkDerivation rec {
pname = "purple-signald";
version = "0.11.0";
src = fetchFromGitHub {
owner = "hoehermann";
repo = "libpurple-signald";
rev = "v${version}";
sha256 = "sha256-2LiHjVRBwdPbfravIVM+gvsh3Gq4bhjtRD6eWAbkWmc=";
fetchSubmodules = true;
};
buildInputs = [
pidgin
json-glib
signald
];
PKG_CONFIG_PURPLE_PLUGINDIR = "${placeholder "out"}/lib/purple-2";
PKG_CONFIG_PURPLE_DATADIR = "${placeholder "out"}/share";
installFlags = [ "DESTDIR=$(out)" ];
meta = with lib; {
homepage = "https://github.com/hoehermann/libpurple-signald";
description = "Signal support for Pidgin / libpurple";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = with maintainers; [ hufman ];
};
}

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, gnome, gmime3, webkitgtk, ronn { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config, gnome, gmime3, webkitgtk, ronn
, libsass, notmuch, boost, wrapGAppsHook, glib-networking, protobuf , libsass, notmuch, boost, wrapGAppsHook, glib-networking, protobuf
, gtkmm3, libpeas, gsettings-desktop-schemas, gobject-introspection, python3 , gtkmm3, libpeas, gsettings-desktop-schemas, gobject-introspection, python3
@ -20,6 +20,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-6xQniOLNUk8tDkooDN3Tp6sb43GqoynO6+fN9yhNqZ4="; sha256 = "sha256-6xQniOLNUk8tDkooDN3Tp6sb43GqoynO6+fN9yhNqZ4=";
}; };
patches = [
(fetchpatch {
name = "symbolic-icons.patch";
url =
"https://github.com/astroidmail/astroid/commit/7c2022f06a4146ad62e858bcaacdb4ee817851b9.patch";
hash = "sha256-hZHOg1wUR8Kpd6017fWzhMmG+/WQxSOCnsiyIvUcpbU=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
cmake ronn pkg-config wrapGAppsHook gobject-introspection cmake ronn pkg-config wrapGAppsHook gobject-introspection
python3 python3.pkgs.wrapPython python3 python3.pkgs.wrapPython

View File

@ -26,7 +26,7 @@ buildGoModule rec {
meta = with lib; { meta = with lib; {
description = "Simple and highly scalable distributed file system"; description = "Simple and highly scalable distributed file system";
homepage = "https://github.com/chrislusf/seaweedfs"; homepage = "https://github.com/chrislusf/seaweedfs";
maintainers = with maintainers; [ cmacrae raboof ]; maintainers = with maintainers; [ cmacrae ];
mainProgram = "weed"; mainProgram = "weed";
license = licenses.asl20; license = licenses.asl20;
}; };

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cvc5"; pname = "cvc5";
version = "1.0.0"; version = "1.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "cvc5"; owner = "cvc5";
repo = "cvc5"; repo = "cvc5";
rev = "cvc5-${version}"; rev = "cvc5-${version}";
sha256 = "03sxqwmlajffmv7lncqs1bx8gyihkpnikk87q9wjrd4776n13ign"; sha256 = "sha256-D3rexkDc78w/HObT/WYPBo8mTBx1MAkxPXJvddg97ic=";
}; };
nativeBuildInputs = [ pkg-config cmake ]; nativeBuildInputs = [ pkg-config cmake ];

View File

@ -7,13 +7,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "primecount"; pname = "primecount";
version = "7.3"; version = "7.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kimwalisch"; owner = "kimwalisch";
repo = "primecount"; repo = "primecount";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-hxnn1uiGSB6XRC7yK+SXTwTsJfjhemWXsMNhhL7Ghek="; hash = "sha256-ZKrTeeDJgVy+6Q0twFW9+bQulUmOL1dxznYK9nWd07Y=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -6,13 +6,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "primesieve"; pname = "primesieve";
version = "7.9"; version = "8.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kimwalisch"; owner = "kimwalisch";
repo = "primesieve"; repo = "primesieve";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-lwT+adKFoNI125y5FuJMovtMh8sFi9oqMLYGLabzrCI="; hash = "sha256-sqHNQXWeo+Iktq3gyiDLblBq/9QNlUQDvi1oHcZ2XYM=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -2,13 +2,13 @@
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "git-delete-merged-branches"; pname = "git-delete-merged-branches";
version = "6.4.0"; version = "7.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hartwork"; owner = "hartwork";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/${version}";
sha256 = "sha256-swAc8ObZY78nVQyjTrVG81xBqTYnWHVDFpiUApbowqU="; sha256 = "sha256-CPJhd3QXXNm4RGBEDnNOohVOYKVI6I8uc3cDiTrXKvc=";
}; };
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [

View File

@ -31,6 +31,6 @@ buildRustPackage rec {
description = "Quickly and easily fetch .gitignore templates from gitignore.io"; description = "Quickly and easily fetch .gitignore templates from gitignore.io";
homepage = "https://github.com/sondr3/git-ignore"; homepage = "https://github.com/sondr3/git-ignore";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = [ maintainers.sondr3 ]; maintainers = [ ];
}; };
} }

View File

@ -1,23 +1,35 @@
{ lib, buildGoModule, fetchFromGitHub }: { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec { buildGoModule rec {
pname = "lefthook"; pname = "lefthook";
version = "1.0.4"; version = "1.0.5";
src = fetchFromGitHub { src = fetchFromGitHub {
rev = "v${version}"; rev = "v${version}";
owner = "evilmartians"; owner = "evilmartians";
repo = "lefthook"; repo = "lefthook";
sha256 = "sha256-uaIZrxfzV2WPvnAPm6Q67yKx1EVmSMcChSxZG/Huw48="; sha256 = "sha256-/y9UUVwJ/u1F9+hMxWqGENscTuf8GP4VZl7hTk3zyrM=";
}; };
vendorSha256 = "sha256-LCBQyVSkUywceIlioYRNuRc6FrbPKuhgfw5OocR3NvI="; vendorSha256 = "sha256-LCBQyVSkUywceIlioYRNuRc6FrbPKuhgfw5OocR3NvI=";
nativeBuildInputs = [ installShellFiles ];
ldflags = [ "-s" "-w" ];
doCheck = false; doCheck = false;
postInstall = ''
installShellCompletion --cmd lefthook \
--bash <($out/bin/lefthook completion bash) \
--fish <($out/bin/lefthook completion fish) \
--zsh <($out/bin/lefthook completion zsh)
'';
meta = with lib; { meta = with lib; {
description = "Fast and powerful Git hooks manager for any type of projects"; description = "Fast and powerful Git hooks manager for any type of projects";
homepage = "https://github.com/Arkweid/lefthook"; homepage = "https://github.com/evilmartians/lefthook";
changelog = "https://github.com/evilmartians/lefthook/raw/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ rencire ]; maintainers = with maintainers; [ rencire ];
}; };

View File

@ -14,21 +14,14 @@
buildGoPackage rec { buildGoPackage rec {
pname = "gitea"; pname = "gitea";
version = "1.16.9"; version = "1.17.0";
# not fetching directly from the git repo, because that lacks several vendor files for the web UI # not fetching directly from the git repo, because that lacks several vendor files for the web UI
src = fetchurl { src = fetchurl {
url = "https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz"; url = "https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz";
sha256 = "sha256-LxPYUSyRSfDlGwCC2IFPEISP4wsRJsUbwi9F7sxbMOE="; sha256 = "sha256-oBbAg2xQ58dLBCjhcKMoUf32ckoFfnFQHL3z3pAKW1Y=";
}; };
unpackPhase = ''
mkdir source/
tar xvf $src -C source/
'';
sourceRoot = "source";
patches = [ patches = [
./static-root-path.patch ./static-root-path.patch
]; ];

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "verco"; pname = "verco";
version = "6.8.0"; version = "6.12.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vamolessa"; owner = "vamolessa";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-E1kqJLnTLPu38zvDGaPHiKSW/yKormbx5N1CBSzQxgc="; sha256 = "sha256-M3Utrt350I67kqzEH130tgBIiI7rY8ODCSxgMohWWWM=";
}; };
cargoSha256 = "sha256-9342LAChCv61kxTJoeOy7EdafMfR10s8dtkc2pTgXT0="; cargoSha256 = "sha256-urnTPlQTmOPq7mHZjsTqxql/FQe7NYHE8sVJJ4fno+U=";
meta = with lib; { meta = with lib; {
description = "A simple Git/Mercurial/PlasticSCM tui client based on keyboard shortcuts"; description = "A simple Git/Mercurial/PlasticSCM tui client based on keyboard shortcuts";

View File

@ -206,7 +206,7 @@ let self = stdenv.mkDerivation rec {
++ optional (!useGtk) "--disable-gtk" ++ optional (!useGtk) "--disable-gtk"
++ optional useFdk "--enable-fdk-aac" ++ optional useFdk "--enable-fdk-aac"
++ optional stdenv.isDarwin "--disable-xcode" ++ optional stdenv.isDarwin "--disable-xcode"
++ optional (stdenv.isx86_32 || stdenv.isx86_64) "--harden"; ++ optional stdenv.hostPlatform.isx86 "--harden";
# NOTE: 2018-12-27: Check NixOS HandBrake test if changing # NOTE: 2018-12-27: Check NixOS HandBrake test if changing
NIX_LDFLAGS = [ "-lx265" ]; NIX_LDFLAGS = [ "-lx265" ];

View File

@ -22,13 +22,13 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "qmplay2"; pname = "qmplay2";
version = "22.03.19"; version = "22.06.16";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "zaps166"; owner = "zaps166";
repo = "QMPlay2"; repo = "QMPlay2";
rev = version; rev = version;
sha256 = "sha256-+EIv74dMm0zxZcCfa5wR6FJNJl5Xaes+/dCRQEBqFeo="; sha256 = "sha256-nSlmbBCfN+yZlCcgTujBSkZc1uOO0wYpMPUwgLudJEY=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -0,0 +1,53 @@
{ lib
, stdenv
, fetchFromGitHub
, glib
, meson
, ninja
, libevdev
, json-glib
, cairo
, pango
, libinput
, gtk4
, wrapGAppsHook
, libxkbcommon
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "showmethekey";
version = "1.7.3";
src = fetchFromGitHub {
owner = "AlynxZhou";
repo = "showmethekey";
rev = "v${version}";
sha256 = "sha256-hq4X4dG25YauMjsNXC6Flco9pEpVj3EM2JiFWbRrPaA=";
};
nativeBuildInputs = [
glib
meson
ninja
cairo
pango
json-glib
pkg-config
libevdev
libinput
libxkbcommon
wrapGAppsHook
];
buildInputs = [
gtk4
];
meta = with lib; {
homepage = "https://showmethekey.alynx.one/";
description = "Show keys you typed on screen";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ ocfox ];
};
}

View File

@ -31,6 +31,7 @@
, libkate , libkate
, libmad , libmad
, libmatroska , libmatroska
, libmodplug
, libmtp , libmtp
, liboggz , liboggz
, libopus , libopus
@ -79,7 +80,6 @@
let let
inherit (lib) optionalString optional optionals; inherit (lib) optionalString optional optionals;
hostIsAarch = stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "${optionalString onlyLibVLC "lib"}vlc"; pname = "${optionalString onlyLibVLC "lib"}vlc";
@ -122,6 +122,7 @@ stdenv.mkDerivation rec {
libmad libmad
libmatroska libmatroska
libmtp libmtp
libmodplug
liboggz liboggz
libopus libopus
libplacebo libplacebo
@ -157,7 +158,7 @@ stdenv.mkDerivation rec {
xcbutilkeysyms xcbutilkeysyms
xlibsWrapper xlibsWrapper
]) ])
++ optional (!hostIsAarch && !onlyLibVLC) live555 ++ optional (!stdenv.hostPlatform.isAarch && !onlyLibVLC) live555
++ optional jackSupport libjack2 ++ optional jackSupport libjack2
++ optionals chromecastSupport [ libmicrodns protobuf ] ++ optionals chromecastSupport [ libmicrodns protobuf ]
++ optionals skins2Support (with xorg; [ ++ optionals skins2Support (with xorg; [
@ -182,7 +183,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
LIVE555_PREFIX = if hostIsAarch then null else live555; LIVE555_PREFIX = if stdenv.hostPlatform.isAarch then null else live555;
# vlc depends on a c11-gcc wrapper script which we don't have so we need to # vlc depends on a c11-gcc wrapper script which we don't have so we need to
# set the path to the compiler # set the path to the compiler

View File

@ -2,16 +2,16 @@
buildGoModule rec { buildGoModule rec {
pname = "docker-compose"; pname = "docker-compose";
version = "2.7.0"; version = "2.8.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "docker"; owner = "docker";
repo = "compose"; repo = "compose";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-cx2Qn5NHQgs2iJ1SDyTdptHSyPUhx4SpCTfvjUwldfI="; sha256 = "sha256-EayVmFBlUrBr9xJKebJ+lBdiylub/upzd34ecBPkO8Q=";
}; };
vendorSha256 = "sha256-8CvtqnXSKoK/SA0tc/0Duv3pmYT69/3a/HFvAr4KNJo="; vendorSha256 = "sha256-7sJIzY1fXwMe8cowv7bThOOUd/7cLYPed6RFal2XKHk=";
ldflags = [ "-X github.com/docker/compose/v2/internal.Version=${version}" "-s" "-w" ]; ldflags = [ "-X github.com/docker/compose/v2/internal.Version=${version}" "-s" "-w" ];

View File

@ -3,7 +3,6 @@
, libpng, glib, lvm2, libXrandr, libXinerama, libopus, qtbase, qtx11extras , libpng, glib, lvm2, libXrandr, libXinerama, libopus, qtbase, qtx11extras
, qttools, qtsvg, qtwayland, pkg-config, which, docbook_xsl, docbook_xml_dtd_43 , qttools, qtsvg, qtwayland, pkg-config, which, docbook_xsl, docbook_xml_dtd_43
, alsa-lib, curl, libvpx, nettools, dbus, substituteAll, gsoap, zlib , alsa-lib, curl, libvpx, nettools, dbus, substituteAll, gsoap, zlib
, fetchpatch
# If open-watcom-bin is not passed, VirtualBox will fall back to use # If open-watcom-bin is not passed, VirtualBox will fall back to use
# the shipped alternative sources (assembly). # the shipped alternative sources (assembly).
, open-watcom-bin , open-watcom-bin
@ -24,14 +23,14 @@ let
buildType = "release"; buildType = "release";
# Use maintainers/scripts/update.nix to update the version and all related hashes or # Use maintainers/scripts/update.nix to update the version and all related hashes or
# change the hashes in extpack.nix and guest-additions/default.nix as well manually. # change the hashes in extpack.nix and guest-additions/default.nix as well manually.
version = "6.1.34"; version = "6.1.36";
in stdenv.mkDerivation { in stdenv.mkDerivation {
pname = "virtualbox"; pname = "virtualbox";
inherit version; inherit version;
src = fetchurl { src = fetchurl {
url = "https://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2"; url = "https://download.virtualbox.org/virtualbox/${version}/VirtualBox-${version}.tar.bz2";
sha256 = "9c3ce1829432e5b8374f950698587038f45fb0492147dc200e59edb9bb75eb49"; sha256 = "e47942e42892c13c621869865e2b7b320340154f0fa74ecbdaf18fdaf70ef047";
}; };
outputs = [ "out" "modsrc" ]; outputs = [ "out" "modsrc" ];
@ -98,15 +97,6 @@ in stdenv.mkDerivation {
./qtx11extras.patch ./qtx11extras.patch
# https://github.com/NixOS/nixpkgs/issues/123851 # https://github.com/NixOS/nixpkgs/issues/123851
./fix-audio-driver-loading.patch ./fix-audio-driver-loading.patch
# NOTE: both patches below should be removed when updating to 6.1.35
# https://www.virtualbox.org/ticket/20914#comment:15
(fetchpatch {
url = "https://www.virtualbox.org/raw-attachment/ticket/20914/vbox-linux-5.19.patch";
hash = "sha512-NNiMf8kUuM/PimrQCOacYLkrf7UFPh6ZdPsXKyLlsqWfWQXkG92Fv3qZXvg8weE1Z/SBsFTuHICEI4b4l1wZFw==";
extraPrefix = "/";
})
# https://www.virtualbox.org/ticket/20904#comment:22
./ffreestanding.patch
]; ];
postPatch = '' postPatch = ''

View File

@ -1,4 +1,4 @@
{fetchurl, lib, virtualbox}: { fetchurl, lib, virtualbox }:
with lib; with lib;
@ -12,7 +12,7 @@ fetchurl rec {
# Manually sha256sum the extensionPack file, must be hex! # Manually sha256sum the extensionPack file, must be hex!
# Thus do not use `nix-prefetch-url` but instead plain old `sha256sum`. # Thus do not use `nix-prefetch-url` but instead plain old `sha256sum`.
# Checksums can also be found at https://www.virtualbox.org/download/hashes/${version}/SHA256SUMS # Checksums can also be found at https://www.virtualbox.org/download/hashes/${version}/SHA256SUMS
let value = "d7856f0688b6d2ed1e8bff0b367efa952068b03fa5a3a29b46db08cfd5d9a810"; let value = "3c84f0177a47a1969aff7c98e01ddceedd50348f56cc52d63f4c2dd38ad2ca75";
in assert (builtins.stringLength value) == 64; value; in assert (builtins.stringLength value) == 64; value;
meta = { meta = {

View File

@ -1,20 +0,0 @@
diff --git a/Config.kmk b/Config.kmk
index 3df197404..4c6bd76bb 100644
--- a/Config.kmk
+++ b/Config.kmk
@@ -4503,11 +4504,14 @@ ifeq ($(VBOX_LDR_FMT),elf)
TEMPLATE_VBoxR0_TOOL = $(VBOX_GCC_TOOL)
TEMPLATE_VBoxR0_CFLAGS = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) \
$(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions \
- $(VBOX_GCC_fno-stack-protector) -fno-common $(VBOX_GCC_fvisibility-hidden) -std=gnu99 $(VBOX_GCC_IPRT_FMT_CHECK)
+ $(VBOX_GCC_fno-stack-protector) -fno-common -ffreestanding $(VBOX_GCC_fvisibility-hidden) -std=gnu99 $(VBOX_GCC_IPRT_FMT_CHECK)
TEMPLATE_VBoxR0_CXXFLAGS = -fno-pie -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_CXX) \
$(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions \
$(VBOX_GCC_fno-stack-protector) -fno-common $(VBOX_GCC_fvisibility-inlines-hidden) $(VBOX_GCC_fvisibility-hidden) \
-fno-rtti $(VBOX_GCC_IPRT_FMT_CHECK)
+ if $(VBOX_GCC_VERSION_CC) >= 40500 # 4.1.2 complains, 4.5.2 is okay, didn't check which version inbetween made it okay with g++.
+TEMPLATE_VBoxR0_CXXFLAGS += -ffreestanding
+ endif
TEMPLATE_VBoxR0_CFLAGS.amd64 = -m64 -mno-red-zone -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables -ffreestanding
TEMPLATE_VBoxR0_CXXFLAGS.amd64 = -m64 -mno-red-zone -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fasynchronous-unwind-tables
TEMPLATE_VBoxR0_CXXFLAGS.freebsd = -ffreestanding

View File

@ -23,7 +23,7 @@ in stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "http://download.virtualbox.org/virtualbox/${version}/VBoxGuestAdditions_${version}.iso"; url = "http://download.virtualbox.org/virtualbox/${version}/VBoxGuestAdditions_${version}.iso";
sha256 = "88f86fa0e6970b6a7c80d714b7a91a8c425ff8ef53a3e73fc80781191a87257b"; sha256 = "c987cdc8c08c579f56d921c85269aeeac3faf636babd01d9461ce579c9362cdd";
}; };
KERN_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"; KERN_DIR = "${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
@ -148,6 +148,6 @@ in stdenv.mkDerivation rec {
license = "GPL"; license = "GPL";
maintainers = [ lib.maintainers.sander ]; maintainers = [ lib.maintainers.sander ];
platforms = [ "i686-linux" "x86_64-linux" ]; platforms = [ "i686-linux" "x86_64-linux" ];
broken = kernel.kernelAtLeast (if stdenv.hostPlatform.is32bit then "5.10" else "5.17"); broken = stdenv.hostPlatform.is32bit && (kernel.kernelAtLeast "5.10");
}; };
} }

View File

@ -21,13 +21,13 @@ in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dwl"; pname = "dwl";
version = "0.2.2"; version = "0.3.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "djpohly"; owner = "djpohly";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-T2GqDehBNO8eublqZUmA5WADjnwElzT+bp9Dp1bqSgg="; hash = "sha256-VHxBjjnzJNmtJxrm3ywJzvt2bNHGk/Cx8TICw6SaoiQ=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];

View File

@ -40,13 +40,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "icewm"; pname = "icewm";
version = "2.9.6"; version = "2.9.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ice-wm"; owner = "ice-wm";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-qC8gEVJ/cmsEbF8jMzv7zyvVcjlbXhgHU3ixe7RLcnA="; hash = "sha256-SjLXPlwL3tMBD7RCJkL60lqcld/ZXIxgjeNrAn8A6KU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -21,13 +21,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "labwc"; pname = "labwc";
version = "0.5.0"; version = "0.5.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "labwc"; owner = "labwc";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-G0EQuXSHftl4JLXKIro+tmhbApwAhlzcjPEL7DP6LHk="; hash = "sha256-YD2bGxa7uss6KRvOGM0kn8dM+277ubaYeOB7ugRZCcY=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -70,6 +70,7 @@ let
dynamicLinker = dynamicLinker =
/**/ if sharedLibraryLoader == null then null /**/ if sharedLibraryLoader == null then null
else if targetPlatform.libc == "musl" then "${sharedLibraryLoader}/lib/ld-musl-*" else if targetPlatform.libc == "musl" then "${sharedLibraryLoader}/lib/ld-musl-*"
else if targetPlatform.libc == "uclibc" then "${sharedLibraryLoader}/lib/ld*-uClibc.so.1"
else if (targetPlatform.libc == "bionic" && targetPlatform.is32bit) then "/system/bin/linker" else if (targetPlatform.libc == "bionic" && targetPlatform.is32bit) then "/system/bin/linker"
else if (targetPlatform.libc == "bionic" && targetPlatform.is64bit) then "/system/bin/linker64" else if (targetPlatform.libc == "bionic" && targetPlatform.is64bit) then "/system/bin/linker64"
else if targetPlatform.libc == "nblibc" then "${sharedLibraryLoader}/libexec/ld.elf_so" else if targetPlatform.libc == "nblibc" then "${sharedLibraryLoader}/libexec/ld.elf_so"

View File

@ -47,13 +47,13 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "openmoji"; pname = "openmoji";
version = "13.1.0"; version = "14.0.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hfg-gmuend"; owner = "hfg-gmuend";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-7G6a+LFq79njyPhnDhhSJ98Smw5fWlfcsFj6nWBPsSk="; sha256 = "sha256-XnSRSlWXOMeSaO6dKaOloRg3+sWS4BSaro4bPqOyKmE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "4th"; pname = "4th";
version = "3.64.0"; version = "3.64.1";
src = fetchurl { src = fetchurl {
url = "https://sourceforge.net/projects/forth-4th/files/${pname}-${version}/${pname}-${version}-unix.tar.gz"; url = "https://sourceforge.net/projects/forth-4th/files/${pname}-${version}/${pname}-${version}-unix.tar.gz";
hash = "sha256-wJBekjFsFRIkhY/P/yHBQ8he+k+fGyrePGTP2Yjgpqg="; hash = "sha256-+W6nTNsqrf3Dvr+NbSz3uJdrXVbBI3OHR5v/rs7en+M=";
}; };
patches = [ patches = [

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "closure-compiler"; pname = "closure-compiler";
version = "20220601"; version = "20220719";
src = fetchurl { src = fetchurl {
url = "mirror://maven/com/google/javascript/closure-compiler/v${version}/closure-compiler-v${version}.jar"; url = "mirror://maven/com/google/javascript/closure-compiler/v${version}/closure-compiler-v${version}.jar";
sha256 = "sha256-S061TQcvLRP1tw+i0XGcpU1cpA6mhISnCjAFV/Y+lLg="; sha256 = "sha256-eEWNhMUjp+iBB9uzVB430kAfkojtKx2DTUGwpxMc+Us=";
}; };
dontUnpack = true; dontUnpack = true;

View File

@ -15,8 +15,8 @@ let
Don't change these values! They will be updated by the update script, see ./update.nix. Don't change these values! They will be updated by the update script, see ./update.nix.
*/ */
graalvm11-ce-release-version = "22.1.0"; graalvm11-ce-release-version = "22.2.0";
graalvm17-ce-release-version = "22.1.0"; graalvm17-ce-release-version = "22.2.0";
products = [ products = [
"graalvm-ce" "graalvm-ce"

View File

@ -1,42 +1,42 @@
{ {
"darwin-aarch64": { "darwin-aarch64": {
"graalvm-ce|java11|22.1.0": { "graalvm-ce|java11|22.2.0": {
"sha256": "06bc19a0b1e93aa3df5e15c08e97f8cef624cb6070eeae40a69a51ec7fd41152", "sha256": "ee513cec2ef7b34ae6fbb8a3015c227ab2a24bfb2771c16152f15a1846df01f4",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java11-darwin-aarch64-22.1.0.tar.gz" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/graalvm-ce-java11-darwin-aarch64-22.2.0.tar.gz"
}, },
"native-image-installable-svm|java11|22.1.0": { "native-image-installable-svm|java11|22.2.0": {
"sha256": "21f84ccf7b979dccc9091032fe76b5737b38e0092f282107cef75143dadb3bdb", "sha256": "aba76d671017f93cdaae5102607d0bc7a1398adc5de8a4b1e308fa366d5983f9",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/native-image-installable-svm-java11-darwin-aarch64-22.1.0.jar" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/native-image-installable-svm-java11-darwin-aarch64-22.2.0.jar"
} }
}, },
"darwin-amd64": { "darwin-amd64": {
"graalvm-ce|java11|22.1.0": { "graalvm-ce|java11|22.2.0": {
"sha256": "c4c9df94ca47b83b582758b87d39042732ba0193fc63f1ab93f6818005a1fe6b", "sha256": "3c6aca6faefa9e1f73de45fc56cc07d6f7864f63ce0b95148002dadb8f78cd86",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java11-darwin-amd64-22.1.0.tar.gz" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/graalvm-ce-java11-darwin-amd64-22.2.0.tar.gz"
}, },
"native-image-installable-svm|java11|22.1.0": { "native-image-installable-svm|java11|22.2.0": {
"sha256": "e0758687f4bd46f15fcee9b0a5bdd65d702ec81c41d465ee7229d3f4465bcf13", "sha256": "de9bf830d000a54934a01149691a9a8d4ef6e33414776abd14f95c65b149c908",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/native-image-installable-svm-java11-darwin-amd64-22.1.0.jar" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/native-image-installable-svm-java11-darwin-amd64-22.2.0.jar"
} }
}, },
"linux-aarch64": { "linux-aarch64": {
"graalvm-ce|java11|22.1.0": { "graalvm-ce|java11|22.2.0": {
"sha256": "050a4d471247d91935f7f485e92d678f0163e1d6209e26e8fe75d7c924f73e71", "sha256": "1ab64b35ed2478160bc6725d13ff5a2b9e31676b59ea3aaa9aca7a3a3db47132",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java11-linux-aarch64-22.1.0.tar.gz" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/graalvm-ce-java11-linux-aarch64-22.2.0.tar.gz"
}, },
"native-image-installable-svm|java11|22.1.0": { "native-image-installable-svm|java11|22.2.0": {
"sha256": "12715793b223ce1db7ec7d0a339f0b578a0c9fb6dcc6607044e5af4fd33b25a7", "sha256": "0454b699ad969791984f4d1200c1834decb33c1f1e15e95b35f8f484b18c7783",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/native-image-installable-svm-java11-linux-aarch64-22.1.0.jar" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/native-image-installable-svm-java11-linux-aarch64-22.2.0.jar"
} }
}, },
"linux-amd64": { "linux-amd64": {
"graalvm-ce|java11|22.1.0": { "graalvm-ce|java11|22.2.0": {
"sha256": "78c628707007bb97b09562932ee16f50beb1c3fa4a36e4311a0465a4a718e683", "sha256": "882363c75d1b1782a48bbf7dd8b155ab231b0957fd5885941376d90b69f21b9e",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java11-linux-amd64-22.1.0.tar.gz" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/graalvm-ce-java11-linux-amd64-22.2.0.tar.gz"
}, },
"native-image-installable-svm|java11|22.1.0": { "native-image-installable-svm|java11|22.2.0": {
"sha256": "36e4a2a9a73a19b03883f9e783bc8bde7c214bb0fa4b617379cb81798de425bf", "sha256": "84e5fb2391272e69f3e08f385b178d314b9b096d7837277a67fcdc597a4e1ca3",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/native-image-installable-svm-java11-linux-amd64-22.1.0.jar" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/native-image-installable-svm-java11-linux-amd64-22.2.0.jar"
} }
} }
} }

View File

@ -1,42 +1,42 @@
{ {
"darwin-aarch64": { "darwin-aarch64": {
"graalvm-ce|java17|22.1.0": { "graalvm-ce|java17|22.2.0": {
"sha256": "06075cd390bd261721392cd6fd967b1d28c0500d1b5625272ea906038e5cd533", "sha256": "cfbeb38cd707a330048ab2140cb185176201c5cb654df752fcb4bd95e899b4ec",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java17-darwin-aarch64-22.1.0.tar.gz" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/graalvm-ce-java17-darwin-aarch64-22.2.0.tar.gz"
}, },
"native-image-installable-svm|java17|22.1.0": { "native-image-installable-svm|java17|22.2.0": {
"sha256": "beabecdd5b87e7536772d4dfe70abf4c5dd9847e87615464cf309138d21c39af", "sha256": "c6584429fe443f5415a7ec0545072b069f2e10bef1dbd6e7cb7fdec6ddb89b62",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/native-image-installable-svm-java17-darwin-aarch64-22.1.0.jar" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/native-image-installable-svm-java17-darwin-aarch64-22.2.0.jar"
} }
}, },
"darwin-amd64": { "darwin-amd64": {
"graalvm-ce|java17|22.1.0": { "graalvm-ce|java17|22.2.0": {
"sha256": "b9327fa73531a822d9a27d25980396353869eefbd73fdcef89b4fceb9f529c75", "sha256": "b92b6f5f7f11282f20c8f8b94ea1c16d776cbadd7b254119836a7ace9f513b0d",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java17-darwin-amd64-22.1.0.tar.gz" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/graalvm-ce-java17-darwin-amd64-22.2.0.tar.gz"
}, },
"native-image-installable-svm|java17|22.1.0": { "native-image-installable-svm|java17|22.2.0": {
"sha256": "e6bfe208bb28cd1d98da55e00fa705890a7f69286b919947b07d18cc9bb9c270", "sha256": "a751d0c0dcdc7e06dd0166d731a482a6937f36a1b69ef62f9e9f443922e85861",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/native-image-installable-svm-java17-darwin-amd64-22.1.0.jar" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/native-image-installable-svm-java17-darwin-amd64-22.2.0.jar"
} }
}, },
"linux-aarch64": { "linux-aarch64": {
"graalvm-ce|java17|22.1.0": { "graalvm-ce|java17|22.2.0": {
"sha256": "05128e361ed44beebc89495faaa504b0b975bf93aa5e512e217b3cf5e42dfada", "sha256": "3025cc887bdaa088c89601b42931abc61dfd108aaad386abee8c1e08c913504d",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java17-linux-aarch64-22.1.0.tar.gz" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/graalvm-ce-java17-linux-aarch64-22.2.0.tar.gz"
}, },
"native-image-installable-svm|java17|22.1.0": { "native-image-installable-svm|java17|22.2.0": {
"sha256": "6e10f6953ec8b9509c7a7d0194d57f265cf2a05dcb8f3272a6a8e847bda49cda", "sha256": "eeac78046e059e77542eec1fac7c0423bf5fa73eb6fb01b25100d8a6f81eecc0",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/native-image-installable-svm-java17-linux-aarch64-22.1.0.jar" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/native-image-installable-svm-java17-linux-aarch64-22.2.0.jar"
} }
}, },
"linux-amd64": { "linux-amd64": {
"graalvm-ce|java17|22.1.0": { "graalvm-ce|java17|22.2.0": {
"sha256": "f11d46098efbf78465a875c502028767e3de410a31e45d92a9c5cf5046f42aa2", "sha256": "cd903566d030bf44a8c5c0f50914fc9c9d89cb2954e1f90512b137a0bfedc3ca",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/graalvm-ce-java17-linux-amd64-22.1.0.tar.gz" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/graalvm-ce-java17-linux-amd64-22.2.0.tar.gz"
}, },
"native-image-installable-svm|java17|22.1.0": { "native-image-installable-svm|java17|22.2.0": {
"sha256": "d81eecea15ebbf4f24850860c14104eaf6f8ae74574330e22afac533b8f96738", "sha256": "74656070429f8b24dd6770c2d274f272542116e3963291de74abed74c38ed08a",
"url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.1.0/native-image-installable-svm-java17-linux-amd64-22.1.0.jar" "url": "https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.2.0/native-image-installable-svm-java17-linux-amd64-22.2.0.jar"
} }
} }
} }

View File

@ -5,13 +5,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "jwasm"; pname = "jwasm";
version = "2.14"; version = "2.15";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Baron-von-Riedesel"; owner = "Baron-von-Riedesel";
repo = "JWasm"; repo = "JWasm";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-BUSsF73Q2vq6tF/YHMUyAmmFE/WWVQLRFJZkOD8T7f8="; hash = "sha256-ef4uEtEpnqYGhFmxuefJ40zyOuHsiPOLpH/52i7a7KI=";
}; };
outputs = [ "out" "doc" ]; outputs = [ "out" "doc" ];

View File

@ -6,14 +6,14 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dxa"; pname = "dxa";
version = "0.1.4"; version = "0.1.5";
src = fetchurl { src = fetchurl {
urls = [ urls = [
"https://www.floodgap.com/retrotech/xa/dists/${pname}-${version}.tar.gz" "https://www.floodgap.com/retrotech/xa/dists/${pname}-${version}.tar.gz"
"https://www.floodgap.com/retrotech/xa/dists/unsupported/${pname}-${version}.tar.gz" "https://www.floodgap.com/retrotech/xa/dists/unsupported/${pname}-${version}.tar.gz"
]; ];
hash = "sha256-C0rgwK51Ij9EZCm9GeiVnWIkEkse0d60ok8G9hm2a5U="; hash = "sha256-jkDtd4FlgfmtlaysLtaaL7KseFDkM9Gc1oQZOkWCZ5k=";
}; };
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];

View File

@ -12,13 +12,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "openfpgaloader"; pname = "openfpgaloader";
version = "0.8.0"; version = "0.9.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "trabucayre"; owner = "trabucayre";
repo = "openFPGALoader"; repo = "openFPGALoader";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-8AP4EJ+msOf1lstahyOyalI5dtS2ri7djN4zdN36Kfg="; sha256 = "sha256-GPPycZTijEMXWgxxtPEhiDJk7FelQcwIGFbbrOHna+w=";
}; };
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [ cmake pkg-config ];

View File

@ -1,8 +1,8 @@
# ARM-SPECIFIC OVERRIDES FOR THE HASKELL PACKAGE SET IN NIXPKGS # ARM-SPECIFIC OVERRIDES FOR THE HASKELL PACKAGE SET IN NIXPKGS
# #
# This extension is applied to all haskell package sets in nixpkgs # This extension is applied to all haskell package sets in nixpkgs if
# if `stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64` # `stdenv.hostPlatform.isAarch` to apply arm specific workarounds or
# to apply arm specific workarounds or fixes. # fixes.
# #
# The file is split into three parts: # The file is split into three parts:
# #

View File

@ -21,8 +21,7 @@ let
inherit stdenv haskellLib ghc buildHaskellPackages extensible-self all-cabal-hashes; inherit stdenv haskellLib ghc buildHaskellPackages extensible-self all-cabal-hashes;
}; };
isArm = with stdenv.hostPlatform; isAarch64 || isAarch32; platformConfigurations = lib.optionals stdenv.hostPlatform.isAarch [
platformConfigurations = lib.optionals isArm [
(configurationArm { inherit pkgs haskellLib; }) (configurationArm { inherit pkgs haskellLib; })
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
(configurationDarwin { inherit pkgs haskellLib; }) (configurationDarwin { inherit pkgs haskellLib; })

View File

@ -2,11 +2,11 @@
buildGraalvmNativeImage rec { buildGraalvmNativeImage rec {
pname = "babashka"; pname = "babashka";
version = "0.8.157"; version = "0.9.160";
src = fetchurl { src = fetchurl {
url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar"; url = "https://github.com/babashka/${pname}/releases/download/v${version}/${pname}-${version}-standalone.jar";
sha256 = "sha256-OxmBRtYH6MNlaFruvT7O1sPHSuUOUrivtPXtTwnFuz4="; sha256 = "sha256-mLP9Jg18iNj4FMDAoa9n3jf5A3G+JekywDJBHM4HEwc=";
}; };
executable = "bb"; executable = "bb";

View File

@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
# emulating build_all.sh configuration variables # emulating build_all.sh configuration variables
jplatform = jplatform =
if stdenv.isDarwin then "darwin" if stdenv.isDarwin then "darwin"
else if (stdenv.isAarch32 || stdenv.isAarch64) then "raspberry" else if stdenv.hostPlatform.isAarch then "raspberry"
else if stdenv.isLinux then "linux" else if stdenv.isLinux then "linux"
else "unsupported"; else "unsupported";

View File

@ -0,0 +1,24 @@
{ lib, stdenv, fetchFromGitHub, cmake, libuuid }:
stdenv.mkDerivation rec {
pname = "crossguid";
version = "unstable-2019-05-29";
src = fetchFromGitHub {
owner = "graeme-hill";
repo = pname;
rev = "ca1bf4b810e2d188d04cb6286f957008ee1b7681";
hash = "sha256-37tKPDo4lukl/aaDWWSQYfsBNEnDjE7t6OnEZjBhcvQ=";
};
nativeBuildInputs = [ cmake ];
buildInputs = lib.optional stdenv.isLinux libuuid;
meta = with lib; {
description = "Lightweight cross platform C++ GUID/UUID library";
license = licenses.mit;
homepage = "https://github.com/graeme-hill/crossguid";
maintainers = with maintainers; [ lilyinstarlight ];
platforms = platforms.unix;
};
}

View File

@ -69,7 +69,7 @@ stdenv.mkDerivation rec {
patchShebangs ../test/ patchShebangs ../test/
mkdir ../test/tmp mkdir ../test/tmp
${lib.optionalString (stdenv.isAarch64 || stdenv.isAarch32) '' ${lib.optionalString stdenv.hostPlatform.isAarch ''
# Fix tests on arm # Fix tests on arm
# https://github.com/Exiv2/exiv2/issues/933 # https://github.com/Exiv2/exiv2/issues/933
rm -f ../tests/bugfixes/github/test_CVE_2018_12265.py rm -f ../tests/bugfixes/github/test_CVE_2018_12265.py

View File

@ -0,0 +1,37 @@
{ lib, stdenv, fetchFromGitHub, python3, cmake, libglvnd, libGLU }:
stdenv.mkDerivation rec {
pname = "gl3w";
version = "unstable-2022-03-24";
src = fetchFromGitHub {
owner = "skaslev";
repo = pname;
rev = "5f8d7fd191ba22ff2b60c1106d7135bb9a335533";
hash = "sha256-qV/PZmaP5iCHhIzTA2bE4d1RMB6LzRbTsB5gWVvi9bU=";
};
nativeBuildInputs = [ python3 cmake ];
# gl3w installs a CMake config that when included expects to be able to
# build and link against both of these libraries
# (the gl3w generated C file gets compiled into the downstream target)
propagatedBuildInputs = [ libglvnd libGLU ];
dontUseCmakeBuildDir = true;
# These files must be copied rather than linked since they are considered
# outputs for the custom command, and CMake expects to be able to touch them
preConfigure = ''
mkdir -p include/{GL,KHR}
cp ${libglvnd.dev}/include/GL/glcorearb.h include/GL/glcorearb.h
cp ${libglvnd.dev}/include/KHR/khrplatform.h include/KHR/khrplatform.h
'';
meta = with lib; {
description = "Simple OpenGL core profile loading";
homepage = "https://github.com/skaslev/gl3w";
license = licenses.unlicense;
maintainers = with maintainers; [ lilyinstarlight ];
platforms = platforms.unix;
};
}

View File

@ -29,11 +29,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
# tcmalloc uses libunwind in a way that works correctly only on non-ARM linux # tcmalloc uses libunwind in a way that works correctly only on non-ARM linux
buildInputs = lib.optional (stdenv.isLinux && !(stdenv.isAarch64 || stdenv.isAarch32)) libunwind; buildInputs = lib.optional (stdenv.isLinux && !stdenv.hostPlatform.isAarch) libunwind;
# Disable general dynamic TLS on AArch to support dlopen()'ing the library: # Disable general dynamic TLS on AArch to support dlopen()'ing the library:
# https://bugzilla.redhat.com/show_bug.cgi?id=1483558 # https://bugzilla.redhat.com/show_bug.cgi?id=1483558
configureFlags = lib.optional (stdenv.isAarch32 || stdenv.isAarch64) configureFlags = lib.optional stdenv.hostPlatform.isAarch
"--disable-general-dynamic-tls"; "--disable-general-dynamic-tls";
prePatch = lib.optionalString stdenv.isDarwin '' prePatch = lib.optionalString stdenv.isDarwin ''

View File

@ -20,7 +20,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "grpc"; pname = "grpc";
version = "1.47.0"; # N.B: if you change this, please update: version = "1.48.0"; # N.B: if you change this, please update:
# pythonPackages.grpcio-tools # pythonPackages.grpcio-tools
# pythonPackages.grpcio-status # pythonPackages.grpcio-status
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
owner = "grpc"; owner = "grpc";
repo = "grpc"; repo = "grpc";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-fMYAos0gQelFMPkpR0DdKr4wPX+nhZSSqeaU4URqgto="; hash = "sha256-cR+K3po/9XpYWe+sRXGwzvNAPChrWzYu5D4ygBTKKIQ=";
fetchSubmodules = true; fetchSubmodules = true;
}; };

View File

@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
"-Dnm-path=${stdenv.cc.targetPrefix}nm" "-Dnm-path=${stdenv.cc.targetPrefix}nm"
"-Dinstall-test-programs=true" "-Dinstall-test-programs=true"
"-Domap=true" "-Domap=true"
] ++ lib.optionals (stdenv.isAarch32 || stdenv.isAarch64) [ ] ++ lib.optionals stdenv.hostPlatform.isAarch [
"-Dtegra=true" "-Dtegra=true"
"-Detnaviv=true" "-Detnaviv=true"
]; ];

View File

@ -2,11 +2,11 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "okapi"; pname = "okapi";
version = "1.4.0"; version = "1.6.0";
src = fetchurl { src = fetchurl {
url = "https://github.com/trinsic-id/okapi/releases/download/v${version}/okapi-vendor-${version}.tar.gz"; url = "https://github.com/trinsic-id/okapi/releases/download/v${version}/okapi-vendor-${version}.tar.gz";
sha256 = "sha256-wNruDPjYHDJtpzQIly4da9rQg1ftdCVxRNNLkFsbKXs="; sha256 = "sha256-wszpCzh1VhqBlox7ywWi6WKUmxQUTsf5N5IiJumlEbM=";
}; };
cargoVendorDir = "vendor"; cargoVendorDir = "vendor";

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "openxr-loader"; pname = "openxr-loader";
version = "1.0.22"; version = "1.0.24";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "KhronosGroup"; owner = "KhronosGroup";
repo = "OpenXR-SDK-Source"; repo = "OpenXR-SDK-Source";
rev = "release-${version}"; rev = "release-${version}";
sha256 = "sha256-YaK7scnfXkxhRe/PKZukqHD9X70X0/QUDL0znTPbIBE="; sha256 = "sha256-levPWBSwfw1N2tcBqQXtXznA7dzQRqVf/Rp2owGUamE=";
}; };
nativeBuildInputs = [ cmake python3 pkg-config ]; nativeBuildInputs = [ cmake python3 pkg-config ];

View File

@ -0,0 +1,27 @@
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "platform-folders";
version = "4.2.0";
src = fetchFromGitHub {
owner = "sago007";
repo = "PlatformFolders";
rev = version;
hash = "sha256-ruhAP9kjwm6pIFJ5a6oy6VE5W39bWQO3qSrT5IUtiwA=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
];
meta = with lib; {
description = "A C++ library to look for standard platform directories so that you do not need to write platform-specific code";
homepage = "https://github.com/sago007/PlatformFolders";
license = licenses.mit;
maintainers = with maintainers; [ lilyinstarlight ];
platforms = platforms.all;
};
}

View File

@ -7,13 +7,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rapidfuzz-cpp"; pname = "rapidfuzz-cpp";
version = "1.0.4"; version = "1.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "maxbachmann"; owner = "maxbachmann";
repo = "rapidfuzz-cpp"; repo = "rapidfuzz-cpp";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-ocR88dgRo7dF7scATv8kPYmcK3R6a8DcoJfNHq1hZnM="; hash = "sha256-ltxOn8thAiYgi5rG6xYFSnPl20Uyf4mWs1Rcv3lP++E=";
}; };
patches = [ patches = [

View File

@ -8,13 +8,13 @@ assert enableShared || enableStatic;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "redis-plus-plus"; pname = "redis-plus-plus";
version = "1.3.3"; version = "1.3.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sewenew"; owner = "sewenew";
repo = "redis-plus-plus"; repo = "redis-plus-plus";
rev = version; rev = version;
sha256 = "sha256-k4q5YbbbKKHXcL0nndzJPshzXS20ARz4Tdy5cBg7kMc="; sha256 = "sha256-5tjadh3Ku7lrJn4tbi8TjTH6N0+QB2ER9xuO51cK/LU=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/sewenew/redis-plus-plus"; homepage = "https://github.com/sewenew/redis-plus-plus";
description = "Redis client written in C++"; description = "Redis client written in C++";
license = licenses.asl20; license = licenses.asl20;
platforms = platforms.linux; platforms = platforms.unix;
maintainers = with maintainers; [ wheelsandmetal ]; maintainers = with maintainers; [ wheelsandmetal ];
}; };
} }

View File

@ -15,13 +15,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rocksdb"; pname = "rocksdb";
version = "7.3.1"; version = "7.4.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "facebook"; owner = "facebook";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-5fh8hH6f0Mv9XQAoHYIiY019qkC5PuLS2qlE+ladWWM="; sha256 = "sha256-34pAAqUhHQiH0YuRl6a0zdn8p6hSAIJnZXIErm3SYFE=";
}; };
nativeBuildInputs = [ cmake ninja ]; nativeBuildInputs = [ cmake ninja ];

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "simdjson"; pname = "simdjson";
version = "2.2.0"; version = "2.2.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "simdjson"; owner = "simdjson";
repo = "simdjson"; repo = "simdjson";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-n+W5xvWC3sPSX0SF5x1ArUtWZayoyQRThgWWhRG4Fac="; sha256 = "sha256-PU6yTA2FXHcuSwr6oIU+cP7uYxkgggnj3FV2LbkS69w=";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -2,7 +2,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "simpleitk"; pname = "simpleitk";
version = "2.1.1"; version = "2.1.1.1";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
owner = "SimpleITK"; owner = "SimpleITK";
repo = "SimpleITK"; repo = "SimpleITK";
rev = "v${version}"; rev = "v${version}";
sha256 = "0ShUo9UVkliROIIR5bJtqlzESByfq9SQ1+Hy/40vJ50="; sha256 = "sha256-W53TbrgIwY9jj0GXz1LIrsBO9YL4VkH6531UYV0IqbE=";
}; };
nativeBuildInputs = [ cmake swig4 ]; nativeBuildInputs = [ cmake swig4 ];

View File

@ -1,4 +1,5 @@
{ lib, stdenv { lib
, stdenv
, fetchurl , fetchurl
, acl , acl
, cyrus_sasl , cyrus_sasl
@ -33,7 +34,7 @@
, vala , vala
, wayland-protocols , wayland-protocols
, zlib , zlib
, withPolkit ? true , withPolkit ? stdenv.isLinux
}: }:
# If this package is built with polkit support (withPolkit=true), # If this package is built with polkit support (withPolkit=true),
@ -59,13 +60,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "spice-gtk"; pname = "spice-gtk";
version = "0.40"; version = "0.41";
outputs = [ "out" "dev" "devdoc" "man" ]; outputs = [ "out" "dev" "devdoc" "man" ];
src = fetchurl { src = fetchurl {
url = "https://www.spice-space.org/download/gtk/${pname}-${version}.tar.xz"; url = "https://www.spice-space.org/download/gtk/${pname}-${version}.tar.xz";
sha256 = "sha256-I/X/f6gLdWR85zzaXq+LMi80Mtu7f286g5Y0YYrbztM="; sha256 = "sha256-2Pi1y+qRhHAu64zCdqZ9cqzbbjbnxzNJ+4RF5byglp8=";
}; };
postPatch = '' postPatch = ''
@ -95,7 +96,8 @@ stdenv.mkDerivation rec {
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
]; ];
buildInputs = [ buildInputs = [
@ -104,8 +106,6 @@ stdenv.mkDerivation rec {
gtk3 gtk3
json-glib json-glib
libcacard libcacard
libcap_ng
libdrm
libjpeg_turbo libjpeg_turbo
libopus libopus
libusb1 libusb1
@ -115,9 +115,15 @@ stdenv.mkDerivation rec {
pixman pixman
spice-protocol spice-protocol
usbredir usbredir
wayland-protocols
zlib zlib
] ++ lib.optionals withPolkit [ polkit acl ] ; ] ++ lib.optionals withPolkit [
polkit
acl
] ++ lib.optionals stdenv.isLinux [
libcap_ng
libdrm
wayland-protocols
];
PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions"; PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
@ -126,6 +132,8 @@ stdenv.mkDerivation rec {
"-Dusb-ids-path=${hwdata}/share/hwdata/usb.ids" "-Dusb-ids-path=${hwdata}/share/hwdata/usb.ids"
] ++ lib.optionals (!withPolkit) [ ] ++ lib.optionals (!withPolkit) [
"-Dpolkit=disabled" "-Dpolkit=disabled"
] ++ lib.optionals (!stdenv.isLinux) [
"-Dlibcap-ng=disabled"
]; ];
meta = with lib; { meta = with lib; {
@ -140,6 +148,6 @@ stdenv.mkDerivation rec {
homepage = "https://www.spice-space.org/"; homepage = "https://www.spice-space.org/";
license = licenses.lgpl21; license = licenses.lgpl21;
maintainers = [ maintainers.xeji ]; maintainers = [ maintainers.xeji ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -48,6 +48,6 @@ stdenv.mkDerivation rec {
homepage = "https://www.spice-space.org/usbredir.html"; homepage = "https://www.spice-space.org/usbredir.html";
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;
maintainers = with maintainers; [ offline ]; maintainers = with maintainers; [ offline ];
platforms = platforms.linux; platforms = platforms.unix;
}; };
} }

View File

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
preConfigure = lib.optionalString (stdenv.buildPlatform.isx86_64 || stdenv.hostPlatform.isi686) '' preConfigure = lib.optionalString (stdenv.buildPlatform.isx86_64 || stdenv.hostPlatform.isi686) ''
# `AS' is set to the binutils assembler, but we need nasm # `AS' is set to the binutils assembler, but we need nasm
unset AS unset AS
'' + lib.optionalString (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isAarch32) '' '' + lib.optionalString stdenv.hostPlatform.isAarch ''
export AS=$CC export AS=$CC
''; '';

View File

@ -85,7 +85,7 @@ buildPythonPackage rec {
"test_filename_without_dir" "test_filename_without_dir"
"test_overwrite" "test_overwrite"
"test_options" "test_options"
] ++ lib.optionals (stdenv.hostPlatform.isAarch32 || stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isRiscV) [ ] ++ lib.optionals (stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isRiscV) [
# unknown reason so far # unknown reason so far
# https://github.com/adobe-type-tools/afdko/issues/1425 # https://github.com/adobe-type-tools/afdko/issues/1425
"test_spec" "test_spec"

View File

@ -1,14 +1,14 @@
{ lib, buildPythonPackage, isPy27, fetchPypi, pytest, pytestCheckHook }: { lib, buildPythonPackage, isPy27, fetchPypi, pytest, pytestCheckHook }:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.2.0"; version = "0.3.0";
pname = "ci-info"; pname = "ci-info";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "05j6pamk8sd51qmvpkl3f7sxajmncrqm0cz6n6bqgsvzjwn66w6x"; sha256 = "sha256-H9UMvUAfKa3/7rGLBIniMtFqwadFisa8MW3qtq5TX7A=";
}; };
checkInputs = [ pytest pytestCheckHook ]; checkInputs = [ pytest pytestCheckHook ];

View File

@ -26,23 +26,16 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "django-silk"; pname = "django-silk";
version = "4.1.0"; version = "5.0.1";
# pypi tarball doesn't include test project # pypi tarball doesn't include test project
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jazzband"; owner = "jazzband";
repo = "django-silk"; repo = "django-silk";
rev = version; rev = version;
sha256 = "1km3hmx1sir0c5gqr2p1h2938slhxp2hzf10cb80q98mas8spjkn"; hash = "sha256-U2lj0B85cf2xu0o7enuLJB5YKaIt6gMvn+TgxleLslk=";
}; };
patches = lib.optional (pythonAtLeast "3.9") (fetchpatch {
# should be able to remove after 4.1.1
name = "python-3.9-support.patch";
url = "https://github.com/jazzband/django-silk/commit/134089e4cad7bd3b76fb0f70c423082cb7d2b34a.patch";
sha256 = "09c1xd9y33h3ibiv5w9af9d79c909rgc1g5sxpd4y232h5id3c8r";
});
# "test_time_taken" tests aren't suitable for reproducible execution, but django's # "test_time_taken" tests aren't suitable for reproducible execution, but django's
# test runner doesn't have an easy way to ignore tests - so instead prevent it from picking # test runner doesn't have an easy way to ignore tests - so instead prevent it from picking
# them up as tests # them up as tests
@ -62,8 +55,13 @@ buildPythonPackage rec {
checkInputs = [ freezegun contextlib2 networkx pydot factory_boy ]; checkInputs = [ freezegun contextlib2 networkx pydot factory_boy ];
checkPhase = '' checkPhase = ''
cd project runHook preCheck
DB=sqlite3 DB_NAME=db.sqlite3 ${python.interpreter} manage.py test
pushd project
DB_ENGINE=sqlite3 DB_NAME=':memory:' ${python.interpreter} manage.py test
popd # project
runHook postCheck
''; '';
meta = with lib; { meta = with lib; {

View File

@ -26,7 +26,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [ citeproc-py requests setuptools six ]; propagatedBuildInputs = [ citeproc-py requests setuptools six ];
checkInputs = [ contextlib2 pytest pytestCheckHook vcrpy ]; checkInputs = [ contextlib2 pytest pytestCheckHook vcrpy ];
disabledTests = [ "test_io" ];
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "duecredit" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/duecredit/duecredit"; homepage = "https://github.com/duecredit/duecredit";

View File

@ -29,7 +29,7 @@ buildPythonPackage rec {
# Tests fail due to numeric precision differences on ARM # Tests fail due to numeric precision differences on ARM
# See https://github.com/SethMMorton/fastnumbers/issues/28 # See https://github.com/SethMMorton/fastnumbers/issues/28
doCheck = !(stdenv.isAarch64 || stdenv.isAarch32); doCheck = !stdenv.hostPlatform.isAarch;
checkInputs = [ checkInputs = [
hypothesis hypothesis

View File

@ -9,14 +9,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "grpcio-status"; pname = "grpcio-status";
version = "1.47.0"; version = "1.48.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "c9ce3213e84c6fd8801c31aca3ea4a6b3453eaa40b93a6c0a23ea8999808fa00"; sha256 = "afac961fc3713889d3c48c11461aba49842ca62a54dfe8f346442046036e9856";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -2,11 +2,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "grpcio-tools"; pname = "grpcio-tools";
version = "1.47.0"; version = "1.48.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "f64b5378484be1d6ce59311f86174be29c8ff98d8d90f589e1c56d5acae67d3c"; sha256 = "dd7f757608e7dfae4ab2e7fc1e8951e6eb9526ebdc7ce90597329bc4c408c9a1";
}; };
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];

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