Skip to content

Instantly share code, notes, and snippets.

@idrisr
Created June 23, 2023 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idrisr/cc584958d9be268400e89b1d4ca0b307 to your computer and use it in GitHub Desktop.
Save idrisr/cc584958d9be268400e89b1d4ca0b307 to your computer and use it in GitHub Desktop.
{
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