mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 00:31:24 +01:00
add nix derivation for complement
Alternative to this would be just running 'go test' and pointing it at the complement source code when we want to do a test run. This would mean that we can't cache the unit test build, and would have to include the 'olm' input in the devshell.
This commit is contained in:
parent
e2318cad8a
commit
d20e217b1c
2 changed files with 36 additions and 0 deletions
|
|
@ -20,6 +20,8 @@
|
|||
let
|
||||
# Keep sorted
|
||||
mkScope = pkgs: pkgs.lib.makeScope pkgs.newScope (self: {
|
||||
complement = self.callPackage ./nix/pkgs/complement {};
|
||||
|
||||
craneLib =
|
||||
(inputs.crane.mkLib pkgs).overrideToolchain self.toolchain;
|
||||
|
||||
|
|
@ -72,6 +74,7 @@
|
|||
{
|
||||
packages = {
|
||||
default = (mkScope pkgs).default;
|
||||
complement = (mkScope pkgs).complement;
|
||||
}
|
||||
//
|
||||
builtins.listToAttrs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue