Merge staging-next into staging
This commit is contained in:
commit
1342506d40
37 changed files with 597 additions and 272 deletions
|
@ -82,4 +82,11 @@ This is used with repo.or.cz repositories. The arguments expected are very simil
|
||||||
|
|
||||||
## `fetchFromSourcehut` {#fetchfromsourcehut}
|
## `fetchFromSourcehut` {#fetchfromsourcehut}
|
||||||
|
|
||||||
This is used with sourcehut repositories. The arguments expected are very similar to fetchFromGitHub above. Don't forget the tilde (~) in front of the user name!
|
This is used with sourcehut repositories. Similar to `fetchFromGitHub` above,
|
||||||
|
it expects `owner`, `repo`, `rev` and `sha256`, but don't forget the tilde (~)
|
||||||
|
in front of the username! Expected arguments also include `vc` ("git" (default)
|
||||||
|
or "hg"), `domain` and `fetchSubmodules`.
|
||||||
|
|
||||||
|
If `fetchSubmodules` is `true`, `fetchFromSourcehut` uses `fetchgit`
|
||||||
|
or `fetchhg` with `fetchSubmodules` or `fetchSubrepos` set to `true`,
|
||||||
|
respectively. Otherwise the fetcher uses `fetchzip`.
|
||||||
|
|
|
@ -338,6 +338,15 @@
|
||||||
files.
|
files.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
<literal>fetchFromSourcehut</literal> now allows fetching
|
||||||
|
repositories recursively using <literal>fetchgit</literal> or
|
||||||
|
<literal>fetchhg</literal> if the argument
|
||||||
|
<literal>fetchSubmodules</literal> is set to
|
||||||
|
<literal>true</literal>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -126,3 +126,7 @@ In addition to numerous new and upgraded packages, this release has the followin
|
||||||
- The `services.stubby` module was converted to a [settings-style](https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md) configuration.
|
- The `services.stubby` module was converted to a [settings-style](https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md) configuration.
|
||||||
|
|
||||||
- The option `services.duplicati.dataDir` has been added to allow changing the location of duplicati's files.
|
- The option `services.duplicati.dataDir` has been added to allow changing the location of duplicati's files.
|
||||||
|
|
||||||
|
- `fetchFromSourcehut` now allows fetching repositories recursively
|
||||||
|
using `fetchgit` or `fetchhg` if the argument `fetchSubmodules`
|
||||||
|
is set to `true`.
|
||||||
|
|
|
@ -329,9 +329,6 @@ in {
|
||||||
${pkgs.php}/bin/php artisan cache:clear
|
${pkgs.php}/bin/php artisan cache:clear
|
||||||
${pkgs.php}/bin/php artisan config:clear
|
${pkgs.php}/bin/php artisan config:clear
|
||||||
${pkgs.php}/bin/php artisan view:clear
|
${pkgs.php}/bin/php artisan view:clear
|
||||||
${pkgs.php}/bin/php artisan config:cache
|
|
||||||
${pkgs.php}/bin/php artisan route:cache
|
|
||||||
${pkgs.php}/bin/php artisan view:cache
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -359,7 +359,7 @@ in
|
||||||
|
|
||||||
DirectoryIndex index.php
|
DirectoryIndex index.php
|
||||||
Require all granted
|
Require all granted
|
||||||
Options +FollowSymLinks
|
Options +FollowSymLinks -Indexes
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
# https://wordpress.org/support/article/hardening-wordpress/#securing-wp-config-php
|
# https://wordpress.org/support/article/hardening-wordpress/#securing-wp-config-php
|
||||||
|
|
|
@ -20,16 +20,20 @@ let
|
||||||
optionalString fixBinary "F";
|
optionalString fixBinary "F";
|
||||||
in ":${name}:${type}:${offset'}:${magicOrExtension}:${mask'}:${interpreter}:${flags}";
|
in ":${name}:${type}:${offset'}:${magicOrExtension}:${mask'}:${interpreter}:${flags}";
|
||||||
|
|
||||||
activationSnippet = name: { interpreter, ... }: ''
|
activationSnippet = name: { interpreter, wrapInterpreterInShell, ... }: if wrapInterpreterInShell then ''
|
||||||
rm -f /run/binfmt/${name}
|
rm -f /run/binfmt/${name}
|
||||||
cat > /run/binfmt/${name} << 'EOF'
|
cat > /run/binfmt/${name} << 'EOF'
|
||||||
#!${pkgs.bash}/bin/sh
|
#!${pkgs.bash}/bin/sh
|
||||||
exec -- ${interpreter} "$@"
|
exec -- ${interpreter} "$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x /run/binfmt/${name}
|
chmod +x /run/binfmt/${name}
|
||||||
|
'' else ''
|
||||||
|
rm -f /run/binfmt/${name}
|
||||||
|
ln -s ${interpreter} /run/binfmt/${name}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
getEmulator = system: (lib.systems.elaborate { inherit system; }).emulator pkgs;
|
getEmulator = system: (lib.systems.elaborate { inherit system; }).emulator pkgs;
|
||||||
|
getQemuArch = system: (lib.systems.elaborate { inherit system; }).qemuArch;
|
||||||
|
|
||||||
# Mapping of systems to “magicOrExtension” and “mask”. Mostly taken from:
|
# Mapping of systems to “magicOrExtension” and “mask”. Mostly taken from:
|
||||||
# - https://github.com/cleverca22/nixos-configs/blob/master/qemu.nix
|
# - https://github.com/cleverca22/nixos-configs/blob/master/qemu.nix
|
||||||
|
@ -238,6 +242,25 @@ in {
|
||||||
'';
|
'';
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
wrapInterpreterInShell = mkOption {
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Whether to wrap the interpreter in a shell script.
|
||||||
|
|
||||||
|
This allows a shell command to be set as the interpreter.
|
||||||
|
'';
|
||||||
|
type = types.bool;
|
||||||
|
};
|
||||||
|
|
||||||
|
interpreterSandboxPath = mkOption {
|
||||||
|
internal = true;
|
||||||
|
default = null;
|
||||||
|
description = ''
|
||||||
|
Path of the interpreter to expose in the build sandbox.
|
||||||
|
'';
|
||||||
|
type = types.nullOr types.path;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
@ -258,16 +281,37 @@ in {
|
||||||
config = {
|
config = {
|
||||||
boot.binfmt.registrations = builtins.listToAttrs (map (system: {
|
boot.binfmt.registrations = builtins.listToAttrs (map (system: {
|
||||||
name = system;
|
name = system;
|
||||||
value = {
|
value = let
|
||||||
interpreter = getEmulator system;
|
interpreter = getEmulator system;
|
||||||
|
qemuArch = getQemuArch system;
|
||||||
|
|
||||||
|
preserveArgvZero = "qemu-${qemuArch}" == baseNameOf interpreter;
|
||||||
|
interpreterReg = let
|
||||||
|
wrapperName = "qemu-${qemuArch}-binfmt-P";
|
||||||
|
wrapper = pkgs.wrapQemuBinfmtP wrapperName interpreter;
|
||||||
|
in
|
||||||
|
if preserveArgvZero then "${wrapper}/bin/${wrapperName}"
|
||||||
|
else interpreter;
|
||||||
|
in {
|
||||||
|
inherit preserveArgvZero;
|
||||||
|
|
||||||
|
interpreter = interpreterReg;
|
||||||
|
wrapInterpreterInShell = !preserveArgvZero;
|
||||||
|
interpreterSandboxPath = dirOf (dirOf interpreterReg);
|
||||||
} // (magics.${system} or (throw "Cannot create binfmt registration for system ${system}"));
|
} // (magics.${system} or (throw "Cannot create binfmt registration for system ${system}"));
|
||||||
}) cfg.emulatedSystems);
|
}) cfg.emulatedSystems);
|
||||||
# TODO: add a nix.extraPlatforms option to NixOS!
|
# TODO: add a nix.extraPlatforms option to NixOS!
|
||||||
nix.extraOptions = lib.mkIf (cfg.emulatedSystems != []) ''
|
nix.extraOptions = lib.mkIf (cfg.emulatedSystems != []) ''
|
||||||
extra-platforms = ${toString (cfg.emulatedSystems ++ lib.optional pkgs.stdenv.hostPlatform.isx86_64 "i686-linux")}
|
extra-platforms = ${toString (cfg.emulatedSystems ++ lib.optional pkgs.stdenv.hostPlatform.isx86_64 "i686-linux")}
|
||||||
'';
|
'';
|
||||||
nix.sandboxPaths = lib.mkIf (cfg.emulatedSystems != [])
|
nix.sandboxPaths = lib.mkIf (cfg.emulatedSystems != []) (
|
||||||
([ "/run/binfmt" "${pkgs.bash}" ] ++ (map (system: dirOf (dirOf (getEmulator system))) cfg.emulatedSystems));
|
let
|
||||||
|
ruleFor = system: cfg.registrations.${system};
|
||||||
|
hasWrappedRule = lib.any (system: (ruleFor system).wrapInterpreterInShell) cfg.emulatedSystems;
|
||||||
|
in [ "/run/binfmt" ]
|
||||||
|
++ lib.optional hasWrappedRule "${pkgs.bash}"
|
||||||
|
++ (map (system: (ruleFor system).interpreterSandboxPath) cfg.emulatedSystems)
|
||||||
|
);
|
||||||
|
|
||||||
environment.etc."binfmt.d/nixos.conf".source = builtins.toFile "binfmt_nixos.conf"
|
environment.etc."binfmt.d/nixos.conf".source = builtins.toFile "binfmt_nixos.conf"
|
||||||
(lib.concatStringsSep "\n" (lib.mapAttrsToList makeBinfmtLine config.boot.binfmt.registrations));
|
(lib.concatStringsSep "\n" (lib.mapAttrsToList makeBinfmtLine config.boot.binfmt.registrations));
|
||||||
|
|
|
@ -1,24 +1,90 @@
|
||||||
# Teach the kernel how to run armv7l and aarch64-linux binaries,
|
# Teach the kernel how to run armv7l and aarch64-linux binaries,
|
||||||
# and run GNU Hello for these architectures.
|
# and run GNU Hello for these architectures.
|
||||||
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
||||||
name = "systemd-binfmt";
|
{ system ? builtins.currentSystem,
|
||||||
machine = {
|
config ? {},
|
||||||
boot.binfmt.emulatedSystems = [
|
pkgs ? import ../.. { inherit system config; }
|
||||||
"armv7l-linux"
|
}:
|
||||||
"aarch64-linux"
|
|
||||||
];
|
with import ../lib/testing-python.nix { inherit system pkgs; };
|
||||||
|
|
||||||
|
let
|
||||||
|
expectArgv0 = xpkgs: xpkgs.runCommandCC "expect-argv0" {
|
||||||
|
src = pkgs.writeText "expect-argv0.c" ''
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
int main(int argc, char **argv) {
|
||||||
|
fprintf(stderr, "Our argv[0] is %s\n", argv[0]);
|
||||||
|
|
||||||
|
if (strcmp(argv[0], argv[1])) {
|
||||||
|
fprintf(stderr, "ERROR: argv[0] is %s, should be %s\n", argv[0], argv[1]);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
} ''
|
||||||
|
$CC -o $out $src
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
basic = makeTest {
|
||||||
|
name = "systemd-binfmt";
|
||||||
|
machine = {
|
||||||
|
boot.binfmt.emulatedSystems = [
|
||||||
|
"armv7l-linux"
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
testScript = let
|
||||||
|
helloArmv7l = pkgs.pkgsCross.armv7l-hf-multiplatform.hello;
|
||||||
|
helloAarch64 = pkgs.pkgsCross.aarch64-multiplatform.hello;
|
||||||
|
in ''
|
||||||
|
machine.start()
|
||||||
|
|
||||||
|
assert "world" in machine.succeed(
|
||||||
|
"${helloArmv7l}/bin/hello"
|
||||||
|
)
|
||||||
|
|
||||||
|
assert "world" in machine.succeed(
|
||||||
|
"${helloAarch64}/bin/hello"
|
||||||
|
)
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = let
|
preserveArgvZero = makeTest {
|
||||||
helloArmv7l = pkgs.pkgsCross.armv7l-hf-multiplatform.hello;
|
name = "systemd-binfmt-preserve-argv0";
|
||||||
helloAarch64 = pkgs.pkgsCross.aarch64-multiplatform.hello;
|
machine = {
|
||||||
in ''
|
boot.binfmt.emulatedSystems = [
|
||||||
machine.start()
|
"aarch64-linux"
|
||||||
assert "world" in machine.succeed(
|
];
|
||||||
"${helloArmv7l}/bin/hello"
|
};
|
||||||
)
|
testScript = let
|
||||||
assert "world" in machine.succeed(
|
testAarch64 = expectArgv0 pkgs.pkgsCross.aarch64-multiplatform;
|
||||||
"${helloAarch64}/bin/hello"
|
in ''
|
||||||
)
|
machine.start()
|
||||||
'';
|
machine.succeed("exec -a meow ${testAarch64} meow")
|
||||||
})
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
ldPreload = makeTest {
|
||||||
|
name = "systemd-binfmt-ld-preload";
|
||||||
|
machine = {
|
||||||
|
boot.binfmt.emulatedSystems = [
|
||||||
|
"aarch64-linux"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
testScript = let
|
||||||
|
helloAarch64 = pkgs.pkgsCross.aarch64-multiplatform.hello;
|
||||||
|
libredirectAarch64 = pkgs.pkgsCross.aarch64-multiplatform.libredirect;
|
||||||
|
in ''
|
||||||
|
machine.start()
|
||||||
|
|
||||||
|
assert "error" not in machine.succeed(
|
||||||
|
"LD_PRELOAD='${libredirectAarch64}/lib/libredirect.so' ${helloAarch64}/bin/hello 2>&1"
|
||||||
|
).lower()
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -1,16 +1,33 @@
|
||||||
{ mkDerivation, lib, fetchFromGitLab, cmake
|
{ mkDerivation
|
||||||
, boost, netcdf, hdf5, fftwSinglePrec, muparser, openssl, ffmpeg, python
|
, lib
|
||||||
, qtbase, qtsvg, qttools, qscintilla }:
|
, stdenv
|
||||||
|
, fetchFromGitLab
|
||||||
|
, cmake
|
||||||
|
, boost
|
||||||
|
, bzip2
|
||||||
|
, ffmpeg
|
||||||
|
, fftwSinglePrec
|
||||||
|
, hdf5
|
||||||
|
, muparser
|
||||||
|
, netcdf
|
||||||
|
, openssl
|
||||||
|
, python3
|
||||||
|
, qscintilla
|
||||||
|
, qtbase
|
||||||
|
, qtsvg
|
||||||
|
, qttools
|
||||||
|
, VideoDecodeAcceleration
|
||||||
|
}:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "ovito";
|
pname = "ovito";
|
||||||
version = "3.4.0";
|
version = "3.6.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "stuko";
|
owner = "stuko";
|
||||||
repo = "ovito";
|
repo = "ovito";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1y3wr6yzpsl0qm7cicp2mppfszxd0fgx8hm99in9wff9qd0r16b5";
|
sha256 = "sha256-yQ8gSe/QM1RRNxk4bDJ+K5QX0eYjZ+iG3QOHj01tJhY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -19,17 +36,20 @@ mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost
|
boost
|
||||||
netcdf
|
bzip2
|
||||||
hdf5
|
|
||||||
fftwSinglePrec
|
|
||||||
muparser
|
|
||||||
openssl
|
|
||||||
ffmpeg
|
ffmpeg
|
||||||
python
|
fftwSinglePrec
|
||||||
|
hdf5
|
||||||
|
muparser
|
||||||
|
netcdf
|
||||||
|
openssl
|
||||||
|
python3
|
||||||
|
qscintilla
|
||||||
qtbase
|
qtbase
|
||||||
qtsvg
|
qtsvg
|
||||||
qttools
|
qttools
|
||||||
qscintilla
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
VideoDecodeAcceleration
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -37,5 +57,6 @@ mkDerivation rec {
|
||||||
homepage = "https://ovito.org";
|
homepage = "https://ovito.org";
|
||||||
license = with licenses; [ gpl3Only mit ];
|
license = with licenses; [ gpl3Only mit ];
|
||||||
maintainers = with maintainers; [ twhitehead ];
|
maintainers = with maintainers; [ twhitehead ];
|
||||||
|
broken = stdenv.isDarwin; # clang-11: error: no such file or directory: '$-DOVITO_COPYRIGHT_NOTICE=...
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,60 @@
|
||||||
{ lib, stdenv, fetchurl, zlib, openssl, libre, librem, pkg-config, gst_all_1
|
{ lib
|
||||||
, cairo, mpg123, alsa-lib, SDL, libv4l, celt, libsndfile, srtp, ffmpeg
|
, stdenv
|
||||||
, gsm, speex, portaudio, spandsp, libuuid, libvpx
|
, fetchFromGitHub
|
||||||
|
, zlib
|
||||||
|
, openssl
|
||||||
|
, libre
|
||||||
|
, librem
|
||||||
|
, pkg-config
|
||||||
|
, gst_all_1
|
||||||
|
, cairo
|
||||||
|
, mpg123
|
||||||
|
, alsa-lib
|
||||||
|
, SDL2
|
||||||
|
, libv4l
|
||||||
|
, celt
|
||||||
|
, libsndfile
|
||||||
|
, srtp
|
||||||
|
, ffmpeg
|
||||||
|
, gsm
|
||||||
|
, speex
|
||||||
|
, portaudio
|
||||||
|
, spandsp3
|
||||||
|
, libuuid
|
||||||
|
, libvpx
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.6.5";
|
version = "1.1.0";
|
||||||
pname = "baresip";
|
pname = "baresip";
|
||||||
src=fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://www.creytiv.com/pub/baresip-${version}.tar.gz";
|
owner = "baresip";
|
||||||
sha256 = "13di0ycdcr2q2a20mjvyaqfmvk5xldwqaxklqsz7470jnbc5n0rb";
|
repo = "baresip";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-9mc1Beo7/iNhDXSDC/jiTL+lJRt8ah/1xF1heoHTE+g=";
|
||||||
};
|
};
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs modules/ctrl_dbus/gen.sh
|
||||||
|
'';
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [zlib openssl libre librem cairo mpg123
|
buildInputs = [
|
||||||
alsa-lib SDL libv4l celt libsndfile srtp ffmpeg gsm speex portaudio spandsp libuuid
|
zlib
|
||||||
|
openssl
|
||||||
|
libre
|
||||||
|
librem
|
||||||
|
cairo
|
||||||
|
mpg123
|
||||||
|
alsa-lib
|
||||||
|
SDL2
|
||||||
|
libv4l
|
||||||
|
celt
|
||||||
|
libsndfile
|
||||||
|
srtp
|
||||||
|
ffmpeg
|
||||||
|
gsm
|
||||||
|
speex
|
||||||
|
portaudio
|
||||||
|
spandsp3
|
||||||
|
libuuid
|
||||||
libvpx
|
libvpx
|
||||||
] ++ (with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-bad gst-plugins-good ]);
|
] ++ (with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-bad gst-plugins-good ]);
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
|
@ -23,30 +66,55 @@ stdenv.mkDerivation rec {
|
||||||
"USE_VIDEO=1"
|
"USE_VIDEO=1"
|
||||||
"CCACHE_DISABLE=1"
|
"CCACHE_DISABLE=1"
|
||||||
|
|
||||||
"USE_ALSA=1" "USE_AMR=1" "USE_CAIRO=1" "USE_CELT=1"
|
"USE_ALSA=1"
|
||||||
"USE_CONS=1" "USE_EVDEV=1" "USE_FFMPEG=1" "USE_GSM=1" "USE_GST1=1"
|
"USE_AMR=1"
|
||||||
"USE_L16=1" "USE_MPG123=1" "USE_OSS=1" "USE_PLC=1" "USE_VPX=1"
|
"USE_CAIRO=1"
|
||||||
"USE_PORTAUDIO=1" "USE_SDL=1" "USE_SNDFILE=1" "USE_SPEEX=1"
|
"USE_CELT=1"
|
||||||
"USE_SPEEX_AEC=1" "USE_SPEEX_PP=1" "USE_SPEEX_RESAMP=1" "USE_SRTP=1"
|
"USE_CONS=1"
|
||||||
"USE_STDIO=1" "USE_SYSLOG=1" "USE_UUID=1" "USE_V4L2=1" "USE_X11=1"
|
"USE_EVDEV=1"
|
||||||
|
"USE_FFMPEG=1"
|
||||||
|
"USE_GSM=1"
|
||||||
|
"USE_GST1=1"
|
||||||
|
"USE_L16=1"
|
||||||
|
"USE_MPG123=1"
|
||||||
|
"USE_OSS=1"
|
||||||
|
"USE_PLC=1"
|
||||||
|
"USE_VPX=1"
|
||||||
|
"USE_PORTAUDIO=1"
|
||||||
|
"USE_SDL=1"
|
||||||
|
"USE_SNDFILE=1"
|
||||||
|
"USE_SPEEX=1"
|
||||||
|
"USE_SPEEX_AEC=1"
|
||||||
|
"USE_SPEEX_PP=1"
|
||||||
|
"USE_SPEEX_RESAMP=1"
|
||||||
|
"USE_SRTP=1"
|
||||||
|
"USE_STDIO=1"
|
||||||
|
"USE_SYSLOG=1"
|
||||||
|
"USE_UUID=1"
|
||||||
|
"USE_V4L2=1"
|
||||||
|
"USE_X11=1"
|
||||||
|
|
||||||
"USE_BV32=" "USE_COREAUDIO=" "USE_G711=1" "USE_G722=1" "USE_G722_1="
|
"USE_BV32="
|
||||||
"USE_ILBC=" "USE_OPUS=" "USE_SILK="
|
"USE_COREAUDIO="
|
||||||
|
"USE_G711=1"
|
||||||
|
"USE_G722=1"
|
||||||
|
"USE_G722_1="
|
||||||
|
"USE_ILBC="
|
||||||
|
"USE_OPUS="
|
||||||
|
"USE_SILK="
|
||||||
]
|
]
|
||||||
++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
|
++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
|
||||||
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}"
|
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}"
|
||||||
;
|
;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE='' -I${librem}/include/rem -I${gsm}/include/gsm
|
NIX_CFLAGS_COMPILE = '' -I${librem}/include/rem -I${gsm}/include/gsm
|
||||||
-DHAVE_INTTYPES_H -D__GLIBC__
|
-DHAVE_INTTYPES_H -D__GLIBC__
|
||||||
-D__need_timeval -D__need_timespec -D__need_time_t '';
|
-D__need_timeval -D__need_timespec -D__need_time_t '';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.creytiv.com/baresip.html";
|
description = "A modular SIP User-Agent with audio and video support";
|
||||||
platforms = with lib.platforms; linux;
|
homepage = "https://github.com/baresip/baresip";
|
||||||
maintainers = with lib.maintainers; [raskin];
|
maintainers = with lib.maintainers; [ elohmeier raskin ];
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
downloadPage = "http://www.creytiv.com/pub/";
|
|
||||||
updateWalker = true;
|
|
||||||
downloadURLRegexp = "/baresip-.*[.]tar[.].*";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -714,11 +714,11 @@
|
||||||
md5name = "505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca-libpng-1.6.37.tar.xz";
|
md5name = "505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca-libpng-1.6.37.tar.xz";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "poppler-21.01.0.tar.xz";
|
name = "poppler-21.11.0.tar.xz";
|
||||||
url = "https://dev-www.libreoffice.org/src/poppler-21.01.0.tar.xz";
|
url = "https://dev-www.libreoffice.org/src/poppler-21.11.0.tar.xz";
|
||||||
sha256 = "016dde34e5f868ea98a32ca99b643325a9682281500942b7113f4ec88d20e2f3";
|
sha256 = "31b76b5cac0a48612fdd154c02d9eca01fd38fb8eaa77c1196840ecdeb53a584";
|
||||||
md5 = "";
|
md5 = "";
|
||||||
md5name = "016dde34e5f868ea98a32ca99b643325a9682281500942b7113f4ec88d20e2f3-poppler-21.01.0.tar.xz";
|
md5name = "31b76b5cac0a48612fdd154c02d9eca01fd38fb8eaa77c1196840ecdeb53a584-poppler-21.11.0.tar.xz";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "poppler-data-0.4.10.tar.gz";
|
name = "poppler-data-0.4.10.tar.gz";
|
||||||
|
|
|
@ -8,8 +8,8 @@ rec {
|
||||||
|
|
||||||
major = "7";
|
major = "7";
|
||||||
minor = "2";
|
minor = "2";
|
||||||
patch = "4";
|
patch = "5";
|
||||||
tweak = "1";
|
tweak = "2";
|
||||||
|
|
||||||
subdir = "${major}.${minor}.${patch}";
|
subdir = "${major}.${minor}.${patch}";
|
||||||
|
|
||||||
|
@ -17,13 +17,13 @@ rec {
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.documentfoundation.org/libreoffice/src/${subdir}/libreoffice-${version}.tar.xz";
|
url = "https://download.documentfoundation.org/libreoffice/src/${subdir}/libreoffice-${version}.tar.xz";
|
||||||
sha256 = "sha256-Ymi5BmpgWGzwpfXtmWDN+Gpf9Yb+Zpm/TSltWA3gjyE=";
|
sha256 = "sha256-Z8G/sFnUMyhrAlKpFWJ7M69ju19LbslQnRO53UdVEqc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# FIXME rename
|
# FIXME rename
|
||||||
translations = fetchSrc {
|
translations = fetchSrc {
|
||||||
name = "translations";
|
name = "translations";
|
||||||
sha256 = "sha256-8nzCt7/J7gqJPtHOrVu7UTonJw1pxu4fnLWJyWOUHa8=";
|
sha256 = "sha256-9rnuRifsEX7RAUdsX6VVw/xQS6dZeS3RbKnoC39uMd8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# the "dictionaries" archive is not used for LO build because we already build hunspellDicts packages from
|
# the "dictionaries" archive is not used for LO build because we already build hunspellDicts packages from
|
||||||
|
@ -31,6 +31,6 @@ rec {
|
||||||
|
|
||||||
help = fetchSrc {
|
help = fetchSrc {
|
||||||
name = "help";
|
name = "help";
|
||||||
sha256 = "sha256-rZb1ej3GbgXOHOZWVKKJVuir2urLmvGmrdpB1vpcaCk=";
|
sha256 = "sha256-6vERLWh0fkQcSRkC37fw2HBqxVtbr9kPEhOyWXjMrfM=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
79
pkgs/applications/virtualization/qemu/binfmt-p-wrapper.c
Normal file
79
pkgs/applications/virtualization/qemu/binfmt-p-wrapper.c
Normal file
|
@ -0,0 +1,79 @@
|
||||||
|
// This is a tiny wrapper that converts the extra arv[0] argument
|
||||||
|
// from binfmt-misc with the P flag enabled to QEMU parameters.
|
||||||
|
// It also prevents LD_* environment variables from being applied
|
||||||
|
// to QEMU itself.
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifndef TARGET_QEMU
|
||||||
|
#error "Define TARGET_QEMU to be the path to the qemu-user binary (e.g., -DTARGET_QEMU=\"/full/path/to/qemu-riscv64\")"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern char **environ;
|
||||||
|
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
if (argc < 3) {
|
||||||
|
fprintf(stderr, "%s: This should be run as the binfmt interpreter with the P flag\n", argv[0]);
|
||||||
|
fprintf(stderr, "%s: My preconfigured qemu-user binary: %s\n", argv[0], TARGET_QEMU);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t environ_count = 0;
|
||||||
|
for (char **cur = environ; *cur != NULL; ++cur) {
|
||||||
|
environ_count++;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t new_argc = 3;
|
||||||
|
size_t new_argv_alloc = argc + 2 * environ_count + 2; // [ "-E", env ] for each LD_* env + [ "-0", argv0 ]
|
||||||
|
char **new_argv = (char**)malloc((new_argv_alloc + 1) * sizeof(char*));
|
||||||
|
if (!new_argv) {
|
||||||
|
fprintf(stderr, "FATAL: Failed to allocate new argv array\n");
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
|
new_argv[0] = TARGET_QEMU;
|
||||||
|
new_argv[1] = "-0";
|
||||||
|
new_argv[2] = argv[2];
|
||||||
|
|
||||||
|
// Pass all LD_ env variables as -E and strip them in `new_environ`
|
||||||
|
size_t new_environc = 0;
|
||||||
|
char **new_environ = (char**)malloc((environ_count + 1) * sizeof(char*));
|
||||||
|
if (!new_environ) {
|
||||||
|
fprintf(stderr, "FATAL: Failed to allocate new environ array\n");
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
|
||||||
|
for (char **cur = environ; *cur != NULL; ++cur) {
|
||||||
|
if (strncmp("LD_", *cur, 3) == 0) {
|
||||||
|
new_argv[new_argc++] = "-E";
|
||||||
|
new_argv[new_argc++] = *cur;
|
||||||
|
} else {
|
||||||
|
new_environ[new_environc++] = *cur;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
new_environ[new_environc] = NULL;
|
||||||
|
|
||||||
|
size_t new_arg_start = new_argc;
|
||||||
|
new_argc += argc - 3 + 2; // [ "--", full_binary_path ]
|
||||||
|
|
||||||
|
if (argc > 3) {
|
||||||
|
memcpy(&new_argv[new_arg_start + 2], &argv[3], (argc - 3) * sizeof(char**));
|
||||||
|
}
|
||||||
|
|
||||||
|
new_argv[new_arg_start] = "--";
|
||||||
|
new_argv[new_arg_start + 1] = argv[1];
|
||||||
|
new_argv[new_argc] = NULL;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
for (size_t i = 0; i < new_argc; ++i) {
|
||||||
|
fprintf(stderr, "argv[%zu] = %s\n", i, new_argv[i]);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return execve(new_argv[0], new_argv, new_environ);
|
||||||
|
}
|
||||||
|
|
||||||
|
// vim: et:ts=4:sw=4
|
31
pkgs/applications/virtualization/qemu/binfmt-p-wrapper.nix
Normal file
31
pkgs/applications/virtualization/qemu/binfmt-p-wrapper.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# binfmt preserve-argv[0] wrapper
|
||||||
|
#
|
||||||
|
# More details in binfmt-p-wrapper.c
|
||||||
|
#
|
||||||
|
# The wrapper has to be static so LD_* environment variables
|
||||||
|
# cannot affect the execution of the wrapper itself.
|
||||||
|
|
||||||
|
{ lib, stdenv, pkgsStatic, enableDebug ? false }:
|
||||||
|
|
||||||
|
name: emulator:
|
||||||
|
|
||||||
|
pkgsStatic.stdenv.mkDerivation {
|
||||||
|
inherit name;
|
||||||
|
|
||||||
|
src = ./binfmt-p-wrapper.c;
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
dontInstall = true;
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
$CC -o $out/bin/${name} -static -std=c99 -O2 \
|
||||||
|
-DTARGET_QEMU=\"${emulator}\" \
|
||||||
|
${lib.optionalString enableDebug "-DDEBUG"} \
|
||||||
|
$src
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
}
|
|
@ -1,10 +1,11 @@
|
||||||
{ fetchzip, lib }:
|
{ fetchgit, fetchhg, fetchzip, lib }:
|
||||||
|
|
||||||
{ owner
|
{ owner
|
||||||
, repo, rev
|
, repo, rev
|
||||||
, domain ? "sr.ht"
|
, domain ? "sr.ht"
|
||||||
, vc ? "git"
|
, vc ? "git"
|
||||||
, name ? "source"
|
, name ? "source"
|
||||||
|
, fetchSubmodules ? false
|
||||||
, ... # For hash agility
|
, ... # For hash agility
|
||||||
} @ args:
|
} @ args:
|
||||||
|
|
||||||
|
@ -14,12 +15,36 @@ assert (lib.assertOneOf "vc" vc [ "hg" "git" ]);
|
||||||
|
|
||||||
let
|
let
|
||||||
baseUrl = "https://${vc}.${domain}/${owner}/${repo}";
|
baseUrl = "https://${vc}.${domain}/${owner}/${repo}";
|
||||||
|
baseArgs = {
|
||||||
in fetchzip (recursiveUpdate {
|
inherit name;
|
||||||
inherit name;
|
} // removeAttrs args [
|
||||||
url = "${baseUrl}/archive/${rev}.tar.gz";
|
"owner" "repo" "rev" "domain" "vc" "name" "fetchSubmodules"
|
||||||
meta.homepage = "${baseUrl}/";
|
];
|
||||||
extraPostFetch = optionalString (vc == "hg") ''
|
vcArgs = baseArgs // {
|
||||||
rm -f "$out/.hg_archival.txt"
|
inherit rev;
|
||||||
''; # impure file; see #12002
|
url = baseUrl;
|
||||||
} (removeAttrs args [ "owner" "repo" "rev" "domain" "vc" ])) // { inherit rev; }
|
};
|
||||||
|
fetcher = if fetchSubmodules then vc else "zip";
|
||||||
|
cases = {
|
||||||
|
git = {
|
||||||
|
fetch = fetchgit;
|
||||||
|
arguments = vcArgs // { fetchSubmodules = true; };
|
||||||
|
};
|
||||||
|
hg = {
|
||||||
|
fetch = fetchhg;
|
||||||
|
arguments = vcArgs // { fetchSubrepos = true; };
|
||||||
|
};
|
||||||
|
zip = {
|
||||||
|
fetch = fetchzip;
|
||||||
|
arguments = baseArgs // {
|
||||||
|
url = "${baseUrl}/archive/${rev}.tar.gz";
|
||||||
|
extraPostFetch = optionalString (vc == "hg") ''
|
||||||
|
rm -f "$out/.hg_archival.txt"
|
||||||
|
''; # impure file; see #12002
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in cases.${fetcher}.fetch cases.${fetcher}.arguments // {
|
||||||
|
inherit rev;
|
||||||
|
meta.homepage = "${baseUrl}";
|
||||||
|
}
|
||||||
|
|
|
@ -199,13 +199,7 @@ stdenv.mkDerivation rec {
|
||||||
"S3RegionResolutionTest.PublicBucket"
|
"S3RegionResolutionTest.PublicBucket"
|
||||||
"S3RegionResolutionTest.RestrictedBucket"
|
"S3RegionResolutionTest.RestrictedBucket"
|
||||||
"TestMinioServer.Connect"
|
"TestMinioServer.Connect"
|
||||||
"TestS3FS.GetFileInfoRoot"
|
"TestS3FS.*"
|
||||||
"TestS3FS.OpenOutputStreamBackgroundWrites"
|
|
||||||
"TestS3FS.OpenOutputStreamDestructorBackgroundWrites"
|
|
||||||
"TestS3FS.OpenOutputStreamDestructorSyncWrite"
|
|
||||||
"TestS3FS.OpenOutputStreamDestructorSyncWrites"
|
|
||||||
"TestS3FS.OpenOutputStreamMetadata"
|
|
||||||
"TestS3FS.OpenOutputStreamSyncWrites"
|
|
||||||
"TestS3FSGeneric.*"
|
"TestS3FSGeneric.*"
|
||||||
] ++ lib.optionals enableGcs [
|
] ++ lib.optionals enableGcs [
|
||||||
"GcsFileSystem.FileSystemCompare"
|
"GcsFileSystem.FileSystemCompare"
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "dyncall";
|
pname = "dyncall";
|
||||||
version = "1.2";
|
version = "1.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.dyncall.org/r${version}/dyncall-${version}.tar.gz";
|
url = "https://www.dyncall.org/r${version}/dyncall-${version}.tar.gz";
|
||||||
# https://www.dyncall.org/r1.2/SHA256
|
# https://www.dyncall.org/r1.3/SHA256
|
||||||
sha256 = "sha256-6IFUwCQ0IVYHBPXHKUr73snpka+gYB1a3/UELqgYCNc=";
|
sha256 = "sha256-q/Ys/DHr1/IWWNqhNwp3gcxRQxYrwIaDhKwH3vnj05A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# XXX: broken tests, failures masked, lets avoid crashing a bunch for now :)
|
# XXX: broken tests, failures masked, lets avoid crashing a bunch for now :)
|
||||||
|
|
|
@ -1,24 +1,22 @@
|
||||||
{lib, stdenv, fetchurl, zlib, openssl}:
|
{ lib, stdenv, fetchFromGitHub, zlib, openssl }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.6.1";
|
version = "2.0.1";
|
||||||
pname = "libre";
|
pname = "libre";
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://www.creytiv.com/pub/re-${version}.tar.gz";
|
owner = "baresip";
|
||||||
sha256 = "0hzyc0hdlw795nyx6ik7h2ihs8wapbj32x8c40xq0484ciwzqnyd";
|
repo = "re";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-/1J9cs0W96CtnHAoX/jg3FLGD9coa0eOEgf8uMQHuUk=";
|
||||||
};
|
};
|
||||||
buildInputs = [ zlib openssl ];
|
buildInputs = [ zlib openssl ];
|
||||||
makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ]
|
makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ]
|
||||||
++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
|
++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
|
||||||
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
|
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
|
||||||
;
|
;
|
||||||
meta = {
|
meta = {
|
||||||
description = "A library for real-time communications with async IO support and a complete SIP stack";
|
description = "A library for real-time communications with async IO support and a complete SIP stack";
|
||||||
homepage = "http://www.creytiv.com/re.html";
|
homepage = "https://github.com/baresip/re";
|
||||||
platforms = with lib.platforms; linux;
|
maintainers = with lib.maintainers; [ elohmeier raskin ];
|
||||||
maintainers = with lib.maintainers; [raskin];
|
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
downloadPage = "http://www.creytiv.com/pub/";
|
|
||||||
updateWalker = true;
|
|
||||||
downloadURLRegexp = "/re-.*[.]tar[.].*";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
{lib, stdenv, fetchurl, zlib, openssl, libre}:
|
{ lib, stdenv, fetchFromGitHub, zlib, openssl, libre }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.6.0";
|
version = "1.0.0";
|
||||||
pname = "librem";
|
pname = "librem";
|
||||||
src=fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://www.creytiv.com/pub/rem-${version}.tar.gz";
|
owner = "baresip";
|
||||||
sha256 = "0b17wma5w9acizk02isk5k83vv47vf1cf9zkmsc1ail677d20xj1";
|
repo = "rem";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-6Xe9zT0qLLGe1+QCQ9NALoDTaRhHpaTLbCbA+kV7hOA=";
|
||||||
};
|
};
|
||||||
buildInputs = [zlib openssl libre];
|
buildInputs = [ zlib openssl libre ];
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"LIBRE_MK=${libre}/share/re/re.mk"
|
"LIBRE_MK=${libre}/share/re/re.mk"
|
||||||
"LIBRE_INC=${libre}/include/re"
|
"LIBRE_INC=${libre}/include/re"
|
||||||
|
@ -16,13 +18,9 @@ stdenv.mkDerivation rec {
|
||||||
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
|
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
|
||||||
;
|
;
|
||||||
meta = {
|
meta = {
|
||||||
description = " A library for real-time audio and video processing";
|
description = "A library for real-time audio and video processing";
|
||||||
homepage = "http://www.creytiv.com/rem.html";
|
homepage = "https://github.com/baresip/rem";
|
||||||
platforms = with lib.platforms; linux;
|
maintainers = with lib.maintainers; [ elohmeier raskin ];
|
||||||
maintainers = with lib.maintainers; [raskin];
|
|
||||||
license = lib.licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
downloadPage = "http://www.creytiv.com/pub/";
|
|
||||||
updateWalker = true;
|
|
||||||
downloadURLRegexp = "/rem-.*[.]tar[.].*";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ stdenv, lib, fetchurl, unzip, qt4, qmake4Hook
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchurl
|
||||||
|
, unzip
|
||||||
|
, qt4
|
||||||
|
, qmake4Hook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -16,12 +21,14 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip qmake4Hook ];
|
nativeBuildInputs = [ unzip qmake4Hook ];
|
||||||
|
|
||||||
patches = ./fix-qt4-build.patch;
|
patches = [
|
||||||
|
./fix-qt4-build.patch
|
||||||
|
];
|
||||||
|
|
||||||
# Make sure that libqscintilla2.so is available in $out/lib since it is expected
|
# Make sure that libqscintilla2.so is available in $out/lib since it is expected
|
||||||
# by some packages such as sqlitebrowser
|
# by some packages such as sqlitebrowser
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
ln -s $out/lib/libqscintilla2_qt?.so $out/lib/libqscintilla2.so
|
ln -s $out/lib/libqscintilla2_qt4.so $out/lib/libqscintilla2.so
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
{ stdenv, lib, fetchurl, unzip
|
{ stdenv
|
||||||
, qtbase, qtmacextras
|
, lib
|
||||||
|
, fetchurl
|
||||||
|
, unzip
|
||||||
|
, qtbase
|
||||||
|
, qtmacextras
|
||||||
, qmake
|
, qmake
|
||||||
, fixDarwinDylibNames
|
, fixDarwinDylibNames
|
||||||
}:
|
}:
|
||||||
|
@ -20,12 +24,12 @@ stdenv.mkDerivation rec {
|
||||||
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ qtmacextras ];
|
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ qtmacextras ];
|
||||||
|
|
||||||
nativeBuildInputs = [ unzip qmake ]
|
nativeBuildInputs = [ unzip qmake ]
|
||||||
++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
|
||||||
|
|
||||||
# Make sure that libqscintilla2.so is available in $out/lib since it is expected
|
# Make sure that libqscintilla2.so is available in $out/lib since it is expected
|
||||||
# by some packages such as sqlitebrowser
|
# by some packages such as sqlitebrowser
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
ln -s $out/lib/libqscintilla2_qt?.so $out/lib/libqscintilla2.so
|
ln -s $out/lib/libqscintilla2_qt5.so $out/lib/libqscintilla2.so
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontWrapQtApps = true;
|
dontWrapQtApps = true;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "chainer";
|
pname = "chainer";
|
||||||
version = "7.8.0";
|
version = "7.8.1";
|
||||||
disabled = !isPy3k; # python2.7 abandoned upstream
|
disabled = !isPy3k; # python2.7 abandoned upstream
|
||||||
|
|
||||||
# no tests in Pypi tarball
|
# no tests in Pypi tarball
|
||||||
|
@ -13,7 +13,7 @@ buildPythonPackage rec {
|
||||||
owner = "chainer";
|
owner = "chainer";
|
||||||
repo = "chainer";
|
repo = "chainer";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1zfj3pk54gzxd4nid0qjx4kw1wdngwscvn4hk4cijxvwqi4a5zxj";
|
sha256 = "1n07zjzc4g92m1sbgxvnansl0z00y4jnhma2mw06vnahs7s9nrf6";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
|
|
@ -25,19 +25,13 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "datashader";
|
pname = "datashader";
|
||||||
version = "0.13.0";
|
version = "0.13.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-6JscHm1QjDmXOLLa83qhAvY/xwvlPM6duQ1lSxnCVV8=";
|
sha256 = "sha256-6JscHm1QjDmXOLLa83qhAvY/xwvlPM6duQ1lSxnCVV8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# the complete extra is for usage with conda, which we
|
|
||||||
# don't care about
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "dask[complete]" "dask"
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
dask
|
dask
|
||||||
bokeh
|
bokeh
|
||||||
|
@ -56,13 +50,21 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-xdist # not needed
|
pytest-xdist
|
||||||
nbsmoke
|
nbsmoke
|
||||||
fastparquet
|
fastparquet
|
||||||
nbconvert
|
nbconvert
|
||||||
netcdf4
|
netcdf4
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# The complete extra is for usage with conda, which we
|
||||||
|
# don't care about
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "dask[complete]" "dask" \
|
||||||
|
--replace "xarray >=0.9.6" "xarray"
|
||||||
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
'';
|
'';
|
||||||
|
@ -73,10 +75,10 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# not compatible with current version of bokeh
|
# Not compatible with current version of bokeh
|
||||||
# see: https://github.com/holoviz/datashader/issues/1031
|
# see: https://github.com/holoviz/datashader/issues/1031
|
||||||
"test_interactive_image_update"
|
"test_interactive_image_update"
|
||||||
# latest dask broken array marshalling
|
# Latest dask broken array marshalling
|
||||||
# see: https://github.com/holoviz/datashader/issues/1032
|
# see: https://github.com/holoviz/datashader/issues/1032
|
||||||
"test_raster_quadmesh_autorange_reversed"
|
"test_raster_quadmesh_autorange_reversed"
|
||||||
];
|
];
|
||||||
|
@ -86,10 +88,14 @@ buildPythonPackage rec {
|
||||||
"datashader/tests/test_datatypes.py"
|
"datashader/tests/test_datatypes.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"datashader"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib;{
|
meta = with lib;{
|
||||||
description = "Data visualization toolchain based on aggregating into a grid";
|
description = "Data visualization toolchain based on aggregating into a grid";
|
||||||
homepage = "https://datashader.org";
|
homepage = "https://datashader.org";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ costrouc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,11 +13,11 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-storage";
|
pname = "google-cloud-storage";
|
||||||
version = "1.43.0";
|
version = "1.44.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "f3b4f4be5c8a1b5727a8f7136c94d3bacdd4b7bf11f9553f51ae4c1d876529d3";
|
sha256 = "29edbfeedd157d853049302bf5d104055c6f0cb7ef283537da3ce3f730073001";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "liquidctl";
|
pname = "liquidctl";
|
||||||
version = "1.7.2";
|
version = "1.8.0";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-fPSvxdr329SxAe4N7lTa7hddFp1WVUplkhYD1oDQXAI=";
|
sha256 = "sha256-N0Ebd0zIHFmuiIozkAy4SV3o8rFA1wmrGd+dJo8jdk0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "mautrix";
|
pname = "mautrix";
|
||||||
version = "0.14.0";
|
version = "0.14.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5ad04e87bcf31eb3479fdd3cabd5082b257013e5c00f6b369539a2b584afadaf";
|
sha256 = "a7b41b522deafe47f8d3ce2b13f5a8a01f7bc715f09ebb5ca53a4af4f6987701";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "miniaudio";
|
pname = "miniaudio";
|
||||||
version = "1.45";
|
version = "1.46";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||||
owner = "irmen";
|
owner = "irmen";
|
||||||
repo = "pyminiaudio";
|
repo = "pyminiaudio";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1yx4n4zax103fmjzdiqzw37zibsh68b2p2l5qvgcnx2zrrjd31yl";
|
sha256 = "16llwmbbd9445rwhl4v66kf5zd7yl3a94zm9xyllq6ij7vnhg5jb";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedNativeBuildInputs = [ cffi ];
|
propagatedNativeBuildInputs = [ cffi ];
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
, fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython, dask }:
|
, fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython, dask }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.12.0";
|
version = "0.13.0";
|
||||||
pname = "pyFFTW";
|
pname = "pyFFTW";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "60988e823ca75808a26fd79d88dbae1de3699e72a293f812aa4534f8a0a58cb0";
|
sha256 = "da85102405c0bd95d57eb19e99b01a0729d8406cb204c3900894b873784253da";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, disabledIf
|
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, pkgs
|
, pkgs
|
||||||
|
@ -8,35 +7,36 @@
|
||||||
, pyqt4
|
, pyqt4
|
||||||
}:
|
}:
|
||||||
|
|
||||||
disabledIf (isPy3k || isPyPy)
|
buildPythonPackage {
|
||||||
(buildPythonPackage {
|
pname = "qscintilla-qt4";
|
||||||
pname = "qscintilla";
|
version = pkgs.qscintilla-qt4.version;
|
||||||
version = pkgs.qscintilla.version;
|
format = "other";
|
||||||
format = "other";
|
|
||||||
|
|
||||||
src = pkgs.qscintilla.src;
|
disabled = isPyPy;
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.xorg.lndir ];
|
src = pkgs.qscintilla-qt4.src;
|
||||||
|
|
||||||
buildInputs = [ pyqt4.qt pyqt4 ];
|
nativeBuildInputs = [ pkgs.xorg.lndir ];
|
||||||
|
|
||||||
preConfigure = ''
|
buildInputs = [ pyqt4.qt pyqt4 ];
|
||||||
mkdir -p $out
|
|
||||||
lndir ${pyqt4} $out
|
|
||||||
rm -rf "$out/nix-support"
|
|
||||||
cd Python
|
|
||||||
${python.executable} ./configure-old.py \
|
|
||||||
--destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \
|
|
||||||
--apidir $out/api/${python.libPrefix} \
|
|
||||||
-n ${pkgs.qscintilla}/include \
|
|
||||||
-o ${pkgs.qscintilla}/lib \
|
|
||||||
--sipdir $out/share/sip
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
preConfigure = ''
|
||||||
description = "A Python binding to QScintilla, Qt based text editing control";
|
mkdir -p $out
|
||||||
license = licenses.lgpl21Plus;
|
lndir ${pyqt4} $out
|
||||||
maintainers = with maintainers; [ danbst ];
|
rm -rf "$out/nix-support"
|
||||||
platforms = platforms.linux;
|
cd Python
|
||||||
};
|
${python.executable} ./configure-old.py \
|
||||||
})
|
--destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \
|
||||||
|
--apidir $out/api/${python.libPrefix} \
|
||||||
|
-n ${pkgs.qscintilla-qt4}/include \
|
||||||
|
-o ${pkgs.qscintilla-qt4}/lib \
|
||||||
|
--sipdir $out/share/sip
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Python binding to QScintilla, Qt based text editing control";
|
||||||
|
license = licenses.lgpl21Plus;
|
||||||
|
maintainers = with maintainers; [ danbst ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
let
|
let
|
||||||
inherit (pythonPackages) buildPythonPackage isPy3k python sip sipbuild pyqt5 pyqt-builder;
|
inherit (pythonPackages) buildPythonPackage isPy3k python sip sipbuild pyqt5 pyqt-builder;
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
pname = "qscintilla";
|
pname = "qscintilla-qt5";
|
||||||
version = qscintilla.version;
|
version = qscintilla.version;
|
||||||
src = qscintilla.src;
|
src = qscintilla.src;
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
{ lib
|
|
||||||
, buildPythonPackage
|
|
||||||
, disabledIf
|
|
||||||
, isPy3k
|
|
||||||
, isPyPy
|
|
||||||
, pkgs
|
|
||||||
, python
|
|
||||||
, pyqt4
|
|
||||||
}:
|
|
||||||
|
|
||||||
disabledIf (isPy3k || isPyPy)
|
|
||||||
(buildPythonPackage {
|
|
||||||
# TODO: Qt5 support
|
|
||||||
pname = "qscintilla";
|
|
||||||
version = pkgs.qscintilla.version;
|
|
||||||
format = "other";
|
|
||||||
|
|
||||||
src = pkgs.qscintilla.src;
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgs.xorg.lndir ];
|
|
||||||
|
|
||||||
buildInputs = [ pyqt4.qt pyqt4 ];
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
mkdir -p $out
|
|
||||||
lndir ${pyqt4} $out
|
|
||||||
rm -rf "$out/nix-support"
|
|
||||||
cd Python
|
|
||||||
${python.executable} ./configure-old.py \
|
|
||||||
--destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \
|
|
||||||
--apidir $out/api/${python.libPrefix} \
|
|
||||||
-n ${pkgs.qscintilla}/include \
|
|
||||||
-o ${pkgs.qscintilla}/lib \
|
|
||||||
--sipdir $out/share/sip
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A Python binding to QScintilla, Qt based text editing control";
|
|
||||||
license = licenses.lgpl21Plus;
|
|
||||||
maintainers = with maintainers; [ danbst ];
|
|
||||||
platforms = platforms.unix;
|
|
||||||
};
|
|
||||||
})
|
|
|
@ -10,19 +10,19 @@
|
||||||
, lzo
|
, lzo
|
||||||
, numpy
|
, numpy
|
||||||
, numexpr
|
, numexpr
|
||||||
, setuptools
|
, packaging
|
||||||
# Test inputs
|
# Test inputs
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tables";
|
pname = "tables";
|
||||||
version = "3.6.1";
|
version = "3.7.0";
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0j8vnxh2m5n0cyk9z3ndcj5n1zj5rdxgc1gb78bqlyn2lyw75aa9";
|
sha256 = "sha256-6SqIetbyqYPlZKaZAt5KdkXDAGn8AavTU+xdolXF4f4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cython ];
|
nativeBuildInputs = [ cython ];
|
||||||
|
@ -36,17 +36,9 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
numexpr
|
numexpr
|
||||||
setuptools # uses pkg_resources at runtime
|
packaging # uses packaging.version at runtime
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
# Needed for numpy >= 1.20.0
|
|
||||||
name = "tables-pr-862-use-lowercase-numpy-dtypes.patch";
|
|
||||||
url = "https://github.com/PyTables/PyTables/commit/93a3272b8fe754095637628b4d312400e24ae654.patch";
|
|
||||||
sha256 = "00czgxnm1dxp9763va9xw1nc7dd7kxh9hjcg9klim52519hkbhi4";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
# When doing `make distclean`, ignore docs
|
# When doing `make distclean`, ignore docs
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace Makefile --replace "src doc" "src"
|
substituteInPlace Makefile --replace "src doc" "src"
|
||||||
|
|
|
@ -1,45 +1,36 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, nose
|
|
||||||
, isPy27
|
, isPy27
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, sparse
|
, sparse
|
||||||
, pytorch
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tensorly";
|
pname = "tensorly";
|
||||||
version = "0.4.5";
|
version = "0.7.0";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1ml91yaxwx4msisxbm92yf22qfrscvk58f3z2r1jhi96pw2k4i7x";
|
sha256 = "VcX3pCczZQUYZaD7xrrkOcj0QPJt28cYTwpZm5D/X3c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy scipy sparse ]
|
# nose is not actually required for anything
|
||||||
++ lib.optionals (!doCheck) [ nose ]; # upstream added nose to install_requires
|
# (including testing with the minimal dependencies)
|
||||||
|
postPatch = ''
|
||||||
checkInputs = [ pytest nose pytorch ];
|
substituteInPlace setup.py --replace ", 'nose'" ""
|
||||||
# also has a cupy backend, but the tests are currently broken
|
|
||||||
# (e.g. attempts to access cupy.qr instead of cupy.linalg.qr)
|
|
||||||
# and this backend also adds a non-optional CUDA dependence,
|
|
||||||
# as well as tensorflow and mxnet backends, but the tests don't
|
|
||||||
# seem to exercise these backend by default
|
|
||||||
|
|
||||||
# uses >= 140GB of ram to test
|
|
||||||
doCheck = false;
|
|
||||||
checkPhase = ''
|
|
||||||
runHook preCheck
|
|
||||||
nosetests -e "test_cupy"
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ numpy scipy sparse ];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
pytestFlagsArray = [ "tensorly" ];
|
||||||
|
|
||||||
pythonImportsCheck = [ "tensorly" ];
|
pythonImportsCheck = [ "tensorly" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -1,25 +1,38 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, simplejson, pytest, glibcLocales }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, simplejson
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "uritemplate";
|
pname = "uritemplate";
|
||||||
version = "3.0.1";
|
version = "4.1.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5af8ad10cec94f215e3f48112de2022e1d5a37ed427fbd88652fa908f2ab7cae";
|
sha256 = "sha256-Q0bt/Fw7efaUvM1tYJmjIrvrYo2/LNhu6lWkVs5RJPA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ simplejson ];
|
propagatedBuildInputs = [
|
||||||
|
simplejson
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest glibcLocales ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
pythonImportsCheck = [
|
||||||
LC_ALL=en_US.UTF-8 py.test
|
"uritemplate"
|
||||||
'';
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Implementation of RFC 6570 URI templates";
|
||||||
homepage = "https://github.com/python-hyper/uritemplate";
|
homepage = "https://github.com/python-hyper/uritemplate";
|
||||||
description = "URI template parsing for Humans";
|
|
||||||
license = with licenses; [ asl20 bsd3 ];
|
license = with licenses; [ asl20 bsd3 ];
|
||||||
maintainers = with maintainers; [ matthiasbeyer ];
|
maintainers = with maintainers; [ matthiasbeyer ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -46,13 +46,13 @@ with py.pkgs;
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "checkov";
|
pname = "checkov";
|
||||||
version = "2.0.706";
|
version = "2.0.707";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bridgecrewio";
|
owner = "bridgecrewio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-j9exVvGY3A23sTY5y4daWlZr7awkY1tQhTDykW9tsJU=";
|
sha256 = "sha256-AsKsv3fKubFZZMZHBRuVmgeGJB1zTe00J2kmqikBiD8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with py.pkgs; [
|
nativeBuildInputs = with py.pkgs; [
|
||||||
|
|
|
@ -17,10 +17,14 @@ buildGraalvmNativeImage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/clojure-lsp/clojure-lsp/blob/2021.11.02-15.24.47/graalvm/native-unix-compile.sh#L18-L27
|
# https://github.com/clojure-lsp/clojure-lsp/blob/2021.11.02-15.24.47/graalvm/native-unix-compile.sh#L18-L27
|
||||||
DTLV_LIB_EXTRACT_DIR = "/tmp";
|
# Needs to be inject on `nativeImageBuildArgs` inside shell environment,
|
||||||
|
# otherwise we can't expand to the value set in `mktemp -d` call
|
||||||
|
preBuild = ''
|
||||||
|
export DTLV_LIB_EXTRACT_DIR="$(mktemp -d)"
|
||||||
|
nativeImageBuildArgs+=("-H:CLibraryPath=$DTLV_LIB_EXTRACT_DIR")
|
||||||
|
'';
|
||||||
|
|
||||||
extraNativeImageBuildArgs = [
|
extraNativeImageBuildArgs = [
|
||||||
"-H:CLibraryPath=${DTLV_LIB_EXTRACT_DIR}"
|
|
||||||
"--no-fallback"
|
"--no-fallback"
|
||||||
"--native-image-info"
|
"--native-image-info"
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "quark-engine";
|
pname = "quark-engine";
|
||||||
version = "21.10.2";
|
version = "21.10.2";
|
||||||
|
format = "setuptools";
|
||||||
disabled = python3.pythonOlder "3.6";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = pname;
|
owner = pname;
|
||||||
|
@ -31,10 +30,17 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
tqdm
|
tqdm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "prompt-toolkit==3.0.19" "prompt-toolkit>=3.0.19"
|
||||||
|
'';
|
||||||
|
|
||||||
# Project has no tests
|
# Project has no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "quark" ];
|
pythonImportsCheck = [
|
||||||
|
"quark"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Android malware (analysis and scoring) system";
|
description = "Android malware (analysis and scoring) system";
|
||||||
|
|
|
@ -8536,7 +8536,9 @@ with pkgs;
|
||||||
|
|
||||||
ovh-ttyrec = callPackage ../tools/misc/ovh-ttyrec { };
|
ovh-ttyrec = callPackage ../tools/misc/ovh-ttyrec { };
|
||||||
|
|
||||||
ovito = libsForQt5.callPackage ../applications/graphics/ovito { };
|
ovito = libsForQt5.callPackage ../applications/graphics/ovito {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) VideoDecodeAcceleration;
|
||||||
|
};
|
||||||
|
|
||||||
owncloud-client = libsForQt5.callPackage ../applications/networking/owncloud-client { };
|
owncloud-client = libsForQt5.callPackage ../applications/networking/owncloud-client { };
|
||||||
|
|
||||||
|
@ -28138,6 +28140,8 @@ with pkgs;
|
||||||
|
|
||||||
qemu-utils = callPackage ../applications/virtualization/qemu/utils.nix {};
|
qemu-utils = callPackage ../applications/virtualization/qemu/utils.nix {};
|
||||||
|
|
||||||
|
wrapQemuBinfmtP = callPackage ../applications/virtualization/qemu/binfmt-p-wrapper.nix { };
|
||||||
|
|
||||||
qgis-unwrapped = libsForQt5.callPackage ../applications/gis/qgis/unwrapped.nix {
|
qgis-unwrapped = libsForQt5.callPackage ../applications/gis/qgis/unwrapped.nix {
|
||||||
withGrass = false;
|
withGrass = false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue