uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/development/python-modules/extractcode/7z.nix
Normal file
49
pkgs/development/python-modules/extractcode/7z.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, plugincode
|
||||
, p7zip
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "extractcode-7z";
|
||||
version = "21.5.31";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nexB";
|
||||
repo = "scancode-plugins";
|
||||
rev = "v${version}";
|
||||
sha256 = "02qinla281fc6pmg5xzsrmqnf9js76f2qcbf98zq7m2dkn70as4w";
|
||||
};
|
||||
|
||||
sourceRoot = "source/builtins/extractcode_7z-linux";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
plugincode
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
pushd src/extractcode_7z/bin
|
||||
|
||||
rm 7z 7z.so
|
||||
ln -s ${p7zip}/bin/7z 7z
|
||||
ln -s ${p7zip}/lib/p7zip/7z.so 7z.so
|
||||
|
||||
popd
|
||||
'';
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"extractcode_7z"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A ScanCode Toolkit plugin to provide pre-built binary libraries and utilities and their locations";
|
||||
homepage = "https://github.com/nexB/scancode-plugins/tree/main/builtins/extractcode_7z-linux";
|
||||
license = with licenses; [ asl20 lgpl21 ];
|
||||
maintainers = teams.determinatesystems.members;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
66
pkgs/development/python-modules/extractcode/default.nix
Normal file
66
pkgs/development/python-modules/extractcode/default.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, setuptools-scm
|
||||
, typecode
|
||||
, patch
|
||||
, extractcode-libarchive
|
||||
, extractcode-7z
|
||||
, pytestCheckHook
|
||||
, pytest-xdist
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "extractcode";
|
||||
version = "31.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-gIGTkum8+BKfdNiQT+ipjA3+0ngjVoQnNygsAoMRPYg=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
typecode
|
||||
patch
|
||||
extractcode-libarchive
|
||||
extractcode-7z
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytest-xdist
|
||||
];
|
||||
|
||||
# CLI test tests the cli which we can't do until after install
|
||||
disabledTestPaths = [
|
||||
"tests/test_extractcode_cli.py"
|
||||
];
|
||||
|
||||
# test_uncompress_* wants to use a binary to extract instead of the provided library
|
||||
disabledTests = [
|
||||
"test_uncompress_lz4_basic"
|
||||
"test_extract_tarlz4_basic"
|
||||
"test_extract_rar_with_trailing_data"
|
||||
# tries to parse /boot/vmlinuz-*, which is not available in the nix sandbox
|
||||
"test_can_extract_qcow2_vm_image_as_tarball"
|
||||
"test_can_extract_qcow2_vm_image_not_as_tarball"
|
||||
"test_can_listfs_from_qcow2_image"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"extractcode"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Universal archive extractor using z7zip, libarchve, other libraries and the Python standard library";
|
||||
homepage = "https://github.com/nexB/extractcode";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.determinatesystems.members;
|
||||
};
|
||||
}
|
||||
62
pkgs/development/python-modules/extractcode/libarchive.nix
Normal file
62
pkgs/development/python-modules/extractcode/libarchive.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, libarchive
|
||||
, libb2
|
||||
, bzip2
|
||||
, expat
|
||||
, lz4
|
||||
, xz
|
||||
, zlib
|
||||
, zstd
|
||||
, plugincode
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "extractcode-libarchive";
|
||||
version = "21.5.31";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nexB";
|
||||
repo = "scancode-plugins";
|
||||
rev = "v${version}";
|
||||
sha256 = "02qinla281fc6pmg5xzsrmqnf9js76f2qcbf98zq7m2dkn70as4w";
|
||||
};
|
||||
|
||||
sourceRoot = "source/builtins/extractcode_libarchive-linux";
|
||||
|
||||
preBuild = ''
|
||||
pushd src/extractcode_libarchive/lib
|
||||
|
||||
rm *.so *.so.*
|
||||
ln -s ${lib.getLib libarchive}/lib/libarchive.so libarchive.so
|
||||
ln -s ${lib.getLib libb2}/lib/libb2.so libb2-la3511.so.1
|
||||
ln -s ${lib.getLib bzip2}/lib/libbz2.so libbz2-la3511.so.1.0
|
||||
ln -s ${lib.getLib expat}/lib/libexpat.so libexpat-la3511.so.1
|
||||
ln -s ${lib.getLib lz4}/lib/liblz4.so liblz4-la3511.so.1
|
||||
ln -s ${lib.getLib xz}/lib/liblzma.so liblzma-la3511.so.5
|
||||
ln -s ${lib.getLib zlib}/lib/libz.so libz-la3511.so.1
|
||||
ln -s ${lib.getLib zstd}/lib/libzstd.so libzstd-la3511.so.1
|
||||
|
||||
popd
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
plugincode
|
||||
];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"extractcode_libarchive"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A ScanCode Toolkit plugin to provide pre-built binary libraries and utilities and their locations";
|
||||
homepage = "https://github.com/nexB/scancode-plugins/tree/main/builtins/extractcode_libarchive-linux";
|
||||
license = with licenses; [ asl20 bsd2 ];
|
||||
maintainers = teams.determinatesystems.members;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue