1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libx86/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

30 lines
902 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "libx86-${version}";
version = "1.1";
src = fetchurl {
url = "https://www.codon.org.uk/~mjg59/libx86/downloads/${name}.tar.gz";
sha256 = "0j6h6bc02c6qi0q7c1ncraz4d1hkm5936r35rfsp4x1jrc233wav";
};
patches = [./constants.patch ./non-x86.patch ];
# using BACKEND=x86emu on 64bit systems fixes:
# http://www.mail-archive.com/suspend-devel@lists.sourceforge.net/msg02355.html
makeFlags = [
"DESTDIR=$(out)"
] ++ stdenv.lib.optional (!stdenv.isi686) "BACKEND=x86emu";
preBuild = ''
sed -i lrmi.c -e 's@defined(__i386__)@(defined(__i386__) || defined(__x86_64__))@'
sed -e s@/usr@@ -i Makefile
'';
meta = with stdenv.lib; {
description = "Real-mode x86 code emulator";
maintainers = with maintainers; [ raskin ];
platforms = [ "x86_64-linux" "i686-linux" ];
license = licenses.mit;
};
}