mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
100fcbca37
Diff: https://github.com/axodotdev/oranda/compare/v0.4.0...v0.4.1 Changelog: https://github.com/axodotdev/oranda/blob/v0.4.1/CHANGELOG.md
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, tailwindcss
|
|
, oniguruma
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "oranda";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "axodotdev";
|
|
repo = "oranda";
|
|
rev = "v${version}";
|
|
hash = "sha256-k4xrgRanQmkjmXGvfeaGU61+GP8asYPq4RQrao3rd4Q=";
|
|
};
|
|
|
|
cargoHash = "sha256-CLMhzPM11LnQdCVD66xC4Fk+8LnfRfFzk3FwQeXboes=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
tailwindcss
|
|
];
|
|
|
|
buildInputs = [
|
|
oniguruma
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.CoreServices
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|