They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
tailwindcss,
|
|
oniguruma,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "oranda";
|
|
version = "0.6.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "axodotdev";
|
|
repo = "oranda";
|
|
rev = "v${version}";
|
|
hash = "sha256-FVd8NQVtzlZsDY40ZMJDdaX+6Q5jUxZHUq2v+kDFVOk=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-wPYgAbaoUVJoZT1nRCBsPziszkAubImZEKGrC2RAkEA=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
tailwindcss
|
|
];
|
|
|
|
buildInputs = [
|
|
oniguruma
|
|
];
|
|
|
|
# requires internet access
|
|
checkFlags = [
|
|
"--skip=build"
|
|
"--skip=integration"
|
|
];
|
|
|
|
env =
|
|
{
|
|
RUSTONIG_SYSTEM_LIBONIG = true;
|
|
ORANDA_USE_TAILWIND_BINARY = true;
|
|
}
|
|
// lib.optionalAttrs stdenv.hostPlatform.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";
|
|
};
|
|
}
|