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
|
@ -1,5 +1,6 @@
|
|||
{ pkgs, ... }: {
|
||||
ipsw = pkgs.callPackage ./ipsw.nix { };
|
||||
monaco-powerline = pkgs.callPackage ./monaco-powerline/default.nix { };
|
||||
telnet = pkgs.callPackage ./telnet.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