2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
|
|
|
, sqlite
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ghostie";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.3.1";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "attriaayush";
|
|
|
|
repo = "ghostie";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-lEjJLmBA3dlIVxc8E+UvR7u154QGeCfEbxdgUxAS3Cw=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"clokwerk-0.4.0-rc1" = "sha256-GQDWEN2arDDRu2ft8QYdXsNhBEIhBNZTnLoLy27cbAI=";
|
|
|
|
};
|
|
|
|
};
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
sqlite
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-01-11 07:51:40 +00:00
|
|
|
darwin.apple_sdk.frameworks.Cocoa
|
|
|
|
];
|
|
|
|
|
|
|
|
# 4 out of 5 tests are notification tests which do not work in nix builds
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
preBuild = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
2023-01-11 07:51:40 +00:00
|
|
|
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 ];
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ghostie";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
}
|