Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.6 KiB
Nix
49 lines
1.6 KiB
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
lib,
|
|
zlib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "blink";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jart";
|
|
repo = "blink";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-4wgDftXOYm2fMP+/aTRljDi38EzbbwAJlQkuxjAMl3I=";
|
|
};
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
# Do not include --enable-static and --disable-shared flags during static compilation
|
|
dontAddStaticConfigureFlags = true;
|
|
|
|
# Don't add --build and --host flags as they are not supported
|
|
configurePlatforms = lib.optionals stdenv.hostPlatform.isStatic [ ];
|
|
|
|
# ./configure script expects --static not standard --enable-static
|
|
configureFlags = lib.optional stdenv.hostPlatform.isStatic "--static";
|
|
|
|
# 'make check' requires internet connection
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
|
|
meta = {
|
|
description = "Tiniest x86-64-linux emulator";
|
|
longDescription = ''
|
|
blink is a virtual machine that runs x86-64-linux programs on different operating systems and hardware architectures. It's designed to do the same thing as the qemu-x86_64 command, except that
|
|
- blink is much smaller in size than qemu-x86_64
|
|
- blink will run your Linux binaries on any POSIX platform, whereas qemu-x86_64 only supports Linux
|
|
- blink goes 2x faster than qemu-x86_64 on some benchmarks, such as SSE integer / floating point math. Blink is also faster at running ephemeral programs such as compilers
|
|
'';
|
|
|
|
homepage = "https://github.com/jart/blink";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ t4ccer ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|