c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, tailwindcss
|
|
, oniguruma
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "oranda";
|
|
version = "0.6.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "axodotdev";
|
|
repo = "oranda";
|
|
rev = "v${version}";
|
|
hash = "sha256-BOMAkmJ2i/zqp6v49xeIF+EfZob8yXohPh86ERwp5OU=";
|
|
};
|
|
|
|
cargoHash = "sha256-SjXPfrO/YiOb1gOw75nAstKFipeIvLV6yl/sy+BZqE4=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
tailwindcss
|
|
];
|
|
|
|
buildInputs = [
|
|
oniguruma
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
# requires internet access
|
|
checkFlags = [
|
|
"--skip=build"
|
|
"--skip=integration"
|
|
];
|
|
|
|
env = {
|
|
RUSTONIG_SYSTEM_LIBONIG = true;
|
|
ORANDA_USE_TAILWIND_BINARY = true;
|
|
} // lib.optionalAttrs stdenv.isDarwin {
|
|
# without this, tailwindcss fails with OpenSSL configuration error
|
|
OPENSSL_CONF = "";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Generate beautiful landing pages for your developer tools";
|
|
homepage = "https://github.com/axodotdev/oranda";
|
|
changelog = "https://github.com/axodotdev/oranda/blob/${src.rev}/CHANGELOG.md";
|
|
license = with licenses; [ asl20 mit ];
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "oranda";
|
|
};
|
|
}
|