Merge staging-next into staging
This commit is contained in:
commit
b5b52a946a
|
@ -145,6 +145,7 @@ rec {
|
|||
else if final.isS390 && !final.isS390x then null
|
||||
else if final.isx86_64 then "x86_64"
|
||||
else if final.isx86 then "i386"
|
||||
else if final.isMips64 then "mips64${lib.optionalString final.isLittleEndian "el"}"
|
||||
else final.uname.processor;
|
||||
|
||||
# Name used by UEFI for architectures.
|
||||
|
|
|
@ -15573,6 +15573,15 @@
|
|||
githubId = 57180880;
|
||||
name = "Ansh Tyagi";
|
||||
};
|
||||
therealr5 = {
|
||||
email = "rouven@rfive.de";
|
||||
github = "therealr5";
|
||||
githubId = 72568063;
|
||||
name = "Rouven Seifert";
|
||||
keys = [{
|
||||
fingerprint = "1169 87A8 DD3F 78FF 8601 BF4D B95E 8FE6 B11C 4D09";
|
||||
}];
|
||||
};
|
||||
therishidesai = {
|
||||
email = "desai.rishi1@gmail.com";
|
||||
github = "therishidesai";
|
||||
|
|
|
@ -50,19 +50,22 @@ while (@ARGV) {
|
|||
}
|
||||
}
|
||||
|
||||
my $bucket;
|
||||
|
||||
# S3 setup.
|
||||
my $aws_access_key_id = $ENV{'AWS_ACCESS_KEY_ID'} or die "AWS_ACCESS_KEY_ID not set\n";
|
||||
my $aws_secret_access_key = $ENV{'AWS_SECRET_ACCESS_KEY'} or die "AWS_SECRET_ACCESS_KEY not set\n";
|
||||
if (not defined $ENV{DEBUG}) {
|
||||
# S3 setup.
|
||||
my $aws_access_key_id = $ENV{'AWS_ACCESS_KEY_ID'} or die "AWS_ACCESS_KEY_ID not set\n";
|
||||
my $aws_secret_access_key = $ENV{'AWS_SECRET_ACCESS_KEY'} or die "AWS_SECRET_ACCESS_KEY not set\n";
|
||||
|
||||
my $s3 = Net::Amazon::S3->new(
|
||||
{ aws_access_key_id => $aws_access_key_id,
|
||||
aws_secret_access_key => $aws_secret_access_key,
|
||||
retry => 1,
|
||||
host => "s3-eu-west-1.amazonaws.com",
|
||||
});
|
||||
my $s3 = Net::Amazon::S3->new(
|
||||
{ aws_access_key_id => $aws_access_key_id,
|
||||
aws_secret_access_key => $aws_secret_access_key,
|
||||
retry => 1,
|
||||
host => "s3-eu-west-1.amazonaws.com",
|
||||
});
|
||||
|
||||
my $bucket = $s3->bucket("nixpkgs-tarballs") or die;
|
||||
$bucket = $s3->bucket("nixpkgs-tarballs") or die;
|
||||
}
|
||||
|
||||
my $doWrite = 0;
|
||||
my $cacheFile = ($ENV{"HOME"} or die "\$HOME is not set") . "/.cache/nix/copy-tarballs";
|
||||
|
|
|
@ -345,6 +345,8 @@ In addition to numerous new and upgraded packages, this release has the followin
|
|||
`services.dnsmasq.extraConfig` will be deprecated when NixOS 22.11 reaches
|
||||
end of life.
|
||||
|
||||
- `kube3d` has now been renamed to `k3d` since the 3d editor that originally took that name has been dropped from nixpkgs. `kube3d` will continue to work as an alias for now.
|
||||
|
||||
- The `dokuwiki` service is now configured via `services.dokuwiki.sites.<name>.settings` attribute set; `extraConfig` has been removed.
|
||||
The `{aclUse,superUser,disableActions}` attributes have been renamed accordingly. `pluginsConfig` now only accepts an attribute set of booleans.
|
||||
Passing plain PHP is no longer possible.
|
||||
|
|
|
@ -7,6 +7,7 @@ import io
|
|||
import os
|
||||
import queue
|
||||
import re
|
||||
import select
|
||||
import shlex
|
||||
import shutil
|
||||
import socket
|
||||
|
@ -99,7 +100,7 @@ def _perform_ocr_on_screenshot(
|
|||
+ "-blur 1x65535"
|
||||
)
|
||||
|
||||
tess_args = f"-c debug_file=/dev/null --psm 11"
|
||||
tess_args = "-c debug_file=/dev/null --psm 11"
|
||||
|
||||
cmd = f"convert {magick_args} '{screenshot_path}' 'tiff:{screenshot_path}.tiff'"
|
||||
ret = subprocess.run(cmd, shell=True, capture_output=True)
|
||||
|
@ -154,6 +155,7 @@ class StartCommand:
|
|||
# qemu options
|
||||
qemu_opts = (
|
||||
" -device virtio-serial"
|
||||
# Note: virtconsole will map to /dev/hvc0 in Linux guests
|
||||
" -device virtconsole,chardev=shell"
|
||||
" -device virtio-rng-pci"
|
||||
" -serial stdio"
|
||||
|
@ -524,8 +526,10 @@ class Machine:
|
|||
if timeout is not None:
|
||||
timeout_str = f"timeout {timeout}"
|
||||
|
||||
# While sh is bash on NixOS, this is not the case for every distro.
|
||||
# We explicitely call bash here to allow for the driver to boot other distros as well.
|
||||
out_command = (
|
||||
f"{timeout_str} sh -c {shlex.quote(command)} | (base64 --wrap 0; echo)\n"
|
||||
f"{timeout_str} bash -c {shlex.quote(command)} | (base64 --wrap 0; echo)\n"
|
||||
)
|
||||
|
||||
assert self.shell
|
||||
|
@ -719,6 +723,15 @@ class Machine:
|
|||
self.wait_for_unit(jobname)
|
||||
|
||||
def connect(self) -> None:
|
||||
def shell_ready(timeout_secs: int) -> bool:
|
||||
"""We sent some data from the backdoor service running on the guest
|
||||
to indicate that the backdoor shell is ready.
|
||||
As soon as we read some data from the socket here, we assume that
|
||||
our root shell is operational.
|
||||
"""
|
||||
(ready, _, _) = select.select([self.shell], [], [], timeout_secs)
|
||||
return bool(ready)
|
||||
|
||||
if self.connected:
|
||||
return
|
||||
|
||||
|
@ -728,8 +741,11 @@ class Machine:
|
|||
assert self.shell
|
||||
|
||||
tic = time.time()
|
||||
self.shell.recv(1024)
|
||||
# TODO: Timeout
|
||||
# TODO: do we want to bail after a set number of attempts?
|
||||
while not shell_ready(timeout_secs=30):
|
||||
self.log("Guest root shell did not produce any data yet...")
|
||||
|
||||
self.log(self.shell.recv(1024).decode())
|
||||
toc = time.time()
|
||||
|
||||
self.log("connected to guest root shell")
|
||||
|
@ -950,7 +966,7 @@ class Machine:
|
|||
Prepares the machine to be reconnected which is useful if the
|
||||
machine was started with `allow_reboot = True`
|
||||
"""
|
||||
self.send_key(f"ctrl-alt-delete")
|
||||
self.send_key("ctrl-alt-delete")
|
||||
self.connected = False
|
||||
|
||||
def wait_for_x(self) -> None:
|
||||
|
|
|
@ -47,7 +47,7 @@ with lib;
|
|||
libva = super.libva-minimal;
|
||||
limesuite = super.limesuite.override { withGui = false; };
|
||||
mc = super.mc.override { x11Support = false; };
|
||||
mpv-unwrapped = super.mpv-unwrapped.override { sdl2Support = false; x11Support = false; };
|
||||
mpv-unwrapped = super.mpv-unwrapped.override { sdl2Support = false; x11Support = false; waylandSupport = false; };
|
||||
msmtp = super.msmtp.override { withKeyring = false; };
|
||||
neofetch = super.neofetch.override { x11Support = false; };
|
||||
networkmanager-fortisslvpn = super.networkmanager-fortisslvpn.override { withGnome = false; };
|
||||
|
|
|
@ -483,6 +483,7 @@ in
|
|||
Compression settings to use for the squashfs nix store.
|
||||
'';
|
||||
example = "zstd -Xcompression-level 6";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
isoImage.edition = mkOption {
|
||||
|
|
|
@ -8,6 +8,20 @@ with lib;
|
|||
{
|
||||
options = {
|
||||
|
||||
netboot.squashfsCompression = mkOption {
|
||||
default = with pkgs.stdenv.hostPlatform; "xz -Xdict-size 100% "
|
||||
+ lib.optionalString isx86 "-Xbcj x86"
|
||||
# Untested but should also reduce size for these platforms
|
||||
+ lib.optionalString isAarch "-Xbcj arm"
|
||||
+ lib.optionalString (isPower && is32bit && isBigEndian) "-Xbcj powerpc"
|
||||
+ lib.optionalString (isSparc) "-Xbcj sparc";
|
||||
description = lib.mdDoc ''
|
||||
Compression settings to use for the squashfs nix store.
|
||||
'';
|
||||
example = "zstd -Xcompression-level 6";
|
||||
type = types.str;
|
||||
};
|
||||
|
||||
netboot.storeContents = mkOption {
|
||||
example = literalExpression "[ pkgs.stdenv ]";
|
||||
description = lib.mdDoc ''
|
||||
|
@ -77,6 +91,7 @@ with lib;
|
|||
# Create the squashfs image that contains the Nix store.
|
||||
system.build.squashfsStore = pkgs.callPackage ../../../lib/make-squashfs.nix {
|
||||
storeContents = config.netboot.storeContents;
|
||||
comp = config.netboot.squashfsCompression;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ in
|
|||
source ${pkgs.fzf}/share/fzf/key-bindings.zsh
|
||||
'');
|
||||
|
||||
programs.zsh.ohMyZsh.plugins = optional (cfg.keybindings || cfg.fuzzyCompletion) [ "fzf" ];
|
||||
programs.zsh.ohMyZsh.plugins = lib.mkIf (cfg.keybindings || cfg.fuzzyCompletion) [ "fzf" ];
|
||||
};
|
||||
meta.maintainers = with maintainers; [ laalsaas ];
|
||||
}
|
||||
|
|
|
@ -41,6 +41,8 @@ let
|
|||
# This should be made configurable.
|
||||
#CHFN_RESTRICT frwh
|
||||
|
||||
# The default crypt() method, keep in sync with the PAM default
|
||||
ENCRYPT_METHOD YESCRYPT
|
||||
'';
|
||||
|
||||
mkSetuidRoot = source:
|
||||
|
|
|
@ -22,7 +22,7 @@ in
|
|||
# some may even be completely useless.
|
||||
config.security.apparmor.includes = {
|
||||
# This one is included by <tunables/global>
|
||||
# which is usualy included before any profile.
|
||||
# which is usually included before any profile.
|
||||
"abstractions/tunables/alias" = ''
|
||||
alias /bin -> /run/current-system/sw/bin,
|
||||
alias /lib/modules -> /run/current-system/kernel/lib/modules,
|
||||
|
|
|
@ -3,7 +3,7 @@ let
|
|||
cfg = config.security.tpm2;
|
||||
|
||||
# This snippet is taken from tpm2-tss/dist/tpm-udev.rules, but modified to allow custom user/groups
|
||||
# The idea is that the tssUser is allowed to acess the TPM and kernel TPM resource manager, while
|
||||
# The idea is that the tssUser is allowed to access the TPM and kernel TPM resource manager, while
|
||||
# the tssGroup is only allowed to access the kernel resource manager
|
||||
# Therefore, if either of the two are null, the respective part isn't generated
|
||||
udevRules = tssUser: tssGroup: ''
|
||||
|
|
|
@ -245,7 +245,7 @@ in
|
|||
|
||||
rm -f www
|
||||
${optionalString cfg.web-ui.enable ''
|
||||
ln -s ${cfg.web-ui.package}/lib/dist www
|
||||
ln -s ${cfg.web-ui.package}/ www
|
||||
''}
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -76,7 +76,7 @@ example:
|
|||
directory, which will be called postfix.nix and contains all exporter
|
||||
specific options and configuration:
|
||||
```
|
||||
# nixpgs/nixos/modules/services/prometheus/exporters/postfix.nix
|
||||
# nixpkgs/nixos/modules/services/prometheus/exporters/postfix.nix
|
||||
{ config, lib, pkgs, options }:
|
||||
|
||||
with lib;
|
||||
|
|
|
@ -93,7 +93,7 @@ in {
|
|||
`true`.
|
||||
|
||||
It does NOT apply to the daemon port nor the web UI port. To access those
|
||||
ports secuerly check the documentation
|
||||
ports securely check the documentation
|
||||
<https://dev.deluge-torrent.org/wiki/UserGuide/ThinClient#CreateSSHTunnel>
|
||||
or use a VPN or configure certificates for deluge.
|
||||
'';
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
Matomo is a real-time web analytics application. This module configures
|
||||
php-fpm as backend for Matomo, optionally configuring an nginx vhost as well.
|
||||
|
||||
An automatic setup is not suported by Matomo, so you need to configure Matomo
|
||||
An automatic setup is not supported by Matomo, so you need to configure Matomo
|
||||
itself in the browser-based Matomo setup.
|
||||
|
||||
## Database Setup {#module-services-matomo-database-setup}
|
||||
|
|
|
@ -429,7 +429,7 @@ in {
|
|||
|
||||
environment = env;
|
||||
|
||||
path = with pkgs; [ bashInteractive ffmpeg nodejs_16 openssl yarn python3 ];
|
||||
path = with pkgs; [ bashInteractive ffmpeg nodejs_18 openssl yarn python3 ];
|
||||
|
||||
script = ''
|
||||
#!/bin/sh
|
||||
|
@ -490,7 +490,7 @@ in {
|
|||
services.nginx = lib.mkIf cfg.configureNginx {
|
||||
enable = true;
|
||||
virtualHosts."${cfg.localDomain}" = {
|
||||
root = "/var/lib/peertube";
|
||||
root = "/var/lib/peertube/www";
|
||||
|
||||
# Application
|
||||
locations."/" = {
|
||||
|
@ -593,7 +593,7 @@ in {
|
|||
|
||||
# Bypass PeerTube for performance reasons.
|
||||
locations."~ ^/client/(assets/images/(icons/icon-36x36\.png|icons/icon-48x48\.png|icons/icon-72x72\.png|icons/icon-96x96\.png|icons/icon-144x144\.png|icons/icon-192x192\.png|icons/icon-512x512\.png|logo\.svg|favicon\.png|default-playlist\.jpg|default-avatar-account\.png|default-avatar-account-48x48\.png|default-avatar-video-channel\.png|default-avatar-video-channel-48x48\.png))$" = {
|
||||
tryFiles = "/www/client-overrides/$1 /www/client/$1 $1";
|
||||
tryFiles = "/client-overrides/$1 /client/$1 $1";
|
||||
priority = 1310;
|
||||
};
|
||||
|
||||
|
@ -859,7 +859,7 @@ in {
|
|||
home = cfg.package;
|
||||
};
|
||||
})
|
||||
(lib.attrsets.setAttrByPath [ cfg.user "packages" ] [ cfg.package peertubeEnv peertubeCli pkgs.ffmpeg pkgs.nodejs_16 pkgs.yarn ])
|
||||
(lib.attrsets.setAttrByPath [ cfg.user "packages" ] [ cfg.package peertubeEnv peertubeCli pkgs.ffmpeg pkgs.nodejs_18 pkgs.yarn ])
|
||||
(lib.mkIf cfg.redis.enableUnixSocket {${config.services.peertube.user}.extraGroups = [ "redis-peertube" ];})
|
||||
];
|
||||
|
||||
|
|
|
@ -72,11 +72,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf (cfg.enable || initrdCfg.enable) {
|
||||
# Always link the definitions into /etc so that they are also included in
|
||||
# the /nix/store of the sysroot during early userspace (i.e. while in the
|
||||
# initrd).
|
||||
environment.etc."repart.d".source = definitionsDirectory;
|
||||
|
||||
boot.initrd.systemd = lib.mkIf initrdCfg.enable {
|
||||
additionalUpstreamUnits = [
|
||||
"systemd-repart.service"
|
||||
|
@ -86,38 +81,44 @@ in
|
|||
"${config.boot.initrd.systemd.package}/bin/systemd-repart"
|
||||
];
|
||||
|
||||
contents."/etc/repart.d".source = definitionsDirectory;
|
||||
|
||||
# Override defaults in upstream unit.
|
||||
services.systemd-repart = {
|
||||
# Unset the conditions as they cannot be met before activation because
|
||||
# the definition files are not stored in the expected locations.
|
||||
unitConfig.ConditionDirectoryNotEmpty = [
|
||||
" " # required to unset the previous value.
|
||||
];
|
||||
# systemd-repart tries to create directories in /var/tmp by default to
|
||||
# store large temporary files that benefit from persistence on disk. In
|
||||
# the initrd, however, /var/tmp does not provide more persistence than
|
||||
# /tmp, so we re-use it here.
|
||||
environment."TMPDIR" = "/tmp";
|
||||
serviceConfig = {
|
||||
# systemd-repart runs before the activation script. Thus we cannot
|
||||
# rely on them being linked in /etc already. Instead we have to
|
||||
# explicitly pass their location in the sysroot to the binary.
|
||||
ExecStart = [
|
||||
" " # required to unset the previous value.
|
||||
# When running in the initrd, systemd-repart by default searches
|
||||
# for definition files in /sysroot or /sysusr. We tell it to look
|
||||
# in the initrd itself.
|
||||
''${config.boot.initrd.systemd.package}/bin/systemd-repart \
|
||||
--definitions=/sysroot${definitionsDirectory} \
|
||||
--definitions=/etc/repart.d \
|
||||
--dry-run=no
|
||||
''
|
||||
];
|
||||
};
|
||||
# Because the initrd does not have the `initrd-usr-fs.target` the
|
||||
# upestream unit runs too early in the boot process, before the sysroot
|
||||
# is available. However, systemd-repart needs access to the sysroot to
|
||||
# find the definition files.
|
||||
# systemd-repart needs to run after /sysroot (or /sysuser, but we don't
|
||||
# have it) has been mounted because otherwise it cannot determine the
|
||||
# device (i.e disk) to operate on. If you want to run systemd-repart
|
||||
# without /sysroot, you have to explicitly tell it which device to
|
||||
# operate on.
|
||||
after = [ "sysroot.mount" ];
|
||||
};
|
||||
};
|
||||
|
||||
environment.etc = lib.mkIf cfg.enable {
|
||||
"repart.d".source = definitionsDirectory;
|
||||
};
|
||||
|
||||
systemd = lib.mkIf cfg.enable {
|
||||
additionalUpstreamSystemUnits = [
|
||||
"systemd-repart.service"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -36,8 +36,16 @@ in
|
|||
while ! exec 2> /dev/${qemu-common.qemuSerialDevice}; do sleep 0.1; done
|
||||
echo "connecting to host..." >&2
|
||||
stty -F /dev/hvc0 raw -echo # prevent nl -> cr/nl conversion
|
||||
echo
|
||||
PS1= exec /bin/sh
|
||||
# The following line is essential since it signals to
|
||||
# the test driver that the shell is ready.
|
||||
# See: the connect method in the Machine class.
|
||||
echo "Spawning backdoor root shell..."
|
||||
# Passing the terminal device makes bash run non-interactively.
|
||||
# Otherwise we get errors on the terminal because bash tries to
|
||||
# setup things like job control.
|
||||
# Note: calling bash explicitely here instead of sh makes sure that
|
||||
# we can also run non-NixOS guests during tests.
|
||||
PS1= exec /usr/bin/env bash --norc /dev/hvc0
|
||||
'';
|
||||
serviceConfig.KillSignal = "SIGHUP";
|
||||
};
|
||||
|
|
|
@ -30,7 +30,7 @@ let
|
|||
|
||||
nodes = {
|
||||
server = { config, pkgs, ... }: {
|
||||
virtualisation.memorySize = 2048;
|
||||
virtualisation.memorySize = 2047;
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
database = { inherit type; };
|
||||
|
|
|
@ -66,6 +66,7 @@ in {
|
|||
in {
|
||||
server = { pkgs, ... }: {
|
||||
networking.firewall.allowedTCPPorts = [ port tlsPort anonPort ];
|
||||
networking.useNetworkd = true;
|
||||
services.mosquitto = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -15,7 +15,7 @@ let
|
|||
name ? mkTestName package,
|
||||
useSocketAuth ? true,
|
||||
hasMroonga ? true,
|
||||
hasRocksDB ? true
|
||||
hasRocksDB ? pkgs.stdenv.hostPlatform.is64bit
|
||||
}: makeTest {
|
||||
inherit name;
|
||||
meta = with lib.maintainers; {
|
||||
|
|
|
@ -5,7 +5,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
|
|||
};
|
||||
|
||||
nodes.machine = { pkgs, ... }: {
|
||||
virtualisation.memorySize = 2048;
|
||||
virtualisation.memorySize = 2047;
|
||||
services.wiki-js = {
|
||||
enable = true;
|
||||
settings.db.host = "/run/postgresql";
|
||||
|
|
|
@ -1,35 +1,22 @@
|
|||
{ lib
|
||||
, fetchpatch
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonPackage rec {
|
||||
pname = "ledfx";
|
||||
version = "2.0.64";
|
||||
version = "2.0.67";
|
||||
format = "setuptools";
|
||||
|
||||
src = python3.pkgs.fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-TKRa4PcMd0Jl94XD2WubOhmsxZaUplZeWKsuKz83Rl4=";
|
||||
hash = "sha256-lFxAMjglQZXCySr83PtvStU6hw2ucQu+rSjIHo1yZBk=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# replace tcp-latency which is not packaged with icmplib
|
||||
(fetchpatch {
|
||||
url = "https://github.com/LedFx/LedFx/commit/98cd4256846ae3bdae7094eeacb3b02a4807dc6f.patch";
|
||||
excludes = [
|
||||
# only used in win.spec file which is windows specific
|
||||
"hiddenimports.py"
|
||||
];
|
||||
hash = "sha256-p9fiLdjZI5fe5Qy2xbJIAtblp/7BwUxAvwjHQy5l9nQ=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace '"openrgb-python~=0.2.10",' "" \
|
||||
--replace '"pyupdater>=3.1.0",' "" \
|
||||
--replace "'rpi-ws281x>=4.3.0; platform_system == \"Linux\"'," "" \
|
||||
--replace '"sentry-sdk==1.14.0",' "" \
|
||||
--replace "~=" ">="
|
||||
'';
|
||||
|
||||
|
@ -49,6 +36,7 @@ python3.pkgs.buildPythonPackage rec {
|
|||
psutil
|
||||
pyserial
|
||||
pystray
|
||||
python-rtmidi
|
||||
# rpi-ws281x # not packaged
|
||||
requests
|
||||
sacn
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocenaudio";
|
||||
version = "3.11.24";
|
||||
version = "3.11.25";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.ocenaudio.com/downloads/index.php/ocenaudio_debian9_64.deb?version=${version}";
|
||||
sha256 = "sha256-3NM2jw3XvzMxLpDQAR3LZzCJXwSnQXSDoN7IK4nr4wM=";
|
||||
sha256 = "sha256-B14xM4/E6TQZGLZifvIFA4JxLPo0hNah9PIyquS9TzI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "praat";
|
||||
version = "6.3.09";
|
||||
version = "6.3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "praat";
|
||||
repo = "praat";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-oidYxG3A0yZGAJzjf5WvspEIbh1d/SXNHJsxKsSRifI=";
|
||||
sha256 = "sha256-wnw8GKMukiraZgMMzd3S2NldC/cnRSILNo+D1Rqhr4k=";
|
||||
};
|
||||
|
||||
configurePhase = ''
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, spotify, xorg, runtimeShell }:
|
||||
{ lib, stdenv, fetchFromGitHub, spotify, xorg, makeWrapper }:
|
||||
stdenv.mkDerivation {
|
||||
pname = "spotifywm-unstable";
|
||||
version = "2022-10-26";
|
||||
|
@ -10,15 +10,23 @@ stdenv.mkDerivation {
|
|||
sha256 = "sha256-AsXqcoqUXUFxTG+G+31lm45gjP6qGohEnUSUtKypew0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
buildInputs = [ xorg.libX11 ];
|
||||
|
||||
propagatedBuildInputs = [ spotify ];
|
||||
|
||||
installPhase = ''
|
||||
echo "#!${runtimeShell}" > spotifywm
|
||||
echo "LD_PRELOAD="$out/lib/spotifywm.so" ${spotify}/bin/spotify \$*" >> spotifywm
|
||||
install -Dm644 spotifywm.so $out/lib/spotifywm.so
|
||||
install -Dm755 spotifywm $out/bin/spotifywm
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{bin,lib}
|
||||
install -Dm644 spotifywm.so $out/lib/
|
||||
ln -sf ${spotify}/bin/spotify $out/bin/spotify
|
||||
|
||||
# wrap spotify to use spotifywm.so
|
||||
wrapProgram $out/bin/spotify --set LD_PRELOAD "$out/lib/spotifywm.so"
|
||||
# backwards compatibility for people who are using the "spotifywm" binary
|
||||
ln -sf $out/bin/spotify $out/bin/spotifywm
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -26,6 +34,6 @@ stdenv.mkDerivation {
|
|||
description = "Wrapper around Spotify that correctly sets class name before opening the window";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ jqueiroz ];
|
||||
maintainers = with maintainers; [ jqueiroz the-argus ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ stdenv.mkDerivation rec {
|
|||
meta = with lib; {
|
||||
description = "The podcast client for the modern free desktop";
|
||||
longDescription = ''
|
||||
Vocal is a powerful, fast, and intuitive application that helps users find new podcasts, manage their libraries, and enjoy the best that indepedent audio and video publishing has to offer. Vocal features full support for both episode downloading and streaming, native system integration, iTunes store search and top 100 charts (with international results support), iTunes link parsing, OPML importing and exporting, and so much more. Plus, it has great smart features like automatically keeping your library clean from old files, and the ability to set custom skip intervals.
|
||||
Vocal is a powerful, fast, and intuitive application that helps users find new podcasts, manage their libraries, and enjoy the best that independent audio and video publishing has to offer. Vocal features full support for both episode downloading and streaming, native system integration, iTunes store search and top 100 charts (with international results support), iTunes link parsing, OPML importing and exporting, and so much more. Plus, it has great smart features like automatically keeping your library clean from old files, and the ability to set custom skip intervals.
|
||||
'';
|
||||
homepage = "https://github.com/needle-and-thread/vocal";
|
||||
license = licenses.gpl3Plus;
|
||||
|
|
1975
pkgs/applications/editors/neovim/gnvim/Cargo.lock
generated
1975
pkgs/applications/editors/neovim/gnvim/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -1,42 +1,28 @@
|
|||
{ lib, rustPlatform, fetchFromGitHub, gtk, webkitgtk }:
|
||||
{ lib, rustPlatform, fetchFromGitHub, pkg-config, glib, gtk4 }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "gnvim-unwrapped";
|
||||
version = "0.1.6";
|
||||
version = "0.3.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vhakulinen";
|
||||
repo = "gnvim";
|
||||
rev = "v${version}";
|
||||
sha256 = "1cc3yk04v9icdjr5cn58mqc3ba1wqmlzhf9ly7biy9m8yk30w9y0";
|
||||
hash = "sha256-VyyHlyMW/9zYECobQwngFARQYqcoXmopyCHUwHolXfo=";
|
||||
};
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"nvim-rs-0.1.1-alpha.0" = "sha256-wn68Lix3zZULrg/G4hP+OSj1GbEZMsA/+PaOlG9WLtc=";
|
||||
};
|
||||
};
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
|
||||
buildInputs = [ gtk webkitgtk ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
# for the `glib-compile-resources` command
|
||||
glib
|
||||
];
|
||||
buildInputs = [ glib gtk4 ];
|
||||
|
||||
# The default build script tries to get the version through Git, so we
|
||||
# replace it
|
||||
postPatch = ''
|
||||
cat << EOF > build.rs
|
||||
use std::env;
|
||||
use std::fs::File;
|
||||
use std::io::Write;
|
||||
use std::path::Path;
|
||||
|
||||
fn main() {
|
||||
let out_dir = env::var("OUT_DIR").unwrap();
|
||||
let dest_path = Path::new(&out_dir).join("gnvim_version.rs");
|
||||
let mut f = File::create(&dest_path).unwrap();
|
||||
f.write_all(b"const VERSION: &str = \"${version}\";").unwrap();
|
||||
}
|
||||
EOF
|
||||
|
||||
# Install the binary ourselves, since the Makefile doesn't have the path
|
||||
# containing the target architecture
|
||||
sed -e "/target\/release/d" -i Makefile
|
||||
|
@ -46,6 +32,9 @@ rustPlatform.buildRustPackage rec {
|
|||
make install PREFIX="${placeholder "out"}"
|
||||
'';
|
||||
|
||||
# GTK fails to initialize
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "GUI for neovim, without any web bloat";
|
||||
homepage = "https://github.com/vhakulinen/gnvim";
|
||||
|
|
|
@ -1,21 +1,13 @@
|
|||
{ stdenv, gnvim-unwrapped, neovim, makeWrapper }:
|
||||
{ lib, stdenv, gnvim-unwrapped, neovim, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "gnvim";
|
||||
version = gnvim-unwrapped.version;
|
||||
buildCommand = if stdenv.isDarwin then ''
|
||||
mkdir -p $out/Applications
|
||||
cp -r ${gnvim-unwrapped}/bin/gnvim.app $out/Applications
|
||||
|
||||
chmod -R a+w "$out/Applications/gnvim.app/Contents/MacOS"
|
||||
wrapProgram "$out/Applications/gnvim.app/Contents/MacOS/gnvim" \
|
||||
--prefix PATH : "${neovim}/bin" \
|
||||
--set GNVIM_RUNTIME_PATH "${gnvim-unwrapped}/share/gnvim/runtime"
|
||||
'' else ''
|
||||
buildCommand = ''
|
||||
makeWrapper '${gnvim-unwrapped}/bin/gnvim' "$out/bin/gnvim" \
|
||||
--prefix PATH : "${neovim}/bin" \
|
||||
--set GNVIM_RUNTIME_PATH "${gnvim-unwrapped}/share/gnvim/runtime"
|
||||
|
||||
'' + lib.optionalString (!stdenv.isDarwin) ''
|
||||
mkdir -p "$out/share"
|
||||
ln -s '${gnvim-unwrapped}/share/icons' "$out/share/icons"
|
||||
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
{ lib, pkgs, fetchFromGitHub, nodejs, nodePackages, stdenv, ArchiSteamFarm }:
|
||||
{ lib, fetchFromGitHub, buildNpmPackage, nodePackages, ArchiSteamFarm }:
|
||||
|
||||
let
|
||||
nodePackages = import ./node-composition.nix {
|
||||
inherit pkgs nodejs;
|
||||
inherit (stdenv.hostPlatform) system;
|
||||
};
|
||||
buildNpmPackage {
|
||||
pname = "asf-ui";
|
||||
inherit (ArchiSteamFarm) version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JustArchiNET";
|
||||
|
@ -15,20 +13,15 @@ let
|
|||
sha256 = "1ajmi2l6xhv3nlnag2kmkblny925irp4gngdc3mniiimw364p826";
|
||||
};
|
||||
|
||||
in
|
||||
nodePackages.package.override {
|
||||
inherit src;
|
||||
npmDepsHash = "sha256-AY1DFuZkB8tOQd2FzHuNZ31rtLlWujP+3AqsMMB2BhU=";
|
||||
|
||||
# upstream isn't tagged, but we are using the latest official commit for that specific asf version (assuming both get updated at the same time)
|
||||
version = ArchiSteamFarm.version;
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
nativeBuildInputs = [ pkgs.nodePackages.node-gyp-build ];
|
||||
mkdir $out
|
||||
cp -rv dist/* $out/
|
||||
|
||||
postInstall = ''
|
||||
patchShebangs node_modules/
|
||||
npm run build
|
||||
cp -r $out/lib/node_modules/asf-ui/dist $out/lib/dist
|
||||
rm -rf $out/lib/node_modules/
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
# This file has been generated by node2nix 1.11.1. Do not edit!
|
||||
|
||||
{pkgs ? import <nixpkgs> {
|
||||
inherit system;
|
||||
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs_14"}:
|
||||
|
||||
let
|
||||
nodeEnv = import ../../../../development/node-packages/node-env.nix {
|
||||
inherit (pkgs) stdenv lib python2 runCommand writeTextFile writeShellScript;
|
||||
inherit pkgs nodejs;
|
||||
libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
|
||||
};
|
||||
in
|
||||
import ./node-packages.nix {
|
||||
inherit (pkgs) fetchurl nix-gitignore stdenv lib fetchgit;
|
||||
inherit nodeEnv;
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -10,11 +10,11 @@
|
|||
}:
|
||||
let
|
||||
pname = "jetbrains-toolbox";
|
||||
version = "1.28.0.15158";
|
||||
version = "1.28.1.15219";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://download.jetbrains.com/toolbox/jetbrains-toolbox-${version}.tar.gz";
|
||||
sha256 = "sha256-IHs3tQtFXGS9xa5lKwSEWvp8aNffrCjNcoVE4tGX9ak=";
|
||||
sha256 = "sha256-4P73MC5Go8wLACBtjh1y3Ao0czE/3hsSI4728mNjKxA=";
|
||||
stripRoot = false;
|
||||
};
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||
keyboard between two or more computers.
|
||||
|
||||
Without the need for any external hardware, Synergy2 uses the TCP-IP
|
||||
protocol to share the resources, even between machines with diferent
|
||||
protocol to share the resources, even between machines with different
|
||||
operating systems, such as Mac OS, Linux and Windows.
|
||||
|
||||
Remember to open port 24800 (used by synergys program) if you want to
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "slweb";
|
||||
version = "0.5";
|
||||
version = "0.5.4";
|
||||
|
||||
src = fetchFromSourcehut {
|
||||
owner = "~strahinja";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-GoDumiysqIkWj2HTPQv2gheYsf4fWjtCNPFS/1R0tzc=";
|
||||
sha256 = "sha256-Wj9ZCs8nRBpIkX5jzTqBdo83zUBMamykk1vbBCIWyoQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ redo-apenwarr ];
|
||||
|
|
|
@ -27,7 +27,7 @@ in appimageTools.wrapType2 {
|
|||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Browser with unified devtools targeting responsability and acessibility";
|
||||
description = "Browser with unified devtools targeting responsability and accessibility";
|
||||
longDescription = ''
|
||||
The stand-alone browser for ambitious developers that want to build responsive,
|
||||
accessible and performant websites in a fraction of the time it takes with other browsers.
|
||||
|
|
|
@ -14,7 +14,7 @@ let
|
|||
false;
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "kube3d";
|
||||
pname = "k3d";
|
||||
version = "5.4.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
@ -30,10 +30,10 @@ buildGoModule rec {
|
|||
excludedPackages = [ "tools" "docgen" ];
|
||||
|
||||
ldflags =
|
||||
let t = "github.com/k3d-io/k3d/v5/version"; in
|
||||
let t = "github.com/k3d-io/k3d/v${lib.versions.major version}/version"; in
|
||||
[ "-s" "-w" "-X ${t}.Version=v${version}" ] ++ lib.optionals k3sVersionSet [ "-X ${t}.K3sVersion=v${k3sVersion}" ];
|
||||
|
||||
preCheck = ''
|
||||
preCheck = ''
|
||||
# skip test that uses networking
|
||||
substituteInPlace version/version_test.go \
|
||||
--replace "TestGetK3sVersion" "SkipGetK3sVersion"
|
||||
|
@ -57,7 +57,7 @@ buildGoModule rec {
|
|||
meta = with lib; {
|
||||
homepage = "https://github.com/k3d-io/k3d/";
|
||||
changelog = "https://github.com/k3d-io/k3d/blob/v${version}/CHANGELOG.md";
|
||||
description = "A helper to run k3s (Lightweight Kubernetes. 5 less than k8s) in a docker container - k3d";
|
||||
description = "A helper to run k3s (Lightweight Kubernetes. 5 less than k8s) in a docker container";
|
||||
longDescription = ''
|
||||
k3s is the lightweight Kubernetes distribution by Rancher: rancher/k3s
|
||||
|
||||
|
@ -67,6 +67,5 @@ buildGoModule rec {
|
|||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ kuznero jlesquembre ngerstle jk ricochet ];
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
mainProgram = "k3d";
|
||||
};
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
|
@ -16,7 +17,22 @@ buildGoModule rec {
|
|||
|
||||
vendorHash = "sha256-Y/4UgG/2Vp+gxBnGrNpAgRNfPZWJXhVo8TVa/VfOYt0=";
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X=github.com/plumber-cd/terraform-backend-git/cmd.Version=${version}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd terraform-backend-git \
|
||||
--bash <($out/bin/terraform-backend-git completion bash) \
|
||||
--fish <($out/bin/terraform-backend-git completion fish) \
|
||||
--zsh <($out/bin/terraform-backend-git completion zsh)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Terraform HTTP Backend implementation that uses Git repository as storage";
|
||||
|
|
|
@ -437,24 +437,24 @@
|
|||
"vendorHash": "sha256-SLFpH7isx4OM2X9bzWYYD4VlejlgckBovOxthg47OOQ="
|
||||
},
|
||||
"google": {
|
||||
"hash": "sha256-8uRIvFZsuPyisJMRmqL5zNxea6h1VwxZS+lmmvZslfo=",
|
||||
"hash": "sha256-0spzfAsinmWsdarpoxIfrQFIPGEV47H50IVw5Kfyqxs=",
|
||||
"homepage": "https://registry.terraform.io/providers/hashicorp/google",
|
||||
"owner": "hashicorp",
|
||||
"proxyVendor": true,
|
||||
"repo": "terraform-provider-google",
|
||||
"rev": "v4.63.1",
|
||||
"rev": "v4.64.0",
|
||||
"spdx": "MPL-2.0",
|
||||
"vendorHash": "sha256-Xm1P6P2tMLqjV9QFX6D7koBPzg4umTH6jCQesyt0A/A="
|
||||
"vendorHash": "sha256-rjLvmKymUiuAIwiZRpgivbYbP88MLVSBlrirlJxZpcw="
|
||||
},
|
||||
"google-beta": {
|
||||
"hash": "sha256-avE1EnjCItz1NcF0KzsSgUnQABr2D0IC7kLGgIj+j6g=",
|
||||
"hash": "sha256-VMJdTj9LUhoj0Qvmt9lUYh00sOJQctgEggem4ZRVsVw=",
|
||||
"homepage": "https://registry.terraform.io/providers/hashicorp/google-beta",
|
||||
"owner": "hashicorp",
|
||||
"proxyVendor": true,
|
||||
"repo": "terraform-provider-google-beta",
|
||||
"rev": "v4.63.1",
|
||||
"rev": "v4.64.0",
|
||||
"spdx": "MPL-2.0",
|
||||
"vendorHash": "sha256-Xm1P6P2tMLqjV9QFX6D7koBPzg4umTH6jCQesyt0A/A="
|
||||
"vendorHash": "sha256-rjLvmKymUiuAIwiZRpgivbYbP88MLVSBlrirlJxZpcw="
|
||||
},
|
||||
"googleworkspace": {
|
||||
"hash": "sha256-dedYnsKHizxJZibuvJOMbJoux0W6zgKaK5fxIofKqCY=",
|
||||
|
@ -728,11 +728,11 @@
|
|||
"vendorHash": "sha256-QxbZv6YMa5/I4bTeQBNdmG3EKtLEmstnH7HMiZzFJrI="
|
||||
},
|
||||
"minio": {
|
||||
"hash": "sha256-LL3jOuNNCd5isNPyt+I35j5BdxAbnWRQ2o2RBLSOc/E=",
|
||||
"hash": "sha256-1VO0ofT+6JU8pMSfrSfgEJlTb5GM64AVYQ1hvbWPzCw=",
|
||||
"homepage": "https://registry.terraform.io/providers/aminueza/minio",
|
||||
"owner": "aminueza",
|
||||
"repo": "terraform-provider-minio",
|
||||
"rev": "v1.15.0",
|
||||
"rev": "v1.15.1",
|
||||
"spdx": "Apache-2.0",
|
||||
"vendorHash": "sha256-Xz6WxAxzvLfgJTD2oDgZoeHffcdA7dyfgwY1g6lFkbk="
|
||||
},
|
||||
|
@ -764,13 +764,13 @@
|
|||
"vendorHash": null
|
||||
},
|
||||
"newrelic": {
|
||||
"hash": "sha256-+awQtvyJBLSm+WYH2gp+VM2uNbWeEfIbwqw7VsikQEA=",
|
||||
"hash": "sha256-YD7RpzhFgX9BwXzZ4OO3XdPPGLurTvEA6Y0iXnVxTPg=",
|
||||
"homepage": "https://registry.terraform.io/providers/newrelic/newrelic",
|
||||
"owner": "newrelic",
|
||||
"repo": "terraform-provider-newrelic",
|
||||
"rev": "v3.21.3",
|
||||
"rev": "v3.22.0",
|
||||
"spdx": "MPL-2.0",
|
||||
"vendorHash": "sha256-fqO3hlDUPY8/9SSMpNVD81pyaQE12zwNKDLSI54UF3M="
|
||||
"vendorHash": "sha256-LWIqCc4hn4ExG4LkFKD5NLM6djWpKgYQdqZM7atTez8="
|
||||
},
|
||||
"nomad": {
|
||||
"hash": "sha256-1TmcFS+ul7xpSGqQohcCdeQ2zuDD429xGI0X2Add5HQ=",
|
||||
|
|
64
pkgs/applications/networking/gabutdm/default.nix
Normal file
64
pkgs/applications/networking/gabutdm/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, meson
|
||||
, pkg-config
|
||||
, cmake
|
||||
, ninja
|
||||
, vala
|
||||
, wrapGAppsHook4
|
||||
, desktop-file-utils
|
||||
, sqlite
|
||||
, libcanberra
|
||||
, libsoup_3
|
||||
, libgee
|
||||
, json-glib
|
||||
, qrencode
|
||||
, curl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gabutdm";
|
||||
version = "2.1.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gabutakut";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-8fV7STYSpmNnLyoAjz+RuF/0nFeNiu8AIxkON1MbWr4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
pkg-config
|
||||
cmake
|
||||
ninja
|
||||
vala
|
||||
wrapGAppsHook4
|
||||
desktop-file-utils
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
sqlite
|
||||
libcanberra
|
||||
libsoup_3
|
||||
libgee
|
||||
json-glib
|
||||
qrencode
|
||||
curl
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace meson/post_install.py \
|
||||
--replace gtk-update-icon-cache gtk4-update-icon-cache
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple and faster download manager";
|
||||
homepage = "https://github.com/gabutakut/gabutdm";
|
||||
license = licenses.lgpl21Plus;
|
||||
mainProgram = "com.github.gabutakut.gabutdm";
|
||||
maintainers = with maintainers; [ aleksana ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
(if stdenv.isDarwin then darwin.apple_sdk_11_0.clang14Stdenv else stdenv).mkDerivation rec {
|
||||
pname = "signalbackup-tools";
|
||||
version = "20230429";
|
||||
version = "20230508-1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bepaald";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-uOZfEZ5Wf+4lz5FxPqsockAIA/um61OZ6mvjj51BGkg=";
|
||||
hash = "sha256-0kkbJGZEnB6bL+aNhHpSI2oHpsVmju3OEFG7mitKBsc=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -138,9 +138,7 @@ stdenv.mkDerivation {
|
|||
'' else
|
||||
lib.optionalString withQt ''
|
||||
pwd
|
||||
install -Dm644 -t $out/share/applications ../resources/freedesktop/org.wireshark.Wireshark.desktop
|
||||
|
||||
install -Dm644 ../resources/icons/wsicon.svg $out/share/icons/wireshark.svg
|
||||
mkdir -pv $dev/include/{epan/{wmem,ftypes,dfilter},wsutil/wmem,wiretap}
|
||||
|
||||
cp config.h $dev/include/wireshark/
|
||||
|
|
|
@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = false; # Started making trouble with gcc-11
|
||||
|
||||
# Must do manualy becuase siesta does not do the regular
|
||||
# Must do manually because siesta does not do the regular
|
||||
# ./configure; make; make install
|
||||
configurePhase = ''
|
||||
cd Obj
|
||||
|
|
|
@ -122,6 +122,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [
|
||||
./sw_vers.patch
|
||||
] ++ lib.optionals (python.pkgs.pythonAtLeast "3.11") [
|
||||
# Fix build against Python 3.11
|
||||
(fetchpatch {
|
||||
url = "https://github.com/root-project/root/commit/484deb056dacf768aba4954073b41105c431bffc.patch";
|
||||
hash = "sha256-4qur2e3SxMIPgOg4IjlvuULR2BObuP7xdvs+LmNT2/s=";
|
||||
})
|
||||
];
|
||||
|
||||
# Fix build against vanilla LLVM 9
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
, speexSupport ? true, speex
|
||||
, swiftSupport ? stdenv.isDarwin && stdenv.isAarch64, swift
|
||||
, theoraSupport ? true, libtheora
|
||||
, vaapiSupport ? stdenv.isLinux, libva
|
||||
, vaapiSupport ? x11Support || waylandSupport, libva
|
||||
, vapoursynthSupport ? false, vapoursynth
|
||||
, vdpauSupport ? true, libvdpau
|
||||
, xineramaSupport ? stdenv.isLinux, libXinerama
|
||||
|
|
|
@ -14,13 +14,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "advanced-scene-switcher";
|
||||
version = "1.20.5";
|
||||
version = "1.21.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "WarmUpTill";
|
||||
repo = "SceneSwitcher";
|
||||
rev = version;
|
||||
sha256 = "04k7f7v756vdsan95g73cc29lrs61jis738v37a3ihi3ivps3ma3";
|
||||
sha256 = "1p6fl1fy39hrm7yasjhv6z79bnjk2ib3yg9dvf1ahwzkd9bpyfyl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
|
|
@ -41,6 +41,10 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
cargoSha256 = "sha256-edi6/Md6KebKM3wHArZe1htUCg0/BqMVZKA4xEH25GI=";
|
||||
|
||||
# lld: error: unknown argument '-Wl,--undefined=AUDITABLE_VERSION_INFO'
|
||||
# https://github.com/cloud-hypervisor/rust-hypervisor-firmware/issues/249
|
||||
auditable = false;
|
||||
|
||||
RUSTC_BOOTSTRAP = 1;
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
meta = with lib;{
|
||||
description = "A tiny window manger for X11";
|
||||
description = "A tiny window manager for X11";
|
||||
longDescription = ''
|
||||
|
||||
TinyWM is a tiny window manager that I created as an exercise in
|
||||
|
|
|
@ -364,9 +364,9 @@ stdenv.mkDerivation {
|
|||
''
|
||||
# this ensures that when clang passes -lgcc_s to lld (as it does
|
||||
# when building e.g. firefox), lld is able to find libgcc_s.so
|
||||
+ lib.optionalString (gccForLibs?libgcc) ''
|
||||
echo "-L${gccForLibs.libgcc}/lib" >> $out/nix-support/cc-ldflags
|
||||
'')
|
||||
+ concatMapStrings (libgcc: ''
|
||||
echo "-L${libgcc}/lib" >> $out/nix-support/cc-ldflags
|
||||
'') (lib.toList (gccForLibs.libgcc or [])))
|
||||
|
||||
##
|
||||
## General libc support
|
||||
|
|
|
@ -24,7 +24,7 @@ stdenvNoCC.mkDerivation rec {
|
|||
D2Coding is a monospace font developed by a Korean IT Company called Naver.
|
||||
Font is good for displaying both Korean characters and latin characters,
|
||||
as sometimes these two languages could share some similar strokes.
|
||||
Since verion 1.3, D2Coding font is officially supported by the font
|
||||
Since version 1.3, D2Coding font is officially supported by the font
|
||||
creator, with symbols for Powerline.
|
||||
'';
|
||||
homepage = "https://github.com/naver/d2codingfont";
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "sarasa-gothic";
|
||||
version = "0.40.6";
|
||||
version = "0.40.7";
|
||||
|
||||
src = fetchurl {
|
||||
# Use the 'ttc' files here for a smaller closure size.
|
||||
# (Using 'ttf' files gives a closure size about 15x larger, as of November 2021.)
|
||||
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttc-${version}.7z";
|
||||
hash = "sha256-AHslDiYBQXcxo8XVh1GMZDR8LJXvzJHl4hrisfhltEM=";
|
||||
hash = "sha256-muxmoTfAZWLhPp4rx91PDnYogBGHuD4esYjE2kZiOAY=";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
|
39
pkgs/data/icons/dracula-icon-theme/default.nix
Normal file
39
pkgs/data/icons/dracula-icon-theme/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenvNoCC, fetchFromGitHub, jdupes }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "dracula-icon-theme";
|
||||
version = "unstable-2021-07-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "m4thewz";
|
||||
repo = "dracula-icons";
|
||||
rev = "2d3c83caa8664e93d956cfa67a0f21418b5cdad8";
|
||||
hash = "sha256-GY+XxTM22jyNq8kaB81zNfHRhfXujArFcyzDa8kjxCQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
jdupes
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
dontPatchELF = true;
|
||||
dontRewriteSymlinks = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/icons/Dracula
|
||||
cp -a * $out/share/icons/Dracula/
|
||||
jdupes --quiet --link-soft --recurse $out/share
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dracula Icon theme";
|
||||
homepage = "https://github.com/m4thewz/dracula-icons";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ therealr5 ];
|
||||
};
|
||||
}
|
|
@ -28,7 +28,9 @@ let
|
|||
|
||||
|
||||
# includes
|
||||
ln -s ${glibc_multi.dev}/include $out/
|
||||
mkdir -p $out/include
|
||||
ln -s ${glibc_multi.dev}/include/* $out/include
|
||||
ln -s ${gcc64.cc}/include/c++ $out/include/c++
|
||||
|
||||
# dynamic linkers
|
||||
mkdir -p $out/lib/32
|
||||
|
@ -46,7 +48,13 @@ let
|
|||
libc = gcc_multi_sysroot;
|
||||
};
|
||||
|
||||
gccForLibs = gcc_multi_sysroot;
|
||||
gccForLibs = gcc_multi_sysroot // {
|
||||
inherit (glibc_multi) libgcc;
|
||||
langCC =
|
||||
assert (gcc64.cc.langCC != gcc32.cc.langCC)
|
||||
-> throw "(gcc64.cc.langCC=${gcc64.cc.langCC}) != (gcc32.cc.langCC=${gcc32.cc.langCC})";
|
||||
gcc64.cc.langCC;
|
||||
};
|
||||
};
|
||||
|
||||
in clangMulti
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
, zlib
|
||||
, python3
|
||||
, ncurses
|
||||
, darwin
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -48,6 +49,10 @@ stdenv.mkDerivation rec {
|
|||
python3
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreFoundation
|
||||
];
|
||||
|
||||
# propagate since gprbuild needs to find referenced .gpr files
|
||||
# and all dependency C libraries when statically linking a
|
||||
# downstream executable.
|
||||
|
|
|
@ -27,7 +27,7 @@ mkDerivation rec {
|
|||
logic that will be used by all financial applications in KDE.
|
||||
|
||||
The target is to share financial related information over
|
||||
application bounderies.
|
||||
application boundaries.
|
||||
'';
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
platforms = qtbase.meta.platforms;
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
, libspatialite
|
||||
, sqlite
|
||||
, libtiff
|
||||
, useTiledb ? !(stdenv.isDarwin && stdenv.isx86_64)
|
||||
, tiledb
|
||||
, libwebp
|
||||
, xercesc
|
||||
|
@ -91,6 +92,8 @@ stdenv.mkDerivation rec {
|
|||
"-DCMAKE_SKIP_BUILD_RPATH=ON" # without, libgdal.so can't find libmariadb.so
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
"-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON"
|
||||
] ++ lib.optionals (!useTiledb) [
|
||||
"-DGDAL_USE_TILEDB=OFF"
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
|
@ -135,7 +138,9 @@ stdenv.mkDerivation rec {
|
|||
libspatialite
|
||||
sqlite
|
||||
libtiff
|
||||
] ++ lib.optionals useTiledb [
|
||||
tiledb
|
||||
] ++ [
|
||||
libwebp
|
||||
zlib
|
||||
zstd
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ runCommand, glibc, glibc32
|
||||
{ lib
|
||||
, runCommand, glibc, glibc32
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -7,7 +8,15 @@ let
|
|||
in
|
||||
runCommand "${nameVersion.name}-multi-${nameVersion.version}"
|
||||
# out as the first output is an exception exclusive to glibc
|
||||
{ outputs = [ "out" "bin" "dev" ]; } # TODO: no static version here (yet)
|
||||
{
|
||||
outputs = [ "out" "bin" "dev" ]; # TODO: no static version here (yet)
|
||||
passthru = {
|
||||
libgcc = lib.lists.filter (x: x!=null) [
|
||||
(glibc64.libgcc or null)
|
||||
(glibc32.libgcc or null)
|
||||
];
|
||||
};
|
||||
}
|
||||
''
|
||||
mkdir -p "$out/lib"
|
||||
ln -s '${glibc64.out}'/lib/* "$out/lib"
|
||||
|
|
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||
dontUseCmakeBuildDir = true;
|
||||
|
||||
cmakeFlags = let
|
||||
libExt = stdenv.hostPlatform.extensions.sharedLibrary;
|
||||
libExt = stdenv.hostPlatform.extensions.library;
|
||||
in [
|
||||
"-GNinja"
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
|
|
39
pkgs/development/libraries/libosmo-abis/default.nix
Normal file
39
pkgs/development/libraries/libosmo-abis/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config
|
||||
, libosmocore, ortp, bctoolbox
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libosmo-abis";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://gitea.osmocom.org/osmocom/libosmo-abis";
|
||||
rev = version;
|
||||
sha256 = "sha256-RKJis0Ur3Y0LximNQl+hm6GENg8t2E1S++2c+63D2pQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
echo "${version}" > .tarball-version
|
||||
'';
|
||||
|
||||
configureFlags = [ "--disable-dahdi" ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libosmocore
|
||||
ortp
|
||||
bctoolbox
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "GSM A-bis interface library";
|
||||
homepage = "https://osmocom.org/projects/libosmo-abis";
|
||||
maintainers = [ maintainers.markuskowa ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.agpl3Only;
|
||||
};
|
||||
}
|
37
pkgs/development/libraries/libosmo-netif/default.nix
Normal file
37
pkgs/development/libraries/libosmo-netif/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config
|
||||
, libosmocore, lksctp-tools
|
||||
}:
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libosmo-netif";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://gitea.osmocom.org/osmocom/libosmo-netif";
|
||||
rev = version;
|
||||
sha256 = "sha256-PhGi/6JVO8tXxzfGwEKUB/GdrgCJkqROo26TPU+O9Sg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
echo "${version}" > .tarball-version
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libosmocore
|
||||
lksctp-tools
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Higher-layer GSM cellular communications protocol implementation";
|
||||
homepage = "https://gitea.osmocom.org/osmocom/libosmo-netif";
|
||||
maintainers = [ maintainers.markuskowa ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.agpl3Only;
|
||||
};
|
||||
}
|
38
pkgs/development/libraries/libosmo-sccp/default.nix
Normal file
38
pkgs/development/libraries/libosmo-sccp/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchgit, autoreconfHook, pkg-config
|
||||
, libosmocore, libosmo-netif, lksctp-tools
|
||||
}:
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libosmo-sccp";
|
||||
version = "1.7.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://gitea.osmocom.org/osmocom/libosmo-sccp";
|
||||
rev = version;
|
||||
sha256 = "sha256-ScJZke9iNmFc9XXqtRjb24ZzKfa5EYws5PDNhcZFb7U=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
echo "${version}" > .tarball-version
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libosmocore
|
||||
libosmo-netif
|
||||
lksctp-tools
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Implementation of telecom signaling protocols and OsmoSTP";
|
||||
homepage = "https://osmocom.org/projects/osmo-stp/wiki";
|
||||
maintainers = [ maintainers.markuskowa ];
|
||||
platforms = platforms.linux;
|
||||
license = licenses.agpl3Only;
|
||||
};
|
||||
}
|
|
@ -107,22 +107,13 @@ in {
|
|||
];
|
||||
};
|
||||
|
||||
libressl_3_5 = generic {
|
||||
version = "3.5.4";
|
||||
hash = "sha256-A3naE0Si9xrUpOO+MO+dgu7N3Of43CrmZjGh3+FDQ6w=";
|
||||
|
||||
patches = [
|
||||
# Fix endianness detection on aarch64-darwin, issue #181187
|
||||
(fetchpatch {
|
||||
name = "fix-endian-header-detection.patch";
|
||||
url = "https://patch-diff.githubusercontent.com/raw/libressl-portable/portable/pull/771.patch";
|
||||
sha256 = "sha256-in5U6+sl0HB9qMAtUL6Py4X2rlv0HsqRMIQhhM1oThE=";
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
libressl_3_6 = generic {
|
||||
version = "3.6.2";
|
||||
hash = "sha256-S+gP/wc3Rs9QtKjlur4nlayumMaxMqngJRm0Rd+/0DM=";
|
||||
};
|
||||
|
||||
libressl_3_7 = generic {
|
||||
version = "3.7.2";
|
||||
hash = "sha256-sGqlOP78nGszxNtJMaCaX1LZ0jVyGa/L/32T/hLr9vc=";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ let
|
|||
(map (test: "${testRunner}${opencv4.package_tests}/opencv_test_${test} --test_threads=$NIX_BUILD_CORES --gtest_filter=$GTEST_FILTER" ) testNames)
|
||||
}
|
||||
'';
|
||||
perfomanceTests = lib.optionalString runPerformanceTests ''
|
||||
performanceTests = lib.optionalString runPerformanceTests ''
|
||||
${ builtins.concatStringsSep "\n"
|
||||
(map (test: "${testRunner}${opencv4.package_tests}/opencv_perf_${test} --perf_impl=plain --perf_min_samples=10 --perf_force_samples=10 --perf_verify_sanity --skip_unstable=1 --gtest_filter=$GTEST_FILTER") perfTestNames)
|
||||
}
|
||||
|
@ -67,4 +67,4 @@ runCommand "opencv4-tests"
|
|||
{
|
||||
nativeBuildInputs = lib.optionals enableGStreamer (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good ]);
|
||||
}
|
||||
(testsPreparation + accuracyTests + perfomanceTests)
|
||||
(testsPreparation + accuracyTests + performanceTests)
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
}:
|
||||
|
||||
# If this package is built with polkit support (withPolkit=true),
|
||||
# usb redirection reqires spice-client-glib-usb-acl-helper to run setuid root.
|
||||
# usb redirection requires spice-client-glib-usb-acl-helper to run setuid root.
|
||||
# The helper confirms via polkit that the user has an active session,
|
||||
# then adds a device acl entry for that user.
|
||||
# Example NixOS config to create a setuid wrapper for the helper:
|
||||
|
|
|
@ -57,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
export CHOST=${stdenv.hostPlatform.config}
|
||||
'';
|
||||
|
||||
# For zlib's ./configure (as of verion 1.2.11), the order
|
||||
# For zlib's ./configure (as of version 1.2.11), the order
|
||||
# of --static/--shared flags matters!
|
||||
# `--shared --static` builds only static libs, while
|
||||
# `--static --shared` builds both.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Do not use overrides in this file to add `meta.mainProgram` to packges. Use `./main-programs.nix`
|
||||
# Do not use overrides in this file to add `meta.mainProgram` to packages. Use `./main-programs.nix`
|
||||
# instead.
|
||||
{ pkgs, nodejs }:
|
||||
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
{ lib, fetchFromGitHub, buildDunePackage, ocaml, markup, ounit2 }:
|
||||
{ lib, fetchFromGitHub, buildDunePackage, ocaml, camlp-streams, markup, ounit2 }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "lambdasoup";
|
||||
version = "0.7.3";
|
||||
version = "1.0.0";
|
||||
|
||||
minimalOCamlVersion = "4.02";
|
||||
minimalOCamlVersion = "4.03";
|
||||
|
||||
useDune2 = true;
|
||||
duneVersion = "3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aantron";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256:1wclkn1pl0d150dw0xswb29jc7y1q9mhipff1pnsc1hli3pyvvb7";
|
||||
hash = "sha256-PZkhN5vkkLu8A3gYrh5O+nq9wFtig0Q4qD8zLGUGTRI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ markup ];
|
||||
propagatedBuildInputs = [ camlp-streams markup ];
|
||||
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.04";
|
||||
checkInputs = [ ounit2 ];
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
{ buildDunePackage, qcheck-core
|
||||
, qcheck, ppxlib, ppx_deriving }:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "ppx_deriving_qcheck";
|
||||
|
||||
inherit (qcheck-core) version src patches;
|
||||
|
||||
duneVersion = "3";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
qcheck
|
||||
ppxlib
|
||||
ppx_deriving
|
||||
];
|
||||
|
||||
meta = qcheck-core.meta // {
|
||||
description = "PPX Deriver for QCheck";
|
||||
};
|
||||
}
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "ailment";
|
||||
version = "9.2.48";
|
||||
version = "9.2.49";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
@ -17,7 +17,7 @@ buildPythonPackage rec {
|
|||
owner = "angr";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-abUxA2ndkOlLMWdPspKKTgWGuoGYyypAq43MrgaW+AY=";
|
||||
hash = "sha256-pKQNaPRdsjS8RHPAsZCHEm9eiCOuAxQymDowvpeg7W0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "angr";
|
||||
version = "9.2.48";
|
||||
version = "9.2.49";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
@ -41,7 +41,7 @@ buildPythonPackage rec {
|
|||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-KHeLi4b54gvWcCsbdIbJ2n1sRcowio7ng4eEqkGacTU=";
|
||||
hash = "sha256-6SHg1topRXQlZ2kDCcOyPbNpGl7Na9vcOgOthQ44tCs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "archinfo";
|
||||
version = "9.2.48";
|
||||
version = "9.2.49";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
@ -17,7 +17,7 @@ buildPythonPackage rec {
|
|||
owner = "angr";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-WQkIw/tuT/KwRBVQ2+u2NXioAzisV0hCvTN8tfN+lRY=";
|
||||
hash = "sha256-FbI2XX5/gc3bTW28alT8qEEQ46UEkQf5cO37jJcFVBs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -4,18 +4,28 @@
|
|||
, csrmesh
|
||||
, fetchPypi
|
||||
, pycryptodome
|
||||
, pythonOlder
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "avion";
|
||||
version = "0.10";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zgv45086b97ngyqxdp41wxb7hpn9g7alygc21j9y3dib700vzdz";
|
||||
hash = "sha256-v/0NwFmxDZ9kEOx5qs5L9sKzOg/kto79syctg0Ah+30=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/mjg59/python-avion/pull/16
|
||||
substituteInPlace setup.py \
|
||||
--replace "bluepy>==1.1.4" "bluepy>=1.1.4"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bluepy
|
||||
csrmesh
|
||||
|
@ -23,8 +33,9 @@ buildPythonPackage rec {
|
|||
requests
|
||||
];
|
||||
|
||||
# Project has no test
|
||||
# Module has no test
|
||||
doCheck = false;
|
||||
|
||||
# bluepy/uuids.json is not found
|
||||
# pythonImportsCheck = [ "avion" ];
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ buildPythonPackage rec {
|
|||
] ++ passthru.optional-dependencies.compiler;
|
||||
|
||||
# The tests require the generation of code before execution. This requires
|
||||
# the protoc-gen-python_betterproto script from the packge to be on PATH.
|
||||
# the protoc-gen-python_betterproto script from the package to be on PATH.
|
||||
preCheck = ''
|
||||
export PATH=$PATH:$out/bin
|
||||
${python.interpreter} -m tests.generate
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "bluetooth-adapters";
|
||||
version = "0.15.3";
|
||||
version = "0.15.4";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
|||
owner = "Bluetooth-Devices";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-sh5wOx/4J1AEzR5zrd77v7Cbq6Mt9vOjCSREKHRN4aQ=";
|
||||
hash = "sha256-H8QkOs+QPN9jB/g4f3OaGlX/F2SO2hIDptoPB47ogqA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "claripy";
|
||||
version = "9.2.48";
|
||||
version = "9.2.49";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
|||
owner = "angr";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-rkeshqKlsYA16TyXb4iRTnoTJwoB2kQJcdH/cBrgJng=";
|
||||
hash = "sha256-PTlkyu8Thm81VO9HIhNUwGxDBEQedfs3RYfZW5ZEAaY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -16,14 +16,14 @@
|
|||
|
||||
let
|
||||
# The binaries are following the argr projects release cycle
|
||||
version = "9.2.48";
|
||||
version = "9.2.49";
|
||||
|
||||
# Binary files from https://github.com/angr/binaries (only used for testing and only here)
|
||||
binaries = fetchFromGitHub {
|
||||
owner = "angr";
|
||||
repo = "binaries";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-LpYi5Ty6OBcW0zokCliMDhujJ7tPPl1XdPs5ad1tv5s=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-03DyvPht4E4uysKqgyfu8hxu1qh+YzWsTI09E4ftiSs=";
|
||||
};
|
||||
|
||||
in
|
||||
|
@ -38,7 +38,7 @@ buildPythonPackage rec {
|
|||
owner = "angr";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-D5qIuu8pqnkroU3ChmhseVitLrUJjwXr01MG7ing2Zk=";
|
||||
hash = "sha256-xNYAYXKrfpvY9oYPmiR6GNaWAIUi9w1T9YznosIABSs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "dbus-client-gen";
|
||||
version = "0.5";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-DrpIeB6kMXPP6PfCjyx7Lsi8yyvwSl9k1nnUGtvVGKg=";
|
||||
hash = "sha256-vRXo72aWoreH/VwzdEAOgoGSRzRf7vy8Z/IA+lnLoWw=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "dbus-signature-pyparsing";
|
||||
version = "0.04";
|
||||
version = "0.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stratis-storage";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-IXyepfq7pLTRkTolKWsKGrYDoxukVC9JTrxS9xV7s2I=";
|
||||
hash = "sha256-+jY8kg3jBDpZr5doih3DiyUEcSskq7TgubmW3qdBoZM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyparsing ];
|
||||
|
|
35
pkgs/development/python-modules/defusedcsv/default.nix
Normal file
35
pkgs/development/python-modules/defusedcsv/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "defusedcsv";
|
||||
version = "2.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "raphaelm";
|
||||
repo = "defusedcsv";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-y8qLVfdkxRrDjtrTOLK5Zvi/1Vyv8eOnCueUkaRp4sQ=";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"defusedcsv.csv"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library to protect your users from Excel injections in CSV-format exports, drop-in replacement for standard library's csv module";
|
||||
homepage = "https://github.com/raphaelm/defusedcsv";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
43
pkgs/development/python-modules/django-i18nfield/default.nix
Normal file
43
pkgs/development/python-modules/django-i18nfield/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# tests
|
||||
, djangorestframework
|
||||
, html5lib
|
||||
, lxml
|
||||
, pytest-django
|
||||
, pytestCheckHook
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "django-i18nfield";
|
||||
version = "1.9.4";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "raphaelm";
|
||||
repo = "django-i18nfield";
|
||||
rev = "10488eb6c673be50e50387c76085a7c8d84e9157";
|
||||
hash = "sha256-FF980LTw7RFuG9QgxA96yJsSczCNNMq9WsbacQqIReE=";
|
||||
};
|
||||
|
||||
env.DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||
|
||||
nativeCheckInputs = [
|
||||
djangorestframework
|
||||
html5lib
|
||||
lxml
|
||||
pytest-django
|
||||
pytestCheckHook
|
||||
pyyaml
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Store internationalized strings in Django models";
|
||||
homepage = "https://github.com/raphaelm/django-i18nfield";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
54
pkgs/development/python-modules/django-mysql/default.nix
Normal file
54
pkgs/development/python-modules/django-mysql/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, setuptools
|
||||
|
||||
# dependencies
|
||||
, django
|
||||
, mysqlclient
|
||||
|
||||
# tests
|
||||
, pytest-django
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-mysql";
|
||||
version = "4.9.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "adamchainz";
|
||||
repo = "django-mysql";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-mXAdwNqSIrWMh+YcCjksiqmkLSXGAd+ofyzJmiG+gNo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
mysqlclient
|
||||
];
|
||||
|
||||
doCheck = false; # requires mysql/mariadb server
|
||||
|
||||
env.DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-django
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://django-mysql.readthedocs.io/en/latest/changelog.html";
|
||||
description = "Extensions to Django for use with MySQL/MariaD";
|
||||
homepage = "https://github.com/adamchainz/django-mysql";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, buildPythonPackage, dlib, python, pytest, more-itertools
|
||||
{ stdenv, buildPythonPackage, dlib, python, pytest, more-itertools, fetchpatch
|
||||
, sse4Support ? stdenv.hostPlatform.sse4_1Support
|
||||
, avxSupport ? stdenv.hostPlatform.avxSupport
|
||||
}:
|
||||
|
@ -6,7 +6,28 @@
|
|||
buildPythonPackage {
|
||||
inherit (dlib) pname version src nativeBuildInputs buildInputs meta;
|
||||
|
||||
patches = [ ./build-cores.patch ];
|
||||
patches = [
|
||||
./build-cores.patch
|
||||
|
||||
# Upgrade minimum CMake & C++ requirement. Nixpkgs is sufficiently up-to-date
|
||||
# so that is not a problem. Applied to make sure the pybind11 patch applies cleanly.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/davisking/dlib/commit/29288e5d895b21f5508c15294f1303b367534a63.patch";
|
||||
sha256 = "sha256-8GsGOehTFabRf+QOZK6Ek/Xgwp8yLj8UKd7kmneBpXk=";
|
||||
})
|
||||
# Removes a bunch of broken python tests. Also useful to make sure the pybind11
|
||||
# patch applies cleanly.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/davisking/dlib/commit/a517aaa0bbb0524a1a7be3d6637aa6300c2e1dfe.patch";
|
||||
sha256 = "sha256-31/c1ViVPdJ/gQVMV22Nnr01/Yg13s9tPowfh4BedNg=";
|
||||
})
|
||||
# Upgrade pybind11 to 2.4.0. Relevant to fix Python 3.11 support.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/davisking/dlib/commit/65bce59a1512cf222dec01d3e0f29b612dd181f5.patch";
|
||||
sha256 = "sha256-04TGJdn9p9YhDVZHAU9ncgCyR1vrnRxKkTRDSwOk/fw=";
|
||||
excludes = [ ".github/workflows/build_python.yml" ];
|
||||
})
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytest more-itertools ];
|
||||
|
||||
|
|
55
pkgs/development/python-modules/drf-ujson2/default.nix
Normal file
55
pkgs/development/python-modules/drf-ujson2/default.nix
Normal file
|
@ -0,0 +1,55 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# dependencies
|
||||
, django
|
||||
, djangorestframework
|
||||
, ujson
|
||||
|
||||
# tests
|
||||
, pytest-django
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "drf-ujson2";
|
||||
version = "1.7.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Amertz08";
|
||||
repo = "drf_ujson2";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-kbpZN1zOXHvRPcn+Sjbelq74cWgvCUeMXZy1eFSa6rA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/--cov/d' setup.cfg
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
django
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
djangorestframework
|
||||
ujson
|
||||
];
|
||||
|
||||
env.DJANGO_SETTINGS_MODULE = "tests.settings";
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-django
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/Amertz08/drf_ujson2/releases/tag/v${version}";
|
||||
description = "JSON parser and renderer using ujson for Django Rest Framework";
|
||||
homepage = "https://github.com/Amertz08/drf_ujson2";
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
|
@ -73,7 +73,7 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Universal archive extractor using z7zip, libarchve, other libraries and the Python standard library";
|
||||
description = "Universal archive extractor using z7zip, libarchive, other libraries and the Python standard library";
|
||||
homepage = "https://github.com/nexB/extractcode";
|
||||
changelog = "https://github.com/nexB/extractcode/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "home-assistant-chip-clusters";
|
||||
version = "2023.2.2";
|
||||
version = "2023.4.1";
|
||||
format = "wheel";
|
||||
|
||||
src = fetchPypi {
|
||||
|
@ -14,7 +14,7 @@ buildPythonPackage rec {
|
|||
pname = "home_assistant_chip_clusters";
|
||||
dist = "py3";
|
||||
python = "py3";
|
||||
hash = "sha256-FsIE4dcZOP24/DX6TLnmoCHMYe4f9gWqmv2L25ujqu4=";
|
||||
hash = "sha256-kRgsXKn7j736yWfyRZ0LXP+Ftac5pRLmdn1LUmTYkCw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "home-assistant-chip-core";
|
||||
version = "2023.2.2";
|
||||
version = "2023.4.1";
|
||||
format = "wheel";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
@ -33,11 +33,11 @@ buildPythonPackage rec {
|
|||
system = {
|
||||
"aarch64-linux" = {
|
||||
name = "aarch64";
|
||||
hash = "sha256-e3OIpTGPMj+YSx/pqzGi5paUAIpDhI94prhHL3DkM18=";
|
||||
hash = "sha256-Rke4cVHdpJjrqqiNKWFwglerr61VyiTNKj8AhLE0+Xo=";
|
||||
};
|
||||
"x86_64-linux" = {
|
||||
name = "x86_64";
|
||||
hash = "sha256-15olERnpfe4PbDsDfw47vsYsqjFe8P8IDmSSGxGLtx8=";
|
||||
hash = "sha256-ihbbNFuR+3SLzdZgApJawpwnZeo1HPoOBWJXkY+5RSM=";
|
||||
};
|
||||
}.${stdenv.system} or (throw "Unsupported system");
|
||||
in fetchPypi {
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "into-dbus-python";
|
||||
version = "0.08";
|
||||
version = "0.8.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stratis-storage";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Z8e6oAvRMIisMjG4HcS5jSH1znGVc7pGpMITo5fXYVs=";
|
||||
hash = "sha256-Ld/DyhVaDiWUXgqmvSmEHqFW2dcoRNM0O4X5DXE3UtM=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -63,7 +63,7 @@ let
|
|||
# aarch64-darwin is broken because of https://github.com/bazelbuild/rules_cc/pull/136
|
||||
# however even with that fix applied, it doesn't work for everyone:
|
||||
# https://github.com/NixOS/nixpkgs/pull/184395#issuecomment-1207287129
|
||||
broken = stdenv.isAarch64;
|
||||
broken = stdenv.isAarch64 || stdenv.isDarwin;
|
||||
};
|
||||
|
||||
cudatoolkit_joined = symlinkJoin {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "latex2mathml";
|
||||
version = "3.75.3";
|
||||
version = "3.75.5";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
|
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
|||
owner = "roniemartinez";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-i1OJ6hmF04cdDOG1gfyseCJu+e0LEr1I3UwLXbdQJqQ=";
|
||||
hash = "sha256-ezSksOUvSUqo8MktjKU5ZWhAxtFHwFkSAOJ8rG2jgoU=";
|
||||
};
|
||||
|
||||
format = "pyproject";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, unittestCheckHook
|
||||
|
@ -30,6 +31,8 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
meta = with lib; {
|
||||
# Tests indicate lack of 3.11 compatibility
|
||||
broken = pythonAtLeast "3.11";
|
||||
description = "eQ-3/ELV MAX! Cube Python API";
|
||||
homepage = "https://github.com/hackercowboy/python-maxcube-api";
|
||||
license = licenses.mit;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "mesa";
|
||||
version = "1.2.0";
|
||||
version = "1.2.1";
|
||||
format = "setuptools";
|
||||
|
||||
# According to their docs, this library is for Python 3+.
|
||||
|
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
|||
src = fetchPypi {
|
||||
pname = "Mesa";
|
||||
inherit version;
|
||||
hash = "sha256-Hb+iISf9Aug3JIf+3kcXwYPshAe2CkqbGPEuSY2Ij9s=";
|
||||
hash = "sha256-SJiAuQSnatBnsZpwF3KyBTd1oiNjCpJEepq7t0QjoAQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
|
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
|||
httpx
|
||||
];
|
||||
|
||||
# disable coverage options as they don't provide us value, and they break the defalt pytestCheckHook
|
||||
# disable coverage options as they don't provide us value, and they break the default pytestCheckHook
|
||||
preCheck = ''
|
||||
sed -i '/addopts/d' ./setup.cfg
|
||||
'';
|
||||
|
|
|
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
|||
pythonImportsCheck = [ "os_service_types" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for consuming OpenStack sevice-types-authority data";
|
||||
description = "Python library for consuming OpenStack service-types-authority data";
|
||||
homepage = "https://github.com/openstack/os-service-types";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.openstack.members;
|
||||
|
|
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# propagates
|
||||
, paypalhttp
|
||||
|
||||
# tersts
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "paypal-checkout-serversdk";
|
||||
version = "1.0.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "paypal";
|
||||
repo = "Checkout-Python-SDK";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-04ojNJeqVMdhnGpeCD+wzgKGLI22tVvrMW3gF/SH7KU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# outdated python2 samples
|
||||
rm -rf sample
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
paypalhttp
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# network tests
|
||||
"testOrdersPatchTest"
|
||||
"testOrdersCreateTest"
|
||||
"testOrderGetRequestTest"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/paypal/Checkout-Python-SDK/releases/tag/${version}";
|
||||
description = "Python SDK for Checkout RESTful APIs";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
45
pkgs/development/python-modules/paypalhttp/default.nix
Normal file
45
pkgs/development/python-modules/paypalhttp/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# propagates
|
||||
, pyopenssl
|
||||
, requests
|
||||
, six
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "paypalhttp";
|
||||
version = "1.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "paypal";
|
||||
repo = "paypalhttp_python";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-3ihcpYtpcejPkiyf4g4jveyNU6flQB2sv9EZ5Pd7tUc=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
six
|
||||
pyopenssl
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/paypal/paypalhttp_python/releases/tag/${version}";
|
||||
description = "PayPalHttp is a generic HTTP Client";
|
||||
homepage = "https://github.com/paypal/paypalhttp_python";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
|
@ -15,7 +15,7 @@ in
|
|||
buildPythonPackage {
|
||||
inherit (protobuf) pname src;
|
||||
|
||||
# protobuf 3.21 coresponds with its python library 4.21
|
||||
# protobuf 3.21 corresponds with its python library 4.21
|
||||
version =
|
||||
if lib.versionAtLeast protobuf.version "3.21"
|
||||
then "${toString (lib.toInt versionMajor + 1)}.${versionMinor}.${versionPatch}"
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, opuslib
|
||||
, protobuf
|
||||
, pytestCheckHook
|
||||
|
@ -11,7 +10,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "pymumble";
|
||||
version = "1.7";
|
||||
version = "1.6.1"; # Don't upgrade to 1.7, version was yanked
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
@ -20,7 +19,7 @@ buildPythonPackage rec {
|
|||
owner = "azlux";
|
||||
repo = "pymumble";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-NMp1yZ+R9vmne7old7z9UvcxSi6C044g68ZQsofT0gA=";
|
||||
hash = "sha256-+sT5pqdm4A2rrUcUUmvsH+iazg80+/go0zM1vr9oeuE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyswitchbee";
|
||||
version = "1.7.26";
|
||||
version = "1.8.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
|||
owner = "jafar-atili";
|
||||
repo = "pySwitchbee";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-g8g0QSih2AM/xPHdjuYGj6eB+kKqldjNHZ2Co60mUnk=";
|
||||
hash = "sha256-bMxWrapFX689yvC6+9NUunEtTe79+QNauFa1ZjG9ON4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue