about summary refs log tree commit diff
path: root/pkgs/tools/misc/cloc
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2021-12-07 22:25:56 +0100
committerRobert Helgesson <robert@rycee.net>2021-12-07 23:04:32 +0100
commit629e241bed0ef4a6d0cf161cf40e9a1f86501fbe (patch)
treed835fd1ab74756487fff72ebc8ad798b5f5260bb /pkgs/tools/misc/cloc
parent38debe9ed737c66233befc517d273d972dc8b1df (diff)
cloc: fix src hash for Darwin
Also span `buildInputs` over multiple lines.
Diffstat (limited to 'pkgs/tools/misc/cloc')
-rw-r--r--pkgs/tools/misc/cloc/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/misc/cloc/default.nix b/pkgs/tools/misc/cloc/default.nix
index 1825c1b767edd..662a72f9e7a09 100644
--- a/pkgs/tools/misc/cloc/default.nix
+++ b/pkgs/tools/misc/cloc/default.nix
@@ -8,7 +8,10 @@ stdenv.mkDerivation rec {
     owner = "AlDanial";
     repo = "cloc";
     rev = "v${version}";
-    sha256 = "sha256-tFARxNGXzWw+EN2qwBOhJEj7zwYfC9tVP0sAHqeGwcM=";
+    sha256 = if stdenv.isDarwin then
+      "1hy1hskiw02b7xaxn2qz0v7znj14l49w1anx20z6rkcps7212l5l"
+    else
+      "sha256-tFARxNGXzWw+EN2qwBOhJEj7zwYfC9tVP0sAHqeGwcM=";
   };
 
   setSourceRoot = ''
@@ -16,7 +19,12 @@ stdenv.mkDerivation rec {
   '';
 
   nativeBuildInputs = [ makeWrapper ];
-  buildInputs = (with perlPackages; [ perl AlgorithmDiff ParallelForkManager RegexpCommon ]);
+  buildInputs = with perlPackages; [
+    perl
+    AlgorithmDiff
+    ParallelForkManager
+    RegexpCommon
+  ];
 
   makeFlags = [ "prefix=" "DESTDIR=$(out)" "INSTALL=install" ];