refactor ssh daemon

This commit is contained in:
Ingolf Wagner 2024-04-12 22:23:06 +02:00
commit 2f5d2faaad
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 72 additions and 21 deletions
scripts

27
scripts/shell.nix Normal file
View file

@ -0,0 +1,27 @@
{ pkgs ? import <nixpkgs> { } }:
pkgs.mkShell {
buildInputs = [
(pkgs.boxes.overrideAttrs (old: rec {
version = "2.3.0";
src = pkgs.fetchFromGitHub {
owner = "ascii-boxes";
repo = "boxes";
rev = "v${version}";
sha256 = "sha256-/gc/5vDflmEwOtQbtLwRcchyr22rLQcWqs5GrwRxY70=";
};
#nativeBuildInputs = old.nativeBuildInputs ++ [
nativeBuildInputs = [
pkgs.libunistring
pkgs.pcre2
pkgs.ncurses
];
installPhase = ''
find . -type f
install -Dm755 -t $out/bin out/boxes
install -Dm644 -t $out/share/boxes boxes-config
install -Dm644 -t $out/share/man/man1 doc/boxes.1
'';
}))
];
}