nixpkgs/pkgs/servers/identd/nullidentdmod/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
727 B
Nix

{ lib, stdenv, fetchFromGitHub, ... }:
stdenv.mkDerivation rec {
pname = "nullidentdmod";
version = "1.3";
src = fetchFromGitHub {
owner = "Acidhub";
repo = "nullidentdmod";
rev = "v${version}";
sha256 = "1ahwm5pyidc6m07rh5ls2lc25kafrj233nnbcybprgl7bqdq1b0k";
};
installPhase = ''
mkdir -p $out/bin
install -Dm755 nullidentdmod $out/bin
'';
meta = with lib; {
description = "Simple identd that just replies with a random string or customized userid";
mainProgram = "nullidentdmod";
license = licenses.gpl2;
homepage = "http://acidhub.click/NullidentdMod";
maintainers = with maintainers; [ das_j ];
platforms = platforms.linux; # Must be run by systemd
};
}