Merge pull request #61597 from xbreak/sloccount-wrap
sloccount: Wrap shell scripts
This commit is contained in:
commit
e7103e63e2
|
@ -1,4 +1,4 @@
|
||||||
{ fetchurl, stdenv, perl }:
|
{ fetchurl, stdenv, perl, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "sloccount-2.26";
|
name = "sloccount-2.26";
|
||||||
|
@ -8,6 +8,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0ayiwfjdh1946asah861ah9269s5xkc8p5fv1wnxs9znyaxs4zzs";
|
sha256 = "0ayiwfjdh1946asah861ah9269s5xkc8p5fv1wnxs9znyaxs4zzs";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
# Make sure the Flex-generated files are newer than the `.l' files, so that
|
# Make sure the Flex-generated files are newer than the `.l' files, so that
|
||||||
|
@ -40,6 +41,13 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p "$out/share/doc"
|
mkdir -p "$out/share/doc"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
for w in "$out/bin"/*; do
|
||||||
|
isScript "$w" || continue
|
||||||
|
wrapProgram "$w" --prefix PATH : "$out/bin"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Set of tools for counting physical Source Lines of Code (SLOC)";
|
description = "Set of tools for counting physical Source Lines of Code (SLOC)";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue