commit
9a2405d657
@ -0,0 +1,44 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, pythonOlder |
||||
, fetchFromGitHub |
||||
, fetchpatch |
||||
, sphinx |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "sphinx-basic-ng"; |
||||
version = "0.0.1.a11"; |
||||
disable = pythonOlder "3.7"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "pradyunsg"; |
||||
repo = "sphinx-basic-ng"; |
||||
rev = version; |
||||
sha256 = "sha256-Eur3CadC2NTuBXosG4SN9t2L0qkqN+Q79bcvhvlG/f8="; |
||||
}; |
||||
|
||||
patches = [ |
||||
(fetchpatch { |
||||
name = "fix-import-error.patch"; |
||||
url = "https://github.com/pradyunsg/sphinx-basic-ng/pull/32/commits/323a0085721b908aa11bc3c36c51e16f517ee023.patch"; |
||||
sha256 = "sha256-/G1wLG/08u2s3YENSKSYekLrV1fUkxDAlxc3crTQNHk="; |
||||
}) |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
sphinx |
||||
]; |
||||
|
||||
# no tests implemented |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ "sphinx_basic_ng" ]; |
||||
|
||||
meta = with lib; { |
||||
description = "A modernised skeleton for Sphinx themes"; |
||||
homepage = "https://sphinx-basic-ng.readthedocs.io/en/latest/"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ Luflosi ]; |
||||
}; |
||||
} |
@ -0,0 +1,29 @@ |
||||
{ kernel, stdenv, kmod, lib, fetchzip }: |
||||
stdenv.mkDerivation |
||||
{ |
||||
pname = "ax99100"; |
||||
version = "1.8.0"; |
||||
nativeBuildInputs = [ kmod ] ++ kernel.moduleBuildDependencies; |
||||
src = fetchzip { |
||||
url = "https://www.asix.com.tw/en/support/download/file/1229"; |
||||
sha256 = "1rbp1m01qr6b3nbr72vpbw89pjh8mddc60im78z2yjd951xkbcjh"; |
||||
extension = "tar.bz2"; |
||||
}; |
||||
|
||||
makeFlags = [ "KDIR='${kernel.dev}/lib/modules/${kernel.modDirVersion}/build'" ]; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/tty/serial |
||||
cp ax99100.ko $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/tty/serial |
||||
''; |
||||
|
||||
meta = { |
||||
description = "ASIX AX99100 Serial and Parralel Port driver"; |
||||
homepage = "https://www.asix.com.tw/en/product/Interface/PCIe_Bridge/AX99100"; |
||||
# According to the source code in the tarball, the license is gpl2. |
||||
license = lib.licenses.gpl2; |
||||
platforms = lib.platforms.linux; |
||||
# currently, the build fails with kernels newer than 5.17 |
||||
broken = lib.versionAtLeast kernel.version "5.18.0"; |
||||
}; |
||||
} |
Loading…
Reference in new issue