c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
48 lines
1,006 B
Nix
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";
|
|
};
|
|
}
|