tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
linuxPackages.ax99100: init at 1.8.0
Martin Messer
3 years ago
6614cd8b
ac608199
+31
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
ax99100
default.nix
top-level
linux-kernels.nix
+29
pkgs/os-specific/linux/ax99100/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ kernel, stdenv, kmod, lib, fetchzip }:
2
+
stdenv.mkDerivation
3
+
{
4
+
pname = "ax99100";
5
+
version = "1.8.0";
6
+
nativeBuildInputs = [ kmod ] ++ kernel.moduleBuildDependencies;
7
+
src = fetchzip {
8
+
url = "https://www.asix.com.tw/en/support/download/file/1229";
9
+
sha256 = "1rbp1m01qr6b3nbr72vpbw89pjh8mddc60im78z2yjd951xkbcjh";
10
+
extension = "tar.bz2";
11
+
};
12
+
13
+
makeFlags = [ "KDIR='${kernel.dev}/lib/modules/${kernel.modDirVersion}/build'" ];
14
+
15
+
installPhase = ''
16
+
mkdir -p $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/tty/serial
17
+
cp ax99100.ko $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/tty/serial
18
+
'';
19
+
20
+
meta = {
21
+
description = "ASIX AX99100 Serial and Parralel Port driver";
22
+
homepage = "https://www.asix.com.tw/en/product/Interface/PCIe_Bridge/AX99100";
23
+
# According to the source code in the tarball, the license is gpl2.
24
+
license = lib.licenses.gpl2;
25
+
platforms = lib.platforms.linux;
26
+
# currently, the build fails with kernels newer than 5.17
27
+
broken = lib.versionAtLeast kernel.version "5.18.0";
28
+
};
29
+
}
+2
pkgs/top-level/linux-kernels.nix
···
282
283
apfs = callPackage ../os-specific/linux/apfs { };
284
0
0
285
batman_adv = callPackage ../os-specific/linux/batman-adv {};
286
287
bbswitch = callPackage ../os-specific/linux/bbswitch {};
···
282
283
apfs = callPackage ../os-specific/linux/apfs { };
284
285
+
ax99100 = callPackage ../os-specific/linux/ax99100 {};
286
+
287
batman_adv = callPackage ../os-specific/linux/batman-adv {};
288
289
bbswitch = callPackage ../os-specific/linux/bbswitch {};