ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / po / porsmo / package.nix
blob6d9ed5ee2c98e1005b09e897a7d0695b878d6067
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , alsa-lib
6 , stdenv
7 , darwin
8 , testers
9 , porsmo
12 rustPlatform.buildRustPackage rec {
13   pname = "porsmo";
14   version = "0.3.0";
16   src = fetchFromGitHub {
17     owner = "ColorCookie-dev";
18     repo = "porsmo";
19     rev = version;
20     hash = "sha256-bYPUSrGJKoNLFkIiGuXraYoaYn/HKSP8IiH3gtyWfmw=";
21   };
23   cargoHash = "sha256-EVo8iewKs4D7H2GP/T5oFO6LlTSzuIUqEdpwgjCKtJ8=";
25   nativeBuildInputs = [
26     pkg-config
27     rustPlatform.bindgenHook
28   ];
30   buildInputs = [
31     alsa-lib
32   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
33     darwin.apple_sdk.frameworks.CoreAudio
34     darwin.apple_sdk.frameworks.CoreFoundation
35   ];
37   passthru.tests.version = testers.testVersion {
38     package = porsmo;
39   };
41   meta = with lib; {
42     description = "Pomodoro cli app in rust with timer and countdown";
43     homepage = "https://github.com/ColorCookie-dev/porsmo";
44     license = licenses.mit;
45     maintainers = with maintainers; [ MoritzBoehme ];
46     mainProgram = "porsmo";
47   };