nixpkgs/pkgs/tools/misc/findup/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
708 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, testers
, zig_0_10
}:
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";
repo = "findup";
rev = "v${finalAttrs.version}";
hash = "sha256-Tpyiy5oJQ04lqVEOFshFC0+90VoNILQ+N6Dd7lbuH/Q=";
2022-01-13 09:18:09 +00:00
};
nativeBuildInputs = [ zig_0_10.hook ];
2022-01-13 09:18:09 +00:00
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
2022-01-13 09:18:09 +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";
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
};
})