Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
argopkgs
Commits
6c93e1cd
Commit
6c93e1cd
authored
Mar 22, 2019
by
Valentin Reis
Browse files
Use checkpath from the linux source tree.
parent
86abb461
Pipeline
#6116
passed with stages
in 3 minutes and 48 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pkgs/checkpatch/default.nix
View file @
6c93e1cd
{
stdenv
,
perl
}:
{
stdenv
,
src
,
perl
}:
stdenv
.
mkDerivation
{
src
=
./checkpatch.pl
;
inherit
src
;
name
=
"checkpatch"
;
unpack
Phase
=
"true"
;
build
Phase
=
"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
];
}
pkgs/checkpatch/checkpatch.pl
→
pkgs/checkpatch/
src/
checkpatch.pl
View file @
6c93e1cd
File moved
pkgs/default.nix
View file @
6c93e1cd
...
...
@@ -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
;
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment