66 lines
2 KiB
Nix
66 lines
2 KiB
Nix
# This file was generated by GoReleaser. DO NOT EDIT.
|
|
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
|
|
{
|
|
system ? builtins.currentSystem
|
|
, pkgs
|
|
, lib
|
|
, fetchurl
|
|
, installShellFiles
|
|
}:
|
|
let
|
|
shaMap = {
|
|
i686-linux = "1yg37v5gjfimr5y95a8fkn94863k754cnid7al5zspp1rcc6cg3i";
|
|
x86_64-linux = "0n6kx2gdra8qvzgr2z7m08ng4n1cc677nlc5ibsm85yzjrwrrd6h";
|
|
armv6l-linux = "0i79g22lzd0dq7igy4a5vxs0n2b2cqg6bi48vhbhbmmh9k1wm2fl";
|
|
aarch64-linux = "06gghlh9g7zxz64kv5d36mqj68akzb821kzma2h32hscsmpj00ds";
|
|
x86_64-darwin = "1zm0njks4jvylbsp3n74b1kaa64d874h350l9gfm2nmj1iq26z2i";
|
|
aarch64-darwin = "1zm0njks4jvylbsp3n74b1kaa64d874h350l9gfm2nmj1iq26z2i";
|
|
};
|
|
|
|
urlMap = {
|
|
i686-linux = "https://git.froth.zone/sam/awl/releases/download/v0.6.10/awl_Linux_i386.tar.gz";
|
|
x86_64-linux = "https://git.froth.zone/sam/awl/releases/download/v0.6.10/awl_Linux_amd64.tar.gz";
|
|
armv6l-linux = "https://git.froth.zone/sam/awl/releases/download/v0.6.10/awl_Linux_arm.tar.gz";
|
|
aarch64-linux = "https://git.froth.zone/sam/awl/releases/download/v0.6.10/awl_Linux_arm64.tar.gz";
|
|
x86_64-darwin = "https://git.froth.zone/sam/awl/releases/download/v0.6.10/awl_MacOS_all.tar.gz";
|
|
aarch64-darwin = "https://git.froth.zone/sam/awl/releases/download/v0.6.10/awl_MacOS_all.tar.gz";
|
|
};
|
|
in
|
|
pkgs.stdenv.mkDerivation {
|
|
pname = "awl";
|
|
version = "0.6.10";
|
|
src = fetchurl {
|
|
url = urlMap.${system};
|
|
sha256 = shaMap.${system};
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -vr ./awl $out/bin/awl
|
|
installManPage ./doc/awl.1.gz
|
|
installShellCompletion ./completions/*
|
|
'';
|
|
|
|
system = system;
|
|
|
|
meta = {
|
|
description = "A DNS query client";
|
|
homepage = "https://dns.froth.zone/awl";
|
|
license = lib.licenses.bsd3;
|
|
|
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
|
|
platforms = [
|
|
"aarch64-darwin"
|
|
"aarch64-linux"
|
|
"armv6l-linux"
|
|
"i686-linux"
|
|
"x86_64-darwin"
|
|
"x86_64-linux"
|
|
];
|
|
};
|
|
}
|