fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 perl,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "libx86emu";
10 version = "3.7";
11
12 src = fetchFromGitHub {
13 owner = "wfeldt";
14 repo = "libx86emu";
15 rev = version;
16 sha256 = "sha256-ilAmGlkMeuG0FlygMdE3NreFPJJF6g/26C8C5grvjrk=";
17 };
18
19 nativeBuildInputs = [ perl ];
20
21 postUnpack = "rm $sourceRoot/git2log";
22 patchPhase = ''
23 # VERSION is usually generated using Git
24 echo "${version}" > VERSION
25 substituteInPlace Makefile --replace "/usr" "/"
26 '';
27
28 buildFlags = [
29 "shared"
30 "CC=${stdenv.cc.targetPrefix}cc"
31 ];
32
33 NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
34
35 enableParallelBuilding = true;
36
37 installFlags = [
38 "DESTDIR=$(out)"
39 "LIBDIR=/lib"
40 ];
41
42 meta = with lib; {
43 description = "x86 emulation library";
44 license = licenses.bsd2;
45 homepage = "https://github.com/wfeldt/libx86emu";
46 maintainers = with maintainers; [ bobvanderlinden ];
47 platforms = platforms.linux;
48 };
49}