mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
Merge pull request #213215 from atorres1985-contrib/small-fixups
locate-dominating-file: add meta.homepage
This commit is contained in:
commit
8c8a62f3fc
@ -15,11 +15,9 @@ stdenvNoCC.mkDerivation {
|
||||
owner = "roman";
|
||||
repo = "locate-dominating-file";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-gwh6fAw7BV7VFIkQN02QIhK47uxpYheMk64UeLyp2IY=";
|
||||
hash = "sha256-gwh6fAw7BV7VFIkQN02QIhK47uxpYheMk64UeLyp2IY=";
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
|
||||
postPatch = ''
|
||||
for file in $(find src tests -type f); do
|
||||
patchShebangs "$file"
|
||||
@ -28,14 +26,7 @@ stdenvNoCC.mkDerivation {
|
||||
|
||||
buildInputs = [ getopt ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp src/locate-dominating-file.sh $out/bin/locate-dominating-file
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
doCheck = true;
|
||||
|
||||
checkInputs = [ (bats.withLibraries (p: [ p.bats-support p.bats-assert ])) ];
|
||||
|
||||
@ -47,7 +38,17 @@ stdenvNoCC.mkDerivation {
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp src/locate-dominating-file.sh $out/bin/locate-dominating-file
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/roman/locate-dominating-file";
|
||||
description = "Program that looks up in a directory hierarchy for a given filename";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.roman ];
|
||||
|
Loading…
Reference in New Issue
Block a user