rtx: add simple version test

This commit is contained in:
Konrad Malik
2023-12-29 18:01:52 +01:00
parent d2aea4e001
commit e4776929d1
+4 -1
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 = {