depot/third_party/nixpkgs/pkgs/applications/misc/porsmo/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

47 lines
978 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, alsa-lib
, stdenv
, darwin
, testers
, porsmo
}:
rustPlatform.buildRustPackage rec {
pname = "porsmo";
version = "0.2.0";
src = fetchFromGitHub {
owner = "ColorCookie-dev";
repo = "porsmo";
rev = version;
hash = "sha256-NOMEfS6RvB9513ZkcQi6cxBuhmALqqcI3onhua2MD+0=";
};
cargoHash = "sha256-6RV1RUkWLaxHqvs2RqSe/2tDw+aPDoRBYUW1GxN18Go=";
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs = [
alsa-lib
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreAudio
darwin.apple_sdk.frameworks.CoreFoundation
];
passthru.tests.version = testers.testVersion {
package = porsmo;
};
meta = with lib; {
description = "Pomodoro cli app in rust with timer and countdown";
homepage = "https://github.com/ColorCookie-dev/porsmo";
license = licenses.mit;
maintainers = with maintainers; [ MoritzBoehme ];
};
}