nixpkgs/pkgs/applications/misc/oranda/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.3 KiB
Nix
Raw Normal View History

2023-05-09 23:33:37 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, tailwindcss
2023-05-09 23:33:37 +00:00
, oniguruma
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "oranda";
2024-02-23 22:09:47 +00:00
version = "0.6.2";
2023-05-09 23:33:37 +00:00
src = fetchFromGitHub {
owner = "axodotdev";
repo = "oranda";
rev = "v${version}";
2024-02-23 22:09:47 +00:00
hash = "sha256-BOMAkmJ2i/zqp6v49xeIF+EfZob8yXohPh86ERwp5OU=";
2023-05-09 23:33:37 +00:00
};
2024-02-23 22:09:47 +00:00
cargoHash = "sha256-SjXPfrO/YiOb1gOw75nAstKFipeIvLV6yl/sy+BZqE4=";
2023-05-09 23:33:37 +00:00
nativeBuildInputs = [
pkg-config
tailwindcss
2023-05-09 23:33:37 +00:00
];
buildInputs = [
oniguruma
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.SystemConfiguration
2023-05-09 23:33:37 +00:00
];
# requires internet access
checkFlags = [
"--skip=build"
"--skip=integration"
2023-05-09 23:33:37 +00:00
];
env = {
RUSTONIG_SYSTEM_LIBONIG = true;
ORANDA_USE_TAILWIND_BINARY = true;
} // lib.optionalAttrs stdenv.isDarwin {
# without this, tailwindcss fails with OpenSSL configuration error
OPENSSL_CONF = "";
2023-05-09 23:33:37 +00:00
};
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 ];
2024-02-11 02:19:15 +00:00
mainProgram = "oranda";
2023-05-09 23:33:37 +00:00
};
}