Merge pull request #245677 from fsagbuya/linux-gpib

This commit is contained in:
Janik 2023-08-08 14:52:14 +02:00 committed by GitHub
commit 777fcd15e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -10335,6 +10335,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

@ -372,6 +372,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 {};