summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-12-30 17:12:28 +0100
committerMatthias Beyer <mail@beyermatthias.de>2022-12-31 10:17:13 +0100
commit76c6349c9a16dc74c0cbde2dfc5bc9e5fceeb101 (patch)
tree757e36573144a39757f63ff0be82cbf0140efbf5
parentdea47fa228a4befa22bdda738f6348dd8a41e22c (diff)
ghostie: init at 0.2.1add-ghostie
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Co-authored-by: figsoda <figsoda@pm.me>
-rw-r--r--pkgs/tools/misc/ghostie/default.nix50
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ghostie/default.nix b/pkgs/tools/misc/ghostie/default.nix
new file mode 100644
index 000000000000..daacd1d652fe
--- /dev/null
+++ b/pkgs/tools/misc/ghostie/default.nix
@@ -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 ];
+ };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index ad8481cf406a..908d65a87a61 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -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 { };