ghostie: init at 0.2.1

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Co-authored-by: figsoda <figsoda@pm.me>
This commit is contained in:
Matthias Beyer
2022-12-31 10:17:13 +01:00
co-authored by figsoda
parent dea47fa228
commit 76c6349c9a
2 changed files with 52 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, sqlite
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "ghostie";
version = "0.2.1";
src = fetchFromGitHub {
owner = "attriaayush";
repo = "ghostie";
rev = "v${version}";
sha256 = "sha256-O05PJa4YFD8+9BOojS7Ti1OYGxaROFKyGT9VJf5V58U=";
};
cargoSha256 = "sha256-YF808suqfeM156KkRGCCtGFsCdgQ4eu6n2P6yAVV7qc=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
sqlite
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Cocoa
];
# 4 out of 5 tests are notification tests which do not work in nix builds
doCheck = false;
preBuild = lib.optionalString stdenv.isDarwin ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Github notifications in your terminal";
homepage = "https://github.com/attriaayush/ghostie";
changelog = "https://github.com/attriaayush/ghostie/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ matthiasbeyer ];
};
}
+2
View File
@@ -1375,6 +1375,8 @@ with pkgs;
gh-eco = callPackage ../tools/misc/gh-eco { };
ghostie = callPackage ../tools/misc/ghostie { };
glooctl = callPackage ../applications/networking/cluster/glooctl { };
gobgp = callPackage ../tools/networking/gobgp { };