2023-07-10 04:29:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, testers
|
2023-08-10 00:43:09 +00:00
|
|
|
, zig_0_10
|
2023-07-10 04:29:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-01-13 09:18:09 +00:00
|
|
|
pname = "findup";
|
2023-07-07 17:59:07 +00:00
|
|
|
version = "1.1.1";
|
2022-01-13 09:18:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-07-07 17:59:07 +00:00
|
|
|
owner = "booniepepper";
|
2023-07-10 04:29:45 +00:00
|
|
|
repo = "findup";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-Tpyiy5oJQ04lqVEOFshFC0+90VoNILQ+N6Dd7lbuH/Q=";
|
2022-01-13 09:18:09 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 00:43:09 +00:00
|
|
|
nativeBuildInputs = [ zig_0_10.hook ];
|
2022-01-13 09:18:09 +00:00
|
|
|
|
2023-12-29 19:32:23 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
2022-01-13 09:18:09 +00:00
|
|
|
|
2023-07-10 04:29:45 +00:00
|
|
|
meta = {
|
2023-07-07 17:59:07 +00:00
|
|
|
homepage = "https://github.com/booniepepper/findup";
|
2022-01-13 09:18:09 +00:00
|
|
|
description = "Search parent directories for sentinel files";
|
2023-07-10 04:29:45 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ booniepepper ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "findup";
|
2022-01-13 09:18:09 +00:00
|
|
|
};
|
2023-07-10 04:29:45 +00:00
|
|
|
})
|