mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
d3fdf4df0a
Without the change `tests` eval fails as: $ nix build --no-link -f. findup.tests error: error: attribute 'findup' missing
31 lines
708 B
Nix
31 lines
708 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, testers
|
|
, zig_0_10
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "findup";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "booniepepper";
|
|
repo = "findup";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-Tpyiy5oJQ04lqVEOFshFC0+90VoNILQ+N6Dd7lbuH/Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [ zig_0_10.hook ];
|
|
|
|
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
|
|
|
|
meta = {
|
|
homepage = "https://github.com/booniepepper/findup";
|
|
description = "Search parent directories for sentinel files";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ booniepepper ];
|
|
mainProgram = "findup";
|
|
};
|
|
})
|