1{ coreutils
2, fetchurl
3, gnugrep
4, lib
5, makeWrapper
6, moreutils
7, stdenvNoCC
8}:
9
10stdenvNoCC.mkDerivation rec {
11 pname = "zstxtns-utils";
12 version = "0.0.3";
13
14 src = fetchurl {
15 url = "https://ytrizja.de/distfiles/zstxtns-utils-${version}.tar.gz";
16 sha256 = "I/Gm7vHUr29NClYWQ1kwu8HrNZpdLXfE/nutTNoqcdU=";
17 };
18
19 nativeBuildInputs = [ makeWrapper ];
20
21 installPhase = ''
22 runHook preInstall
23 install -D -t $out/bin zstxtns-merge zstxtns-unmerge
24 runHook postInstall
25 '';
26
27 postInstall = ''
28 wrapProgram $out/bin/zstxtns-merge --set PATH "${lib.makeBinPath [coreutils gnugrep moreutils]}"
29 wrapProgram $out/bin/zstxtns-unmerge --set PATH "${lib.makeBinPath [coreutils gnugrep]}"
30 '';
31
32 meta = with lib; {
33 description = "utilities to deal with text based name service databases";
34 homepage = "https://ytrizja.de/";
35 license = licenses.gpl3Plus;
36 maintainers = with maintainers; [ zseri ];
37 platforms = platforms.all;
38 };
39}