Changeset 72539dd in trunk
- Timestamp:
- 2023-07-04T18:39:26Z (21 months ago)
- Branches:
- master
- Children:
- 94e608f1
- Parents:
- 9788e4c1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified flake.nix ¶
r9788e4c1 r72539dd 74 74 unitTestName = pyVersion: "${pyVersion}-unittest"; 75 75 76 # (string -> a) -> (string -> b) -> string -> attrset a b 77 # 78 # Make a singleton attribute set from the result of two functions. 79 singletonOf = f: g: x: { ${f x} = g x; }; 80 76 81 # Create a derivation that includes a Python runtime, Tahoe-LAFS, and 77 82 # all of its dependencies. 78 makeRuntimeEnv = pyVersion: { 79 ${packageName pyVersion} = makeRuntimeEnv' pyVersion; 80 }; 81 83 makeRuntimeEnv = singletonOf packageName makeRuntimeEnv'; 82 84 makeRuntimeEnv' = pyVersion: (pkgs.${pyVersion}.withPackages (ps: with ps; 83 85 [ tahoe-lafs ] ++ … … 90 92 # Create a derivation that includes a Python runtime, Tahoe-LAFS, and 91 93 # all of its dependencies. 92 makeTestEnv = pyVersion: { 93 ${packageName pyVersion} = makeTestEnv' pyVersion; 94 }; 95 96 makeTestEnv' = pyVersion: (pkgs.${pyVersion}.withPackages (ps: with ps; 94 makeTestEnv = pyVersion: (pkgs.${pyVersion}.withPackages (ps: with ps; 97 95 [ tahoe-lafs ] ++ 98 96 tahoe-lafs.passthru.extras.i2p ++ … … 149 147 '' 150 148 export TAHOE_LAFS_HYPOTHESIS_PROFILE=ci 151 ${makeTestEnv 'pyVersion}/bin/python -m twisted.trial "$@"149 ${makeTestEnv pyVersion}/bin/python -m twisted.trial "$@" 152 150 ''; 153 151 };
Note: See TracChangeset
for help on using the changeset viewer.