refactor ssh daemon
This commit is contained in:
parent
6645f02a72
commit
2f5d2faaad
4 changed files with 72 additions and 21 deletions
scripts
27
scripts/shell.nix
Normal file
27
scripts/shell.nix
Normal 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
|
||||
'';
|
||||
}))
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue