about summary refs log tree commit diff
path: root/pkgs/development/libraries/libx86emu
diff options
context:
space:
mode:
authorBob van der Linden <bobvanderlinden@gmail.com>2015-04-20 13:55:04 +0200
committerBob van der Linden <bobvanderlinden@gmail.com>2015-05-25 14:17:46 +0200
commit2f4dc083d5d294392b9aaef59808466b4dad55c2 (patch)
tree036601e2a2093ae96b94d43af78767139b429109 /pkgs/development/libraries/libx86emu
parent11a9774c75d4a000b3a987d5176f5da833e39403 (diff)
downloadnixlib-2f4dc083d5d294392b9aaef59808466b4dad55c2.tar
nixlib-2f4dc083d5d294392b9aaef59808466b4dad55c2.tar.gz
nixlib-2f4dc083d5d294392b9aaef59808466b4dad55c2.tar.bz2
nixlib-2f4dc083d5d294392b9aaef59808466b4dad55c2.tar.lz
nixlib-2f4dc083d5d294392b9aaef59808466b4dad55c2.tar.xz
nixlib-2f4dc083d5d294392b9aaef59808466b4dad55c2.tar.zst
nixlib-2f4dc083d5d294392b9aaef59808466b4dad55c2.zip
added hwinfo
Diffstat (limited to 'pkgs/development/libraries/libx86emu')
-rw-r--r--pkgs/development/libraries/libx86emu/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libx86emu/default.nix b/pkgs/development/libraries/libx86emu/default.nix
new file mode 100644
index 000000000000..a1471766516a
--- /dev/null
+++ b/pkgs/development/libraries/libx86emu/default.nix
@@ -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;
+  };
+}