diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 77493c7f10905..cc873a5b759d0 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -25559,6 +25559,12 @@ githubId = 8100652; name = "David Mell"; }; + zsenai = { + email = "zarred.f@gmail.com"; + github = "ZarredFelicite"; + githubId = 54928291; + name = "Zarred Felicite"; + }; zshipko = { email = "zachshipko@gmail.com"; github = "zshipko"; diff --git a/pkgs/by-name/lo/lowfi/package.nix b/pkgs/by-name/lo/lowfi/package.nix new file mode 100644 index 0000000000000..321d7628cec58 --- /dev/null +++ b/pkgs/by-name/lo/lowfi/package.nix @@ -0,0 +1,52 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + openssl, + stdenv, + darwin, + alsa-lib, +}: + +rustPlatform.buildRustPackage rec { + pname = "lowfi"; + version = "1.5.3"; + + src = fetchFromGitHub { + owner = "talwat"; + repo = "lowfi"; + tag = version; + hash = "sha256-pfvTOoWsXukZTfev9+Ifcp3YYIqtYZgmEVPHuqD4IsM="; + }; + + cargoHash = "sha256-oRZ44IZRli0PNnQkeplD0ggh1ipDlyehNBTpxrgl/JI="; + + buildFeatures = [ "mpris" ]; + + nativeBuildInputs = [ + pkg-config + rustPlatform.bindgenHook + ]; + + buildInputs = + [ + openssl + ] + ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.CoreAudio + darwin.apple_sdk.frameworks.Security + darwin.apple_sdk.frameworks.SystemConfiguration + ] + ++ lib.optionals stdenv.isLinux [ + alsa-lib + ]; + + meta = { + description = "Extremely simple lofi player"; + homepage = "https://github.com/talwat/lowfi"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ zsenai ]; + mainProgram = "lowfi"; + }; +}