about summary refs log tree commit diff
path: root/pkgs/sternenseemann
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-02-14 15:24:49 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-02-14 15:26:57 +0100
commita424084668d2c182049160f4da1fc24f63e3b84a (patch)
treee64317cefa9b8aa2bbafba010d515f464006c594 /pkgs/sternenseemann
parent2c6c013291932e4d82712b4672e3958b52563634 (diff)
pkgs/sternenseemann/temp: test using testRustSimple
This means we don't need the -common machinery anymore and can remove
the -tests attribute altogether.
Diffstat (limited to 'pkgs/sternenseemann')
-rw-r--r--pkgs/sternenseemann/default.nix2
-rw-r--r--pkgs/sternenseemann/rust/default.nix22
2 files changed, 10 insertions, 14 deletions
diff --git a/pkgs/sternenseemann/default.nix b/pkgs/sternenseemann/default.nix
index 8ee48ce5..c41cb3fa 100644
--- a/pkgs/sternenseemann/default.nix
+++ b/pkgs/sternenseemann/default.nix
@@ -36,6 +36,7 @@ let
   rust = callPackage ./rust {
     inherit (profpatsch)
       writeRustSimpleLib
+      testRustSimple
       ;
   };
 
@@ -83,7 +84,6 @@ lib.fix (self: {
 
   inherit (rust)
     temp
-    temp-tests
     ;
 
   # don't bother hydra with trivial text substitution
diff --git a/pkgs/sternenseemann/rust/default.nix b/pkgs/sternenseemann/rust/default.nix
index 787cf2e1..f79644a8 100644
--- a/pkgs/sternenseemann/rust/default.nix
+++ b/pkgs/sternenseemann/rust/default.nix
@@ -1,24 +1,20 @@
 { writeRustSimpleLib
-, buildRustCrate
+, testRustSimple
 }:
 
 let
 
-  temp-common = tests: writeRustSimpleLib "temp" {
-    buildTests = tests;
-    release = false;
-    verbose = true;
-    meta = {
-      description = "Tiny temp dir/file crate for rust";
-    };
-  } ./temp.rs;
-
-  temp = temp-common false;
-  temp-tests = temp-common true;
+  temp = testRustSimple
+    (writeRustSimpleLib "temp" {
+      release = false;
+      verbose = true;
+      meta = {
+        description = "Tiny temp dir/file crate for rust";
+      };
+    } ./temp.rs);
 
 in {
   inherit
     temp
-    temp-tests
     ;
   }