nixpkgs-suyu/pkgs/applications/misc/porsmo/default.nix
2024-02-11 03:19:15 +01:00

48 lines
1,006 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, alsa-lib
, stdenv
, darwin
, testers
, porsmo
}:
rustPlatform.buildRustPackage rec {
pname = "porsmo";
version = "0.3.0";
src = fetchFromGitHub {
owner = "ColorCookie-dev";
repo = "porsmo";
rev = version;
hash = "sha256-bYPUSrGJKoNLFkIiGuXraYoaYn/HKSP8IiH3gtyWfmw=";
};
cargoHash = "sha256-EVo8iewKs4D7H2GP/T5oFO6LlTSzuIUqEdpwgjCKtJ8=";
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 ];
mainProgram = "porsmo";
};
}