Merge pull request #239043 from MoritzBoehme/porsmo

porsmo: init at 0.2.0
This commit is contained in:
figsoda 2023-06-22 11:30:24 -04:00 committed by GitHub
commit 394de67666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -11568,6 +11568,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; };
};