-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathflake.nix
48 lines (38 loc) · 1018 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
description = "A flake for building QEMU";
# Each time this url is changed, please rerun `nix flake lock --update-input nixpkgs` to update the lock file
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells.${system}.default = pkgs.llvmPackages_19.stdenv.mkDerivation {
pname = "QFlex";
version = "1";
src = ".";
buildInputs = [
pkgs.ninja
pkgs.glib
pkgs.pkg-config
pkgs.pixman
pkgs.capstone
pkgs.libslirp
pkgs.libgcrypt
pkgs.zstd
pkgs.python3
pkgs.git
pkgs.pbzip2
pkgs.flex
pkgs.bison
pkgs.cmake
pkgs.boost
pkgs.libtinfo
pkgs.ncurses6
];
# This property is not required by mkDerivation, but appears as a environmental variable.
# They can be used directly in the develop shell.
};
};
}