linux-gpib: init at 4.3.6

This commit is contained in:
Florian Agbuya 2023-07-27 15:40:04 +08:00
parent cea0b67368
commit 1d41078177
5 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ pname, fetchurl, lib }: rec {
version = "4.3.6";
inherit pname;
src = fetchurl {
url = "mirror://sourceforge/project/linux-gpib/linux-gpib%20for%203.x.x%20and%202.6.x%20kernels/${version}/linux-gpib-${version}.tar.gz";
hash = "sha256-Gze4xrvkhEgn+J5Jhrycezjp2uhlD1v6aX0WGv4J2Jg=";
};
unpackPhase = ''
tar xf $src
tar xf linux-gpib-${version}/${pname}-${version}.tar.gz
'';
sourceRoot = "${pname}-${version}";
meta = with lib; {
description = "Support package for GPIB (IEEE 488) hardware";
homepage = "https://linux-gpib.sourceforge.io/";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fsagbuya ];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,23 @@
{ lib
, stdenv
, fetchurl
, kernel
, pahole
}:
stdenv.mkDerivation (import ./common.nix { inherit fetchurl lib; pname = "linux-gpib-kernel"; } // {
postPatch = ''
sed -i 's@/sbin/depmod -A@@g' Makefile
'';
buildInputs = [ pahole ] ++ kernel.moduleBuildDependencies;
makeFlags = [
"LINUX_SRCDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
installFlags = [
"INSTALL_MOD_PATH=$(out)"
];
})

View file

@ -0,0 +1,25 @@
{ lib
, stdenv
, fetchurl
, autoconf
, libtool
, bison
, flex
, automake
}:
stdenv.mkDerivation (import ./common.nix { inherit fetchurl lib; pname = "linux-gpib-user"; } // {
nativeBuildInputs = [
autoconf
libtool
bison
flex
automake
];
configureFlags = [
"--sysconfdir=$(out)/etc"
"--prefix=$(out)"
];
})

View file

@ -10259,6 +10259,8 @@ with pkgs;
linux-exploit-suggester = callPackage ../tools/security/linux-exploit-suggester { };
linux-gpib = callPackage ../applications/science/electronics/linux-gpib/user.nix { };
linuxquota = callPackage ../tools/misc/linuxquota { };
lipl = callPackage ../tools/misc/lipl { };

View file

@ -380,6 +380,8 @@ in {
lenovo-legion-module = callPackage ../os-specific/linux/lenovo-legion { };
linux-gpib = callPackage ../applications/science/electronics/linux-gpib/kernel.nix { };
liquidtux = callPackage ../os-specific/linux/liquidtux {};
lkrg = callPackage ../os-specific/linux/lkrg {};