2023-08-10 07:59:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
|
|
|
, zig_0_10
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-09-09 14:08:57 +00:00
|
|
|
pname = "findup";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.1.1";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-07-15 17:15:38 +00:00
|
|
|
owner = "booniepepper";
|
2023-08-10 07:59:29 +00:00
|
|
|
repo = "findup";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-Tpyiy5oJQ04lqVEOFshFC0+90VoNILQ+N6Dd7lbuH/Q=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [ zig_0_10.hook ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = finalAttrs.findup; };
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
meta = {
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/booniepepper/findup";
|
2022-09-09 14:08:57 +00:00
|
|
|
description = "Search parent directories for sentinel files";
|
2023-08-10 07:59:29 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ booniepepper ];
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
})
|