summary refs log tree commit diff
path: root/pkgs/tools/misc/locate-dominating-file/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/locate-dominating-file/default.nix')
-rw-r--r--pkgs/tools/misc/locate-dominating-file/default.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/pkgs/tools/misc/locate-dominating-file/default.nix b/pkgs/tools/misc/locate-dominating-file/default.nix
index 8932b6f6225..c4c55ca3b06 100644
--- a/pkgs/tools/misc/locate-dominating-file/default.nix
+++ b/pkgs/tools/misc/locate-dominating-file/default.nix
@@ -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 ];