forked from mirrors/nixpkgs
Merge master into staging-next
This commit is contained in:
commit
78b670898c
|
@ -27,13 +27,13 @@ let
|
|||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "megapixels";
|
||||
version = "1.4.0";
|
||||
version = "1.4.2";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "postmarketOS";
|
||||
repo = "megapixels";
|
||||
rev = version;
|
||||
sha256 = "sha256-I7eevbIg+DEY9hnvat65J4Kem1FFNZc4XzaQQaewP/4=";
|
||||
sha256 = "sha256-ebeKbAo03+jeMveySSIz36gbwslWVMRLj+/adW8rlEQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -64,7 +64,12 @@ stdenv.mkDerivation (args // {
|
|||
"-target ${stdenv.targetPlatform.config}"
|
||||
];
|
||||
dontAddStaticConfigureFlags = lib.versionOlder version "4.08";
|
||||
configurePlatforms = lib.optionals (lib.versionAtLeast version "4.08") [ "host" "target" ];
|
||||
|
||||
# on aarch64-darwin using --host and --target causes the build to invoke
|
||||
# `aarch64-apple-darwin-clang` while using assembler. However, such binary
|
||||
# does not exist. So, disable these configure flags on `aarch64-darwin`.
|
||||
# See #144785 for details.
|
||||
configurePlatforms = lib.optionals (lib.versionAtLeast version "4.08" && !(stdenv.isDarwin && stdenv.isAarch64)) [ "host" "target" ];
|
||||
# x86_64-unknown-linux-musl-ld: -r and -pie may not be used together
|
||||
hardeningDisable = lib.optional (lib.versionAtLeast version "4.09" && stdenv.hostPlatform.isMusl) "pie";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, python3 }:
|
||||
{ lib, stdenv, fetchFromGitHub, cmake, darwin, python3 }:
|
||||
# Like many google projects, shaderc doesn't gracefully support separately compiled dependencies, so we can't easily use
|
||||
# the versions of glslang and spirv-tools used by vulkan-loader. Exact revisions are taken from
|
||||
# https://github.com/google/shaderc/blob/known-good/known_good.json
|
||||
|
@ -42,7 +42,7 @@ in stdenv.mkDerivation rec {
|
|||
ln -s ${spirv-headers} third_party/spirv-tools/external/spirv-headers
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake python3 ];
|
||||
nativeBuildInputs = [ cmake python3 ] ++ lib.optionals stdenv.isDarwin [ darwin.cctools ];
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput "lib/*.a" $static
|
||||
|
@ -53,6 +53,7 @@ in stdenv.mkDerivation rec {
|
|||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = "A collection of tools, libraries and tests for shader compilation";
|
||||
platforms = platforms.all;
|
||||
license = [ licenses.asl20 ];
|
||||
};
|
||||
}
|
||||
|
|
37
pkgs/development/interpreters/bwbasic/default.nix
Normal file
37
pkgs/development/interpreters/bwbasic/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, dos2unix, fetchurl, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bwbasic";
|
||||
version = "3.20";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/bwbasic/bwbasic/version%203.20/bwbasic-3.20.zip";
|
||||
sha256 = "1w9r4cl7z1lh52c1jpjragbspi1qn0zb7jhcsldav4gdnzxfw67f";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ dos2unix unzip ];
|
||||
|
||||
unpackPhase = ''
|
||||
unzip $src
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
dos2unix configure
|
||||
patchShebangs configure
|
||||
chmod +x configure
|
||||
'';
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Bywater BASIC Interpreter";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ irenes ];
|
||||
platforms = platforms.all;
|
||||
homepage = "https://sourceforge.net/projects/bwbasic/";
|
||||
};
|
||||
}
|
|
@ -1,4 +1,9 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, cmake
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.9.9.8";
|
||||
|
@ -11,6 +16,14 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-F//+3L5Ozrw6s7t4LrcUmO7sN30ZSESdrPAYX57zgr8=";
|
||||
};
|
||||
|
||||
# https://github.com/g-truc/glm/pull/1055
|
||||
# Fix more implicit-int-float-conversion warnings
|
||||
# (https://github.com/g-truc/glm/pull/986 wasn't enough, and -Werror is used)
|
||||
patches = [(fetchpatch {
|
||||
url = "https://github.com/kraj/glm/commit/bd9b5060bc3b9581090d44f15b4e236566ea86a6.patch";
|
||||
sha256 = "sha256-QO4o/wV564kJimBcEyr9TWzREEnRJ1n0j0HPojN4pkI=";
|
||||
})];
|
||||
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
|
|
@ -13,12 +13,17 @@ buildPythonPackage rec {
|
|||
nativeBuildInputs = [ cython ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
# Hack needed to make pytest + cython work
|
||||
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
|
||||
preCheck = ''
|
||||
# Hack needed to make pytest + cython work
|
||||
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
|
||||
export HOME=$(mktemp -d)
|
||||
cp -r $TMP/$sourceRoot/tests $HOME
|
||||
pushd $HOME
|
||||
|
||||
# locale settings used by upstream, has the effect of skipping
|
||||
# otherwise-failing tests on darwin
|
||||
export LC_ALL='C.UTF-8'
|
||||
export LANG='C.UTF-8'
|
||||
'';
|
||||
postCheck = "popd";
|
||||
|
||||
|
|
|
@ -1,17 +1,21 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, aiohttp
|
||||
, async-timeout
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "opensensemap-api";
|
||||
version = "0.1.6";
|
||||
version = "0.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-e60aVIoKFqo++WJHUYGutugkjB8YgyNQgJbILgAyOOY=";
|
||||
sha256 = "sha256-KSukSPpSbfbEEqTq4zqqo8OT7ptdPrGy2QyQYjErQWI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -22,7 +26,9 @@ buildPythonPackage rec {
|
|||
# no tests are present
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "opensensemap_api" ];
|
||||
pythonImportsCheck = [
|
||||
"opensensemap_api"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "OpenSenseMap API Python client";
|
||||
|
|
32
pkgs/development/python-modules/pep440/default.nix
Normal file
32
pkgs/development/python-modules/pep440/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pep440";
|
||||
version = "0.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "m1H/yqqDiFrj6tmD9jo8nDakCBZxkBPq/HtSOXMH4ZQ=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pep440"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to check whether versions number match PEP 440";
|
||||
homepage = "https://github.com/Carreau/pep440";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
51
pkgs/development/python-modules/setupmeta/default.nix
Normal file
51
pkgs/development/python-modules/setupmeta/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, git
|
||||
, mock
|
||||
, pep440
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "setupmeta";
|
||||
version = "3.3.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "codrsquad";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "21hABRiY8CTKkpFjePgBAtjs4/G5eFS3aPNMCBC41CY=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
git
|
||||
mock
|
||||
pep440
|
||||
pytestCheckHook
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests want to scan site-packages
|
||||
"test_check_dependencies"
|
||||
"test_scenario"
|
||||
"test_git_versioning"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"setupmeta"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to simplify setup.py files";
|
||||
homepage = "https://github.com/codrsquad/setupmeta";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -5,13 +5,13 @@
|
|||
|
||||
buildGoPackage rec {
|
||||
pname = "tfsec";
|
||||
version = "0.60.0";
|
||||
version = "0.60.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aquasecurity";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-LBU2nXpmktjyy3x5cBGsrCM6k+6BEZaoDybHVrIrVBo=";
|
||||
sha256 = "sha256-JbEqoPuvfG6SwG+uGsV5vy+d+cs/VoGCntq8oU48+y8=";
|
||||
};
|
||||
|
||||
goPackagePath = "github.com/aquasecurity/tfsec";
|
||||
|
|
26
pkgs/tools/networking/slowlorust/default.nix
Normal file
26
pkgs/tools/networking/slowlorust/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "slowlorust";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MJVL";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "c4NWkQ/QvlUo1YoV2s7rWB6wQskAP5Qp1WVM23wvV3c=";
|
||||
};
|
||||
|
||||
cargoSha256 = "Wu1mm+yJw2SddddxC5NfnMWLr+dplnRxH3AJ1/mTAKM=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Lightweight slowloris (HTTP DoS) tool";
|
||||
homepage = "https://github.com/MJVL/slowlorust";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
54
pkgs/tools/security/boofuzz/default.nix
Normal file
54
pkgs/tools/security/boofuzz/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "boofuzz";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jtpereyda";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "4WtTZ2S2rC2XXN0HbiEht9NW0JXcPnpp66AH67F88yk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
attrs
|
||||
click
|
||||
colorama
|
||||
flask
|
||||
funcy
|
||||
future
|
||||
psutil
|
||||
pyserial
|
||||
pydot
|
||||
six
|
||||
tornado
|
||||
];
|
||||
|
||||
checkInputs = with python3.pkgs; [
|
||||
mock
|
||||
netifaces
|
||||
pytest-bdd
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests require socket access
|
||||
"test_raw_l2"
|
||||
"test_raw_l3"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"boofuzz"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Network protocol fuzzing tool";
|
||||
homepage = "https://github.com/jtpereyda/boofuzz";
|
||||
license = with licenses; [ gpl2Plus ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
25
pkgs/tools/security/chopchop/default.nix
Normal file
25
pkgs/tools/security/chopchop/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "chopchop";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "michelin";
|
||||
repo = "ChopChop";
|
||||
rev = "v${version}";
|
||||
sha256 = "qSBQdcS6d0tctSHRbkY4T7s6Zj7xI2abaPUvNKh1M2E=";
|
||||
};
|
||||
|
||||
vendorSha256 = "UxWARWOFp8AYKEdiJwRZNwFrphgMTJSZjnvktTNOsgU=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "CLI to search for sensitive services/files/folders";
|
||||
homepage = "https://github.com/michelin/ChopChop";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
42
pkgs/tools/security/stacs/default.nix
Normal file
42
pkgs/tools/security/stacs/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "stacs";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "stacscan";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "00ZYdpJktqUXdzPcouHyZcOQyFm7jdFNVuDqsufOviE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
setupmeta
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
click
|
||||
pydantic
|
||||
typing-extensions
|
||||
yara-python
|
||||
];
|
||||
|
||||
checkInputs = with python3.pkgs; [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"stacs"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Static token and credential scanner";
|
||||
homepage = "https://github.com/stacscan/stacs";
|
||||
license = with licenses; [ bsd3 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -2296,6 +2296,8 @@ with pkgs;
|
|||
|
||||
bwm_ng = callPackage ../tools/networking/bwm-ng { };
|
||||
|
||||
bwbasic = callPackage ../development/interpreters/bwbasic { };
|
||||
|
||||
byobu = callPackage ../tools/misc/byobu {
|
||||
# Choices: [ tmux screen ];
|
||||
textual-window-manager = tmux;
|
||||
|
@ -2519,6 +2521,8 @@ with pkgs;
|
|||
|
||||
chntpw = callPackage ../tools/security/chntpw { };
|
||||
|
||||
chopchop = callPackage ../tools/security/chopchop { };
|
||||
|
||||
cliphist = callPackage ../tools/wayland/cliphist { };
|
||||
|
||||
clipman = callPackage ../tools/wayland/clipman { };
|
||||
|
@ -3547,6 +3551,8 @@ with pkgs;
|
|||
|
||||
ssmsh = callPackage ../tools/admin/ssmsh { };
|
||||
|
||||
stacs = callPackage ../tools/security/stacs { };
|
||||
|
||||
stagit = callPackage ../development/tools/stagit { };
|
||||
|
||||
starboard = callPackage ../applications/networking/cluster/starboard { };
|
||||
|
@ -3822,6 +3828,8 @@ with pkgs;
|
|||
|
||||
bomutils = callPackage ../tools/archivers/bomutils { };
|
||||
|
||||
boofuzz= callPackage ../tools/security/boofuzz { };
|
||||
|
||||
bsdbuild = callPackage ../development/tools/misc/bsdbuild { };
|
||||
|
||||
bsdiff = callPackage ../tools/compression/bsdiff { };
|
||||
|
@ -9494,6 +9502,8 @@ with pkgs;
|
|||
|
||||
slirp4netns = callPackage ../tools/networking/slirp4netns { };
|
||||
|
||||
slowlorust = callPackage ../tools/networking/slowlorust { };
|
||||
|
||||
slsnif = callPackage ../tools/misc/slsnif { };
|
||||
|
||||
slstatus = callPackage ../applications/misc/slstatus {
|
||||
|
|
|
@ -5636,6 +5636,8 @@ in {
|
|||
|
||||
pep257 = callPackage ../development/python-modules/pep257 { };
|
||||
|
||||
pep440 = callPackage ../development/python-modules/pep440 { };
|
||||
|
||||
pep517 = callPackage ../development/python-modules/pep517 { };
|
||||
|
||||
pep8 = callPackage ../development/python-modules/pep8 { };
|
||||
|
@ -8557,6 +8559,8 @@ in {
|
|||
|
||||
setproctitle = callPackage ../development/python-modules/setproctitle { };
|
||||
|
||||
setupmeta = callPackage ../development/python-modules/setupmeta { };
|
||||
|
||||
setuptools-declarative-requirements = callPackage ../development/python-modules/setuptools-declarative-requirements { };
|
||||
|
||||
setuptools-git = callPackage ../development/python-modules/setuptools-git { };
|
||||
|
|
Loading…
Reference in a new issue