nixpkgs/pkgs/applications/misc/porsmo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1006 B
Nix
Raw Normal View History

2023-06-21 19:48:51 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, alsa-lib
, stdenv
, darwin
, testers
, porsmo
}:
rustPlatform.buildRustPackage rec {
pname = "porsmo";
2023-12-17 22:36:27 +00:00
version = "0.3.0";
2023-06-21 19:48:51 +00:00
src = fetchFromGitHub {
owner = "ColorCookie-dev";
repo = "porsmo";
rev = version;
2023-12-17 22:36:27 +00:00
hash = "sha256-bYPUSrGJKoNLFkIiGuXraYoaYn/HKSP8IiH3gtyWfmw=";
2023-06-21 19:48:51 +00:00
};
2023-12-17 22:36:27 +00:00
cargoHash = "sha256-EVo8iewKs4D7H2GP/T5oFO6LlTSzuIUqEdpwgjCKtJ8=";
2023-06-21 19:48:51 +00:00
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 ];
2024-02-11 02:19:15 +00:00
mainProgram = "porsmo";
2023-06-21 19:48:51 +00:00
};
}