diff options
-rw-r--r-- | users/zseri/store-ref-scanner/Cargo.toml | 5 | ||||
-rw-r--r-- | users/zseri/store-ref-scanner/tests.nix | 32 |
2 files changed, 5 insertions, 32 deletions
diff --git a/users/zseri/store-ref-scanner/Cargo.toml b/users/zseri/store-ref-scanner/Cargo.toml index ad565f09af2e..836d90e88355 100644 --- a/users/zseri/store-ref-scanner/Cargo.toml +++ b/users/zseri/store-ref-scanner/Cargo.toml @@ -1,6 +1,11 @@ [package] name = "store-ref-scanner" version = "0.1.0" +description = "scanner/extractor of Nix-like store paths from byte arrays/streams" +license = "MIT OR Apache-2.0" +categories = ["no-std", "parsing"] edition = "2021" +homepage = "https://cs.tvl.fyi/depot/-/tree/users/zseri/store-ref-scanner" +include = ["/src"] [dependencies] diff --git a/users/zseri/store-ref-scanner/tests.nix b/users/zseri/store-ref-scanner/tests.nix deleted file mode 100644 index a4c82fe3a936..000000000000 --- a/users/zseri/store-ref-scanner/tests.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ depot, lib, pkgs, ... }: - -let - parent = depot.users.zseri.store-ref-scanner; -in -pkgs.buildRustCrate { - pname = "store-ref-scanner-tests"; - inherit (parent) crateName src version edition; - buildTests = true; - postInstall = '' - set -ex - export RUST_BACKTRACE=1 - # recreate a file hierarchy as when running tests with cargo - # the source for test data - # build outputs - testRoot=target/debug - mkdir -p $testRoot - chmod +w -R . - # test harness executables are suffixed with a hash, - # like cargo does this allows to prevent name collision - # with the main executables of the crate - hash=$(basename $out) - ls -lasR $out - for file in $out/tests/*; do - f=$testRoot/$(basename $file)-$hash - cp $file $f - $f 2>&1 | tee -a $out/tests.log - done - rm -rf $out/tests - set +ex - ''; -} |