rtx: add simple version test

This commit is contained in:
Konrad Malik 2023-12-29 13:04:18 +01:00
parent d2aea4e001
commit e4776929d1
No known key found for this signature in database

View File

@ -11,6 +11,8 @@
, direnv
, Security
, SystemConfiguration
, rtx
, testers
}:
rustPlatform.buildRustPackage rec {
@ -27,7 +29,7 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-LvW5xGVggzuXlFPhbrc93Dht3S9zaQyx9Nm+Mx/Mjh0=";
nativeBuildInputs = [ installShellFiles pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
postPatch = ''
patchShebangs --build ./test/data/plugins/**/bin/* ./src/fake_asdf.rs ./src/cli/reshim.rs
@ -59,6 +61,7 @@ rustPlatform.buildRustPackage rec {
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion { package = rtx; };
};
meta = {