mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
cloc: fix src hash for Darwin
Also span `buildInputs` over multiple lines.
This commit is contained in:
parent
38debe9ed7
commit
629e241bed
1 changed files with 10 additions and 2 deletions
|
@ -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" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue