From d9b684cda479a18325f40c51006838dd00f79ea3 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 11 Sep 2024 23:38:24 -0400 Subject: [PATCH] rucola: init at 0.4.1 Co-authored-by: Alexis Hildebrandt Co-authored-by: Aleksana --- pkgs/by-name/ru/rucola/package.nix | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 pkgs/by-name/ru/rucola/package.nix diff --git a/pkgs/by-name/ru/rucola/package.nix b/pkgs/by-name/ru/rucola/package.nix new file mode 100644 index 000000000000..f39186d6118c --- /dev/null +++ b/pkgs/by-name/ru/rucola/package.nix @@ -0,0 +1,56 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + oniguruma, + stdenv, + apple-sdk_11, + darwinMinVersionHook, +}: + +rustPlatform.buildRustPackage rec { + pname = "rucola"; + version = "0.4.1"; + + src = fetchFromGitHub { + owner = "Linus-Mussmaecher"; + repo = "rucola"; + rev = "v${version}"; + hash = "sha256-FeQPf9sCEqypvB8VrGa1nnXmxlqo6K4fpLkJakbysvI="; + }; + + cargoHash = "sha256-5TvJ8h/kmXG9G7dl5/gIYhVgvmqmm24BmOJzdKVJ+uY="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = + [ + oniguruma + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk_11 + (darwinMinVersionHook "10.13") + ]; + + env = { + RUSTONIG_SYSTEM_LIBONIG = true; + }; + + # Fails on Darwin + checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [ + "--skip=io::file_tracker::tests::test_watcher_rename" + ]; + + meta = { + description = "Terminal-based markdown note manager"; + homepage = "https://github.com/Linus-Mussmaecher/rucola"; + changelog = "https://github.com/Linus-Mussmaecher/rucola/blob/${src.rev}/CHANGELOG.md"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ donovanglover ]; + mainProgram = "rucola"; + platforms = lib.platforms.linux ++ lib.platforms.darwin; + }; +} -- 2.11.4.GIT