Skip to content

Commit 143d5e3

Browse files
committed
Nix shell fix
1 parent 7768890 commit 143d5e3

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

shell.nix

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
#
1515
# NOTE: the 'Official OpenCL runtime for Intel CPUs' is unfree software and
1616
# therefore, when invoking this shell, nix will require the $NIXPKGS_ALLOW_UNFREE=1
17-
# environment variable to be set. If you wish to create your shell with free software
18-
# only, then you can remove 'intel-ocl' entry from 'nativeBuildInputs' below. Please
19-
# note however if you are running and intel based system and remove intel-ocl then
20-
# you will not have opencl support when building openwall/john. For the avoidance of
21-
# doubt, this file does not contain any unfree software.
17+
# environment variable to be set. If you wish to create your shell with it,
18+
# then you can add 'intel-ocl' entry to 'nativeBuildInputs' below.
19+
#
20+
# Add 'rocm-opencl-runtime' entry to 'nativeBuildInputs' below for AMD GPU support.
21+
# The 'ocl-icd' entry is used by default and should suffice in most cases.
2222
#
2323
# More information about Nixos: https://nixos.org/
2424
# More information about nix-shell: https://nixos.org/manual/nix/stable/command-ref/nix-shell.html
@@ -39,13 +39,17 @@ let
3939
scapy
4040
lxml
4141
wrapPython
42+
olefile
4243
]);
4344
in
4445
pkgs.mkShell {
46+
LD_LIBRARY_PATH= pkgs.lib.makeLibraryPath [
47+
pkgs.ocl-icd
48+
];
4549
nativeBuildInputs = with pkgs.buildPackages;
4650
[
47-
openssl libzip rocm-opencl-runtime opencl-headers
48-
bzip2 libpcap libgmpris libxcrypt gmp intel-ocl
51+
openssl libzip opencl-headers ocl-icd clinfo
52+
bzip2 libpcap libgmpris libxcrypt gmp
4953
gcc zlib nss nspr libkrb5 re2 makeWrapper
5054
perlEnv pythonEnv
5155
];

0 commit comments

Comments
 (0)