Commit 6c93e1cd authored by Valentin Reis's avatar Valentin Reis
Browse files

Use checkpath from the linux source tree.

parent 86abb461
Pipeline #6116 passed with stages
in 3 minutes and 48 seconds
{ stdenv, perl }:
{ stdenv, src, perl }:
stdenv.mkDerivation {
src = ./checkpatch.pl;
inherit src;
name = "checkpatch";
unpackPhase = "true";
buildPhase = "true";
installPhase = ''
chmod +x $src
mkdir -p $out/bin && cp $src $out/bin
mkdir -p $out/bin $out/share
substituteInPlace scripts/checkpatch.pl --replace 'dirname(abs_path($P))' \"$out/share\";
cp scripts/checkpatch.pl $out/bin
cp scripts/spelling.txt scripts/const_structs.checkpatch $out/share
'';
buildInputs = [perl];
}
......@@ -95,7 +95,7 @@ let
openmc-data = fetched openmc/data.json;
# tools
checkpatch = callPackage ./checkpatch {};
checkpatch = callPackage ./checkpatch {src=pkgs.linux_testing.src;};
zymake = callPackage ./zymake {
inherit (pkgs.ocamlPackages) findlib ocamlbuild topkg batteries;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment