
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>
77 lines
1.9 KiB
Nix
77 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
installShellFiles,
|
|
dbus,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "veryl";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "veryl-lang";
|
|
repo = "veryl";
|
|
rev = "v${version}";
|
|
hash = "sha256-PeRz44agIKDPsgUhjPgm1Pn1oJb7Epyw0oj3xPCkj4k=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-PD1S9h4cGGgfRBB0iZzY7GRTeclRhwWLrxvNVEs8OJY=";
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd veryl \
|
|
--bash <($out/bin/veryl metadata --completion bash) \
|
|
--fish <($out/bin/veryl metadata --completion fish) \
|
|
--zsh <($out/bin/veryl metadata --completion zsh)
|
|
'';
|
|
|
|
checkFlags = [
|
|
# takes over an hour
|
|
"--skip=tests::progress"
|
|
# tempfile::tempdir().unwrap() -> "No such file or directory"
|
|
"--skip=tests::bump_version"
|
|
"--skip=tests::bump_version_with_commit"
|
|
"--skip=tests::check"
|
|
"--skip=tests::load"
|
|
"--skip=tests::lockfile"
|
|
"--skip=tests::publish"
|
|
"--skip=tests::publish_with_commit"
|
|
# "Permission Denied", while making its cache dir?
|
|
"--skip=analyzer::test_25_dependency"
|
|
"--skip=analyzer::test_68_std"
|
|
"--skip=emitter::test_25_dependency"
|
|
"--skip=emitter::test_68_std"
|
|
"--skip=filelist::test"
|
|
"--skip=path::directory_directory"
|
|
"--skip=path::directory_target"
|
|
"--skip=path::source_directory"
|
|
"--skip=path::source_target"
|
|
];
|
|
|
|
meta = {
|
|
description = "Modern Hardware Description Language";
|
|
homepage = "https://veryl-lang.org/";
|
|
changelog = "https://github.com/veryl-lang/veryl/releases/tag/v${version}";
|
|
license = with lib.licenses; [
|
|
mit
|
|
asl20
|
|
];
|
|
maintainers = with lib.maintainers; [ pbsds ];
|
|
mainProgram = "veryl";
|
|
};
|
|
}
|