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:
Konrad Malik 2024-01-05 23:21:06 +01:00
parent 145933739e
commit d744e65324
No known key found for this signature in database
3 changed files with 22 additions and 17 deletions

View file

@ -11,28 +11,32 @@
, direnv , direnv
, Security , Security
, SystemConfiguration , SystemConfiguration
, rtx , mise
, testers , testers
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "rtx"; pname = "mise";
version = "2023.12.35"; version = "2024.1.11";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jdx"; owner = "jdx";
repo = "rtx"; repo = "mise";
rev = "v${version}"; 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 ]; nativeBuildInputs = [ installShellFiles pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
postPatch = '' 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 \ substituteInPlace ./src/env_diff.rs \
--replace '"bash"' '"${bash}/bin/bash"' --replace '"bash"' '"${bash}/bin/bash"'
@ -51,25 +55,25 @@ rustPlatform.buildRustPackage rec {
dontUseCargoParallelTests = true; dontUseCargoParallelTests = true;
postInstall = '' postInstall = ''
installManPage ./man/man1/rtx.1 installManPage ./man/man1/mise.1
installShellCompletion \ installShellCompletion \
--bash ./completions/rtx.bash \ --bash ./completions/mise.bash \
--fish ./completions/rtx.fish \ --fish ./completions/mise.fish \
--zsh ./completions/_rtx --zsh ./completions/_mise
''; '';
passthru = { passthru = {
updateScript = nix-update-script { }; updateScript = nix-update-script { };
tests.version = testers.testVersion { package = rtx; }; tests.version = testers.testVersion { package = mise; };
}; };
meta = { meta = {
homepage = "https://github.com/jdx/rtx"; homepage = "https://mise.jdx.dev";
description = "Polyglot runtime manager (asdf rust clone)"; description = "The front-end to your dev env";
changelog = "https://github.com/jdx/rtx/releases/tag/v${version}"; changelog = "https://github.com/jdx/mise/releases/tag/v${version}";
license = lib.licenses.mit; license = lib.licenses.mit;
maintainers = with lib.maintainers; [ konradmalik ]; maintainers = with lib.maintainers; [ konradmalik ];
mainProgram = "rtx"; mainProgram = "mise";
}; };
} }

View file

@ -896,6 +896,7 @@ mapAliases ({
rr-unstable = rr; # Added 2022-09-17 rr-unstable = rr; # Added 2022-09-17
rtl8723bs-firmware = throw "rtl8723bs-firmware was added in mainline kernel version 4.12"; # Added 2023-07-03 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 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; runCommandNoCC = runCommand;
runCommandNoCCLocal = runCommandLocal; runCommandNoCCLocal = runCommandLocal;
rxvt_unicode = rxvt-unicode-unwrapped; # Added 2020-02-02 rxvt_unicode = rxvt-unicode-unwrapped; # Added 2020-02-02

View file

@ -18220,7 +18220,7 @@ with pkgs;
asdf-vm = callPackage ../tools/misc/asdf-vm { }; asdf-vm = callPackage ../tools/misc/asdf-vm { };
rtx = callPackage ../tools/misc/rtx { mise = callPackage ../tools/misc/mise {
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
}; };