commit
80dd602c48
33
pkgs/development/libraries/libx86emu/default.nix
Normal file
33
pkgs/development/libraries/libx86emu/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ stdenv, fetchurl, perl }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "libx86emu-${version}";
|
||||||
|
version = "1.5";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/wfeldt/libx86emu/archive/${version}.tar.gz";
|
||||||
|
sha256 = "1im6w6m0bl6ajynx4hc028lad8v10whv4y7w9zxndzh3j4mi3aa8";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
# VERSION is usually generated using Git
|
||||||
|
echo "${version}" > VERSION
|
||||||
|
sed -i 's|/usr/|/|g' Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
makeFlags = "shared";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
make install DESTDIR=$out/ LIBDIR=lib
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "x86 emulation library";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
homepage = https://github.com/wfeldt/libx86emu;
|
||||||
|
maintainers = with maintainers; [ bobvanderlinden ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
35
pkgs/tools/system/hwinfo/default.nix
Normal file
35
pkgs/tools/system/hwinfo/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv, fetchurl, libx86emu, flex, perl }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "hwinfo-${version}";
|
||||||
|
version = "21.12";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/opensuse/hwinfo/archive/${version}.tar.gz";
|
||||||
|
sha256 = "01y5jk2jns0a3mgsgmvmpvi5yyc0df7b3yqsg32hn5r2nv17i47p";
|
||||||
|
};
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
# VERSION and changelog is usually generated using Git
|
||||||
|
echo "${version}" > VERSION
|
||||||
|
sed -i 's|^\(TARGETS\s*=.*\)\<changelog\>\(.*\)$|\1\2|g' Makefile
|
||||||
|
|
||||||
|
sed -i 's|lex isdn_cdb.lex|${flex}/bin/flex isdn_cdb.lex|g' src/isdn/cdb/Makefile
|
||||||
|
sed -i 's|/sbin|/bin|g' Makefile
|
||||||
|
sed -i 's|/usr/|/|g' Makefile
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
make install DESTDIR=$out
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ libx86emu flex perl ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Hardware detection tool from openSUSE";
|
||||||
|
license = licenses.gpl2;
|
||||||
|
homepage = https://github.com/openSUSE/hwinfo;
|
||||||
|
maintainers = with maintainers; [ bobvanderlinden ];
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -1760,6 +1760,8 @@ let
|
|||||||
|
|
||||||
httptunnel = callPackage ../tools/networking/httptunnel { };
|
httptunnel = callPackage ../tools/networking/httptunnel { };
|
||||||
|
|
||||||
|
hwinfo = callPackage ../tools/system/hwinfo { };
|
||||||
|
|
||||||
i2p = callPackage ../tools/networking/i2p {};
|
i2p = callPackage ../tools/networking/i2p {};
|
||||||
|
|
||||||
i2pd = callPackage ../tools/networking/i2pd {};
|
i2pd = callPackage ../tools/networking/i2pd {};
|
||||||
@ -1985,6 +1987,8 @@ let
|
|||||||
|
|
||||||
libxcomp = callPackage ../development/libraries/libxcomp { };
|
libxcomp = callPackage ../development/libraries/libxcomp { };
|
||||||
|
|
||||||
|
libx86emu = callPackage ../development/libraries/libx86emu { };
|
||||||
|
|
||||||
librdmacm = callPackage ../development/libraries/librdmacm { };
|
librdmacm = callPackage ../development/libraries/librdmacm { };
|
||||||
|
|
||||||
limesurvey = callPackage ../servers/limesurvey { };
|
limesurvey = callPackage ../servers/limesurvey { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user