Convert telnet to standalone derivation
Using all of `inetutils` resulted in commands such as `ping` and `ping6` being replaced, which is not desirable.
This commit is contained in:
parent
508dc46d17
commit
1b5d5662c4
3 changed files with 23 additions and 2 deletions
|
@ -19,8 +19,6 @@
|
||||||
htop
|
htop
|
||||||
hyfetch
|
hyfetch
|
||||||
imagemagick
|
imagemagick
|
||||||
# telnet
|
|
||||||
inetutils
|
|
||||||
ipsw
|
ipsw
|
||||||
jq
|
jq
|
||||||
libimobiledevice
|
libimobiledevice
|
||||||
|
@ -45,6 +43,7 @@
|
||||||
rustup
|
rustup
|
||||||
socat
|
socat
|
||||||
swiftformat
|
swiftformat
|
||||||
|
telnet
|
||||||
tmux
|
tmux
|
||||||
unar
|
unar
|
||||||
virt-manager
|
virt-manager
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
ipsw = pkgs.callPackage ./ipsw.nix { };
|
ipsw = pkgs.callPackage ./ipsw.nix { };
|
||||||
monaco-powerline = pkgs.callPackage ./monaco-powerline/default.nix { };
|
monaco-powerline = pkgs.callPackage ./monaco-powerline/default.nix { };
|
||||||
|
telnet = pkgs.callPackage ./telnet.nix { };
|
||||||
swiftformat = pkgs.callPackage ./swiftformat.nix { };
|
swiftformat = pkgs.callPackage ./swiftformat.nix { };
|
||||||
}
|
}
|
||||||
|
|
21
pkgs/telnet.nix
Normal file
21
pkgs/telnet.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ pkgs, lib, stdenvNoCC }:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "telnet";
|
||||||
|
version = pkgs.inetutils.version;
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
postBuild = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
ln -sf "${pkgs.inetutils}/bin/telnet" $out/bin/telnet
|
||||||
|
|
||||||
|
mkdir -p $out/share/man/man1
|
||||||
|
ln -sf "${pkgs.inetutils}/share/man/man1" $out/share/man/man1
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "telnet from inetutils as a standalone derivation";
|
||||||
|
platforms = pkgs.inetutils.meta.platforms;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue