working flake

This commit is contained in:
Alwin Berger 2022-12-05 10:52:05 +01:00
parent e2c3c6edfa
commit 6908917237
2 changed files with 25 additions and 16 deletions

30
flake.lock generated
View File

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1638122382, "lastModified": 1667077288,
"narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=", "narHash": "sha256-bdC8sFNDpT0HK74u9fUkpbf1MEzVYJ+ka7NXCdgBoaA=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "74f7e4319258e287b0f9cb95426c9853b282730b", "rev": "6ee9ebb6b1ee695d2cacc4faa053a7b9baa76817",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -17,11 +17,11 @@
}, },
"flake-utils_2": { "flake-utils_2": {
"locked": { "locked": {
"lastModified": 1637014545, "lastModified": 1659877975,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -32,11 +32,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1641230035, "lastModified": 1667050928,
"narHash": "sha256-hFyqihERaTbLxCOlugy/rpp22VLtLh8SPRnA2uu3F/8=", "narHash": "sha256-xOn0ZgjImIyeecEsrjxuvlW7IW5genTwvvnDQRFncB8=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "78cd22c1b8604de423546cd49bfe264b786eca13", "rev": "fdebb81f45a1ba2c4afca5fd9f526e1653ad0949",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -48,11 +48,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1637453606, "lastModified": 1665296151,
"narHash": "sha256-Gy6cwUswft9xqsjWxFYEnx/63/qzaFUwatcbV5GF/GQ=", "narHash": "sha256-uOB0oxqxN9K7XGF1hcnY+PQnlQJ+3bP2vCn/+Ru/bbc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "8afc4e543663ca0a6a4f496262cd05233737e732", "rev": "14ccaaedd95a488dd7ae142757884d8e125b3363",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -75,11 +75,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1641177598, "lastModified": 1667184938,
"narHash": "sha256-ixQ72QmhIfb7bAzvLUn6GtjpoMA/N3V1PBwjZQQyc1k=", "narHash": "sha256-/kuCiXuAxiD0c0zrfDvJ1Yba3FuVdRk/ROfb393AeX4=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "d93e905bc0d36508590b6ec0e2e6e92d2cf8289a", "rev": "8f81faec35508647ced65c44fd3e8648a5518afb",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -15,7 +15,7 @@
inherit system overlays; inherit system overlays;
}; };
myrust = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override { myrust = pkgs.rust-bin.selectLatestNightlyWith (toolchain: toolchain.default.override {
extensions = [ "rls" "rust-analysis" "rust-src" "rust-docs" ]; extensions = [ "rust-analyzer" "rust-src" "rust-docs" ];
}); });
in in
with pkgs; with pkgs;
@ -24,12 +24,15 @@
buildInputs = [ buildInputs = [
# rust-bin.nightly.latest.default # rust-bin.nightly.latest.default
myrust myrust
llvmPackages_14.libclang
# für qemu # für qemu
python3 python3
meson # unsure
ninja ninja
pkgconfig pkgconfig
glib glib
pixman pixman
# libslirp
# für analyse der in-/outputs # für analyse der in-/outputs
xxd xxd
# FreeRTOS # FreeRTOS
@ -47,6 +50,12 @@
]; ];
shellHook = '' shellHook = ''
export CUSTOM_QEMU_DIR=/home/alwin/code/FRET/qemu-libafl-bridge
export CUSTOM_QEMU_NO_BUILD=1
# export EMULATION_MODE=systemmode
# export CPU_TARGET=arm
# export CROSS_CC=arm-none-eabi-gcc
export LIBCLANG_PATH=${llvmPackages_14.libclang.lib}/lib
''; '';
}; };