nixpkgs/pkgs/applications/networking/instant-messengers/iamb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
942 B
Nix
Raw Normal View History

2023-04-13 17:07:30 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
2023-09-30 20:11:23 +00:00
, installShellFiles
2023-04-13 17:07:30 +00:00
, darwin
, stdenv
}:
rustPlatform.buildRustPackage rec {
pname = "iamb";
2024-03-29 14:13:08 +00:00
version = "0.0.9";
2023-04-13 17:07:30 +00:00
src = fetchFromGitHub {
owner = "ulyssa";
repo = "iamb";
rev = "v${version}";
2024-03-29 14:13:08 +00:00
hash = "sha256-UYc7iphpzqZPwhOn/ia7XvnnlIUvM7nSFBz67ZkXmNs=";
2023-04-13 17:07:30 +00:00
};
2024-03-29 14:13:08 +00:00
cargoHash = "sha256-982FdK6ej3Bbg4R9e43VSwlni837ZK4rkMkoeYMyW8E=";
2023-04-13 17:07:30 +00:00
2023-09-30 20:11:23 +00:00
nativeBuildInputs = [ installShellFiles ];
2023-04-13 17:07:30 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
];
2023-09-30 20:11:23 +00:00
postInstall = ''
OUT_DIR=$releaseDir/build/iamb-*/out
installManPage $OUT_DIR/iamb.{1,5}
'';
2023-04-13 17:07:30 +00:00
meta = with lib; {
description = "A Matrix client for Vim addicts";
mainProgram = "iamb";
2023-04-13 17:07:30 +00:00
homepage = "https://github.com/ulyssa/iamb";
changelog = "https://github.com/ulyssa/iamb/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ meain ];
};
}