mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
findup: init at 1.0
This commit is contained in:
parent
ee480d0711
commit
f78e768d49
39
pkgs/tools/misc/findup/default.nix
Normal file
39
pkgs/tools/misc/findup/default.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{ lib, stdenv, fetchFromGitHub, zig, testers, findup }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "findup";
|
||||||
|
version = "1.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "hiljusti";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-erlKIiYYlWnhoeD3FnKdxnHjfGmmJVXk44DUja5Unig=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ zig ];
|
||||||
|
|
||||||
|
# Builds and installs (at the same time) with Zig.
|
||||||
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
# Give Zig a directory for intermediate work.
|
||||||
|
preInstall = ''
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
zig build -Drelease-safe -Dcpu=baseline --prefix $out
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests.version = testers.testVersion { package = findup; };
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/hiljusti/findup";
|
||||||
|
description = "Search parent directories for sentinel files";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ hiljusti ];
|
||||||
|
};
|
||||||
|
}
|
@ -6101,6 +6101,8 @@ with pkgs;
|
|||||||
|
|
||||||
findutils = callPackage ../tools/misc/findutils { };
|
findutils = callPackage ../tools/misc/findutils { };
|
||||||
|
|
||||||
|
findup = callPackage ../tools/misc/findup { };
|
||||||
|
|
||||||
bsd-finger = callPackage ../tools/networking/bsd-finger { };
|
bsd-finger = callPackage ../tools/networking/bsd-finger { };
|
||||||
bsd-fingerd = bsd-finger.override({ buildClient = false; });
|
bsd-fingerd = bsd-finger.override({ buildClient = false; });
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user