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