lol
1{ stdenv, lib, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "hostname-debian";
5 version = "3.23";
6
7 src = fetchurl {
8 url = "https://deb.debian.org/debian/pool/main/h/hostname/hostname_${version}.tar.gz";
9 sha256 = "sha256-vG0ZVLIoSYaf+LKmAuOfCLFwL2htS1jdeSfN61tIdu8=";
10 };
11
12 postPatch = ''
13 substituteInPlace Makefile --replace 'install -o root -g root' 'install'
14 '';
15 makeFlags = [ "BINDIR=$(out)/bin" "MANDIR=$(out)/share/man" ];
16
17 meta = with lib; {
18 description = "Utility to set/show the host name or domain name";
19 longDescription = ''
20 This package provides commands which can be used to display the system's
21 DNS name, and to display or set its hostname or NIS domain name.
22 '';
23 homepage = "https://tracker.debian.org/pkg/hostname";
24 license = licenses.gpl2Plus;
25 maintainers = with maintainers; [ posch ];
26 platforms = platforms.gnu;
27 };
28}