mise: 2023.12.35 -> 2024.1.11 rebrand from rtx
rebrand info: https://mise.jdx.dev/rtx.html added one new patchShebangs path for test_task_run
This commit is contained in:
parent
145933739e
commit
d744e65324
3 changed files with 22 additions and 17 deletions
|
@ -11,28 +11,32 @@
|
|||
, direnv
|
||||
, Security
|
||||
, SystemConfiguration
|
||||
, rtx
|
||||
, mise
|
||||
, testers
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "rtx";
|
||||
version = "2023.12.35";
|
||||
pname = "mise";
|
||||
version = "2024.1.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jdx";
|
||||
repo = "rtx";
|
||||
repo = "mise";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-vzMjC6qIPhZm80hzYQRpF3j+s85B0nwTcgSGRATQEIg=";
|
||||
hash = "sha256-ELC+IpcWMHBDIGPAg8v1LJUUIXEmzJzCeJt2TkqXs7s=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-LvW5xGVggzuXlFPhbrc93Dht3S9zaQyx9Nm+Mx/Mjh0=";
|
||||
cargoHash = "sha256-hZ8B3CVaTpIt3GudN/TWxI/xox724Prk8Uc8wA3Wd6Q=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles pkg-config ];
|
||||
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs --build ./test/data/plugins/**/bin/* ./src/fake_asdf.rs ./src/cli/reshim.rs
|
||||
patchShebangs --build \
|
||||
./test/data/plugins/**/bin/* \
|
||||
./src/fake_asdf.rs \
|
||||
./src/cli/reshim.rs \
|
||||
./test/cwd/.mise/tasks/filetask
|
||||
|
||||
substituteInPlace ./src/env_diff.rs \
|
||||
--replace '"bash"' '"${bash}/bin/bash"'
|
||||
|
@ -51,25 +55,25 @@ rustPlatform.buildRustPackage rec {
|
|||
dontUseCargoParallelTests = true;
|
||||
|
||||
postInstall = ''
|
||||
installManPage ./man/man1/rtx.1
|
||||
installManPage ./man/man1/mise.1
|
||||
|
||||
installShellCompletion \
|
||||
--bash ./completions/rtx.bash \
|
||||
--fish ./completions/rtx.fish \
|
||||
--zsh ./completions/_rtx
|
||||
--bash ./completions/mise.bash \
|
||||
--fish ./completions/mise.fish \
|
||||
--zsh ./completions/_mise
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests.version = testers.testVersion { package = rtx; };
|
||||
tests.version = testers.testVersion { package = mise; };
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/jdx/rtx";
|
||||
description = "Polyglot runtime manager (asdf rust clone)";
|
||||
changelog = "https://github.com/jdx/rtx/releases/tag/v${version}";
|
||||
homepage = "https://mise.jdx.dev";
|
||||
description = "The front-end to your dev env";
|
||||
changelog = "https://github.com/jdx/mise/releases/tag/v${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ konradmalik ];
|
||||
mainProgram = "rtx";
|
||||
mainProgram = "mise";
|
||||
};
|
||||
}
|
|
@ -896,6 +896,7 @@ mapAliases ({
|
|||
rr-unstable = rr; # Added 2022-09-17
|
||||
rtl8723bs-firmware = throw "rtl8723bs-firmware was added in mainline kernel version 4.12"; # Added 2023-07-03
|
||||
rtsp-simple-server = throw "rtsp-simple-server is rebranded as mediamtx, including default config path update"; # Added 2023-04-11
|
||||
rtx = mise; # Added 2024-01-05
|
||||
runCommandNoCC = runCommand;
|
||||
runCommandNoCCLocal = runCommandLocal;
|
||||
rxvt_unicode = rxvt-unicode-unwrapped; # Added 2020-02-02
|
||||
|
|
|
@ -18220,7 +18220,7 @@ with pkgs;
|
|||
|
||||
asdf-vm = callPackage ../tools/misc/asdf-vm { };
|
||||
|
||||
rtx = callPackage ../tools/misc/rtx {
|
||||
mise = callPackage ../tools/misc/mise {
|
||||
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue