Created
June 23, 2023 12:54
-
-
Save idrisr/cc584958d9be268400e89b1d4ca0b307 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
inputs.nixpkgs.url = "nixpkgs"; | |
description = "qemu with lm32"; | |
outputs = { self, nixpkgs, ... }: | |
let | |
system = "x86_64-linux"; | |
pkgs = import nixpkgs { inherit system; }; | |
qemu52 = with pkgs; | |
stdenv.mkDerivation { | |
name = "qemu52"; | |
src = fetchurl { | |
url = "https://download.qemu.org/qemu-5.2.0.tar.xz"; | |
hash = "sha256-yxjYibYo++Y3ZysDJnidmw47gCfgRFuTZTfHhUnfF7w="; | |
}; | |
configurePhase = "./configure --target-list=lm32-softmmu"; | |
buildInputs = [ pixman glib pkg-config python3 ninja ]; | |
}; | |
in { | |
apps.${system} = { }; | |
packages.${system} = { default = qemu52; }; | |
devShells.${system} = { default = qemu52; }; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment