Remove optional builtins prefixes from prelude functions by running:
builtins=(
abort
baseNameOf
break
derivation
derivationStrict
dirOf
false
fetchGit
fetchMercurial
fetchTarball
fetchTree
fromTOML
import
isNull
map
null
placeholder
removeAttrs
scopedImport
throw
toString
true
)
fd \
--type file \
. \
pkgs \
--exec-batch sed --in-place --regexp-extended "
s/\<builtins\.($(
printf '%s\n' "${builtins[@]}" |
paste --delimiter '|' --serial -
))\>/\1/g
"
nix fmt
34 lines
761 B
Nix
34 lines
761 B
Nix
{
|
|
fetchFromSourcehut,
|
|
hareHook,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "hare-ssh";
|
|
version = "0-unstable-2023-11-16";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~sircmpwn";
|
|
repo = "hare-ssh";
|
|
rev = "c6a39e37ba4a42721594e0a907fe016f8e2198a8";
|
|
hash = "sha256-I43TLPoImBsvkgV3hDy9dw0pXVt4ezINnxFtEV9P2/M=";
|
|
};
|
|
|
|
nativeBuildInputs = [ hareHook ];
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://git.sr.ht/~sircmpwn/hare-ssh/";
|
|
description = "SSH client & server protocol implementation for Hare";
|
|
license = with licenses; [ mpl20 ];
|
|
maintainers = with maintainers; [ patwid ];
|
|
|
|
inherit (hareHook.meta) platforms badPlatforms;
|
|
};
|
|
})
|