python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / nmap / zenmap.patch
blob3cd39750c881924e83e7f50dd3f1ba122901251d
1 diff -ruN nmap-5.50.orig/zenmap/zenmapCore/Paths.py nmap-5.50/zenmap/zenmapCore/Paths.py
2 --- nmap-5.50.orig/zenmap/zenmapCore/Paths.py 2013-06-06 05:52:10.723087428 +0000
3 +++ nmap-5.50/zenmap/zenmapCore/Paths.py 2013-06-06 07:07:25.481261761 +0000
4 @@ -115,7 +115,10 @@
5 else:
6 # Normal script execution. Look in the current directory to allow
7 # running from the distribution.
8 - return os.path.abspath(os.path.dirname(fs_dec(sys.argv[0])))
9 + #
10 + # Grrwlf: No,no,dear. That's not a script, thats Nixos wrapper. Go add
11 + # those '..' to substract /bin part.
12 + return os.path.abspath(os.path.join(os.path.dirname(fs_dec(sys.argv[0])), ".."))
14 prefix = get_prefix()