forked from M-Labs/artiq
1
0
Fork 0

flake: set up Vivado

This commit is contained in:
Sebastien Bourdeauducq 2021-08-25 12:49:05 +08:00 committed by occheung
parent 5d0a8cf9ac
commit 3e09e48152
1 changed files with 22 additions and 0 deletions

View File

@ -170,6 +170,26 @@
}; };
}; };
vivado = pkgs.buildFHSUserEnv {
name = "vivado";
targetPkgs = pkgs: (
with pkgs; [
ncurses5
zlib
libuuid
xorg.libSM
xorg.libICE
xorg.libXrender
xorg.libX11
xorg.libXext
xorg.libXtst
xorg.libXi
]
);
profile = "source /opt/Xilinx/Vivado/2020.1/settings64.sh";
runScript = "vivado";
};
defaultPackage.x86_64-linux = pkgs.python3.withPackages(ps: [ packages.x86_64-linux.artiq ]); defaultPackage.x86_64-linux = pkgs.python3.withPackages(ps: [ packages.x86_64-linux.artiq ]);
devShell.x86_64-linux = pkgs.mkShell { devShell.x86_64-linux = pkgs.mkShell {
@ -181,6 +201,7 @@
pkgs.llvmPackages_11.clang-unwrapped pkgs.llvmPackages_11.clang-unwrapped
pkgs.llvm_11 pkgs.llvm_11
pkgs.lld_11 pkgs.lld_11
vivado
]; ];
TARGET_AR="llvm-ar"; TARGET_AR="llvm-ar";
}; };
@ -193,5 +214,6 @@
nixConfig = { nixConfig = {
binaryCachePublicKeys = ["nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc="]; binaryCachePublicKeys = ["nixbld.m-labs.hk-1:5aSRVA5b320xbNvu30tqxVPXpld73bhtOeH6uAjRyHc="];
binaryCaches = ["https://nixbld.m-labs.hk" "https://cache.nixos.org"]; binaryCaches = ["https://nixbld.m-labs.hk" "https://cache.nixos.org"];
sandboxPaths = ["/opt"];
}; };
} }