mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #157741 from Ma27/dogdns
dogdns: 0.1.0 -> unstable-2021-10-07, install man pages
This commit is contained in:
commit
f9db4bf1ec
@ -5,36 +5,45 @@
|
||||
, stdenv
|
||||
, pkg-config
|
||||
, openssl
|
||||
, just
|
||||
, pandoc
|
||||
, Security
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "dogdns";
|
||||
version = "0.1.0";
|
||||
version = "unstable-2021-10-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ogham";
|
||||
repo = "dog";
|
||||
rev = "v${version}";
|
||||
sha256 = "088ib0sncv0vrvnqfvxf5zc79v7pnxd2cmgp4378r6pmgax9z9zy";
|
||||
rev = "721440b12ef01a812abe5dc6ced69af6e221fad5";
|
||||
sha256 = "sha256-y3T0vXg7631FZ4bzcbQjz3Buui/DFxh9LG8BZWwynp0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ]
|
||||
nativeBuildInputs = [ installShellFiles just pandoc ]
|
||||
++ lib.optionals stdenv.isLinux [ pkg-config ];
|
||||
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
|
||||
++ lib.optionals stdenv.isDarwin [ Security ];
|
||||
|
||||
cargoSha256 = "0zgzaq303zy8lymhldm6dpm5hwsxi2ph42zw5brvsdjmgm9ga0rb";
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
postBuild = ''
|
||||
just man
|
||||
'';
|
||||
|
||||
cargoSha256 = "sha256-agepQVJbqbjzFbEBKbM7BNxc8FlklOrCsTgCAOcuptc=";
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion completions/dog.{bash,fish,zsh}
|
||||
installManPage ./target/man/*.1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command-line DNS client";
|
||||
homepage = "https://dns.lookup.dog";
|
||||
license = licenses.eupl12;
|
||||
maintainers = with maintainers; [ bbigras ];
|
||||
maintainers = with maintainers; [ bbigras ma27 ];
|
||||
mainProgram = "dog";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user