about summary refs log tree commit diff
path: root/pkgs/tools/misc/cloc
diff options
context:
space:
mode:
authorJude Taylor <me@jude.bio>2015-10-05 08:46:49 -0700
committerJude Taylor <me@jude.bio>2015-10-05 08:46:56 -0700
commit0a32eab91e7a547325958da2581933a98095d50c (patch)
tree9ac78b2de9a984bd96b4240ddd1269a56720d6eb /pkgs/tools/misc/cloc
parent4e8da0747c88375c221bf1b0f060183a863c6851 (diff)
downloadnixlib-0a32eab91e7a547325958da2581933a98095d50c.tar
nixlib-0a32eab91e7a547325958da2581933a98095d50c.tar.gz
nixlib-0a32eab91e7a547325958da2581933a98095d50c.tar.bz2
nixlib-0a32eab91e7a547325958da2581933a98095d50c.tar.lz
nixlib-0a32eab91e7a547325958da2581933a98095d50c.tar.xz
nixlib-0a32eab91e7a547325958da2581933a98095d50c.tar.zst
nixlib-0a32eab91e7a547325958da2581933a98095d50c.zip
fix LLVM packages to work in darwin stdenv
Diffstat (limited to 'pkgs/tools/misc/cloc')
-rw-r--r--pkgs/tools/misc/cloc/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/misc/cloc/default.nix b/pkgs/tools/misc/cloc/default.nix
index bb278dbe1b19..0b5796d4ac38 100644
--- a/pkgs/tools/misc/cloc/default.nix
+++ b/pkgs/tools/misc/cloc/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, perl, AlgorithmDiff, RegexpCommon }:
+{ stdenv, fetchurl, fetchpatch, perl, AlgorithmDiff, RegexpCommon }:
 
 stdenv.mkDerivation rec {
 
@@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
     sha256 = "1w3mz69h2i7pscvi9q7yp7wimds8g38c5ph78cj5pvjl5wa035rh";
   };
 
+  patches = [ (fetchpatch {
+    name = "perl-5.22.patch";
+    url = "https://bugs.archlinux.org/task/45494?getfile=13174";
+    sha256 = "1xxwqjy2q2fdza7kfp9ld0yzljkdsrgm8a9pwnmx5q4adigcjjsz";
+  }) ];
+
   buildInputs = [ perl AlgorithmDiff RegexpCommon ];
 
   makeFlags = [ "prefix=" "DESTDIR=$(out)" "INSTALL=install" ];