nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 fetchFromGitLab,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "hostname-debian";
9 version = "3.25";
10
11 outputs = [
12 "out"
13 "man"
14 ];
15
16 src = fetchFromGitLab {
17 domain = "salsa.debian.org";
18 owner = "meskes";
19 repo = "hostname";
20 tag = "debian/${version}";
21 hash = "sha256-Yq8P5bF/RRZnWuFW0y2u08oZrydAKfopOtbrwbeIu3w=";
22 };
23
24 makeFlags = [
25 "prefix=${placeholder "out"}"
26 ];
27
28 meta = with lib; {
29 changelog = "https://salsa.debian.org/meskes/hostname/-/blob/${src.tag}/debian/changelog";
30 description = "Utility to set/show the host name or domain name";
31 longDescription = ''
32 This package provides commands which can be used to display the system's
33 DNS name, and to display or set its hostname or NIS domain name.
34 '';
35 homepage = "https://tracker.debian.org/pkg/hostname";
36 license = licenses.gpl2Plus;
37 mainProgram = "hostname";
38 maintainers = with maintainers; [ posch ];
39 platforms = platforms.gnu;
40 };
41}