Merge pull request #213215 from atorres1985-contrib/small-fixups

locate-dominating-file: add meta.homepage
This commit is contained in:
Anderson Torres 2023-01-28 18:14:00 -03:00 committed by GitHub
commit 8c8a62f3fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ];