locate-dominating-file: fix Darwin build
This commit is contained in:
parent
01f86208d1
commit
a66af6ba3a
|
@ -2,13 +2,14 @@
|
||||||
, bash
|
, bash
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, lib
|
, lib
|
||||||
, stdenvNoCC
|
, resholve
|
||||||
|
, coreutils
|
||||||
, getopt
|
, getopt
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
version = "0.0.1";
|
version = "0.0.1";
|
||||||
in
|
in
|
||||||
stdenvNoCC.mkDerivation {
|
resholve.mkDerivation {
|
||||||
pname = "locate-dominating-file";
|
pname = "locate-dominating-file";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -24,12 +25,12 @@ stdenvNoCC.mkDerivation {
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ getopt ];
|
buildInputs = [ getopt coreutils ];
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
checkInputs = [ (bats.withLibraries (p: [ p.bats-support p.bats-assert ])) ];
|
checkInputs = [ (bats.withLibraries (p: [ p.bats-support p.bats-assert ])) ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
|
|
||||||
|
@ -47,6 +48,15 @@ stdenvNoCC.mkDerivation {
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
solutions.default = {
|
||||||
|
scripts = [ "bin/locate-dominating-file" ];
|
||||||
|
interpreter = "${bash}/bin/bash";
|
||||||
|
inputs = [
|
||||||
|
coreutils
|
||||||
|
getopt
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/roman/locate-dominating-file";
|
homepage = "https://github.com/roman/locate-dominating-file";
|
||||||
description = "Program that looks up in a directory hierarchy for a given filename";
|
description = "Program that looks up in a directory hierarchy for a given filename";
|
||||||
|
|
Loading…
Reference in a new issue