33 lines
1.0 KiB
Nix
Executable File
33 lines
1.0 KiB
Nix
Executable File
# NixOS / nixpkgs derivation for nirc-rs
|
|
{ lib, rustPlatform, fetchFromGit, openssl, pkg-config, stdenv, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nirc";
|
|
version = "0.5.0";
|
|
|
|
src = ./.;
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
|
|
|
postInstall = ''
|
|
install -Dm444 man/man1/nirc.1 $out/share/man/man1/nirc.1
|
|
install -Dm444 completions/nirc.bash $out/share/bash-completion/completions/nirc
|
|
install -Dm444 completions/nirc.zsh $out/share/zsh/vendor-completions/_nirc
|
|
install -Dm444 completions/nirc.fish $out/share/fish/vendor_completions.d/nirc.fish
|
|
gzip -9 $out/share/man/man1/nirc.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "multi-protocol terminal chat client";
|
|
homepage = "https://git.dcos.net/dcosnet/nirc-rs";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ "Jeremy Anderson <noreply@dcos.net>" ];
|
|
platforms = platforms.unix;
|
|
};
|
|
} |