porsmo: init at 0.2.0

This commit is contained in:
Moritz Böhme 2023-06-21 21:48:51 +02:00
parent b3f5bcf0be
commit 593258bffc
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{ 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 ];
};
}

View file

@ -11570,6 +11570,8 @@ with pkgs;
poretools = callPackage ../applications/science/biology/poretools { };
porsmo = callPackage ../applications/misc/porsmo { };
pantum-driver = callPackage ../misc/drivers/pantum-driver {
libjpeg8 = libjpeg.override { enableJpeg8 = true; };
};