nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 49 lines 1.1 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 pkg-config, 6 openssl, 7 sqlite, 8 stdenv, 9}: 10 11rustPlatform.buildRustPackage rec { 12 pname = "ghostie"; 13 version = "0.3.1"; 14 15 src = fetchFromGitHub { 16 owner = "attriaayush"; 17 repo = "ghostie"; 18 rev = "v${version}"; 19 sha256 = "sha256-lEjJLmBA3dlIVxc8E+UvR7u154QGeCfEbxdgUxAS3Cw="; 20 }; 21 22 cargoHash = "sha256-nGib7MXLiN5PTQoSFf68ClwX5K/aSF8QT9hz20UDGdE="; 23 24 nativeBuildInputs = [ 25 pkg-config 26 ]; 27 28 buildInputs = [ 29 openssl 30 sqlite 31 ]; 32 33 # 4 out of 5 tests are notification tests which do not work in nix builds 34 doCheck = false; 35 36 preBuild = lib.optionalString stdenv.hostPlatform.isDarwin '' 37 export HOME=$(mktemp -d) 38 ''; 39 40 meta = { 41 description = "Github notifications in your terminal"; 42 homepage = "https://github.com/attriaayush/ghostie"; 43 changelog = "https://github.com/attriaayush/ghostie/releases/tag/v${version}"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ matthiasbeyer ]; 46 broken = stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin; 47 mainProgram = "ghostie"; 48 }; 49}