From 07c4cbccf1a7311ce117bb6ca0a540d356d47d38 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Sat, 29 Aug 2015 22:02:05 +0200 Subject: [PATCH] pythonPackages.pycdio: applied patch since driver_id can be also long type --- pkgs/top-level/python-packages.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e1cb3a3fea1f..45db6b66a036 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10340,6 +10340,10 @@ let sha256 = "1mrh233pj584gf7la64d4xlmvdnfl4jwpxs95lnd3i4zd5drid14"; }; + prePatch = '' + sed -i -e "s|if type(driver_id)==int|if type(driver_id) in (int, long)|g" cdio.py + ''; + preConfigure = '' patchShebangs . '';