{ lib, rustPlatform, pkg-config, openssl, stdenv, darwin, }: rustPlatform.buildRustPackage { pname = "purr"; inherit ((lib.importTOML ../Cargo.toml).package) version; src = ../.; cargoLock.lockFile = ../Cargo.lock; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin ( with darwin.apple_sdk.frameworks; [ Security SystemConfiguration ] ); meta = { description = "Unoffical CLI for developing Catppuccin ports"; homepage = "https://github.com/uncenter/purr"; license = lib.licenses.mit; mainProgram = "purr"; }; }