Skip to content

Commit f90faba

Browse files
Reverts flake.nix changes for dmq-node
Revert "dmq-node: static build" This reverts commit 0d2ca29. Revert "dmq-node: disable StandardCrypto tests on Windows" This reverts commit caed24b. Revert "nix: build dmq-node with gitrev support" This reverts commit 2eb112c. revert crypto overlays for dmq
1 parent a5d8c2b commit f90faba

File tree

4 files changed

+32
-77
lines changed

4 files changed

+32
-77
lines changed

flake.nix

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,9 @@
4545
overlays = [
4646
# haskellNix.overlay can be configured by later overlays, so need to come before them.
4747
inputs.haskellNix.overlay
48-
# dmq-node depends cardano-crypto-class, so we need crypto overlays
49-
inputs.iohkNix.overlays.crypto
50-
inputs.iohkNix.overlays.haskell-nix-crypto
51-
inputs.iohkNix.overlays.haskell-nix-extra
5248
(import ./nix/tools.nix inputs)
5349
(import ./nix/ouroboros-network.nix inputs)
5450
(import ./nix/network-docs.nix inputs)
55-
(final: _prev: {
56-
static-libsodium-vrf = final.libsodium-vrf.overrideDerivation (old: {
57-
configureFlags = old.configureFlags ++ [ "--disable-shared" ];
58-
});
59-
static-secp256k1 = final.secp256k1.overrideDerivation (old: {
60-
configureFlags = old.configureFlags ++ [ "--enable-static" "--disable-shared" ];
61-
});
62-
static-gmp = (final.gmp.override { withStatic = true; }).overrideDerivation (old: {
63-
configureFlags = old.configureFlags ++ [ "--enable-static" "--disable-shared" ];
64-
});
65-
static-libblst = (final.libblst.override { enableShared = false; }).overrideDerivation (_old: {
66-
postFixup = "";
67-
});
68-
})
6951
];
7052
};
7153

@@ -124,16 +106,6 @@
124106
in
125107
lib.recursiveUpdate flake rec {
126108
project = pkgs.ouroboros-network;
127-
# `nix build .\#dmq-node` will have the git revision set in the binary,
128-
# `nib build .\#hydraJobs.x86_64-linux.packages.dmq-node:exe:dmq-node` won't.
129-
packages.dmq-node =
130-
pkgs.setGitRev
131-
(inputs.self.rev or inputs.self.dirtyShortRev)
132-
flake.packages."dmq-node:exe:dmq-node";
133-
packages.dmq-node-static =
134-
pkgs.setGitRev
135-
(inputs.self.rev or inputs.self.dirtyShortRev)
136-
flake.packages."x86_64-unknown-linux-musl:dmq-node:exe:dmq-node";
137109
inherit hydraJobs legacyPackages devShells;
138110
}
139111
);

nix/ouroboros-network.nix

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ let
4646
compiler-nix-name = lib.mkDefault defaultCompiler;
4747
cabalProjectLocal =
4848
if pkgs.stdenv.hostPlatform.isWindows
49-
then lib.readFile ../scripts/ci/cabal.project.local.Nix.Windows
49+
then lib.readFile ../scripts/ci/cabal.project.local.Windows
5050
else lib.readFile ../scripts/ci/cabal.project.local.Linux;
5151

5252
#
@@ -55,7 +55,7 @@ let
5555

5656
# we also want cross compilation to windows on linux (and only with default compiler).
5757
crossPlatforms =
58-
p: lib.optionals (pkgs.stdenv.hostPlatform.isLinux && config.compiler-nix-name == crossGHCVersion) [ p.ucrt64 p.musl64 ];
58+
p: lib.optionals (pkgs.stdenv.hostPlatform.isLinux && config.compiler-nix-name == crossGHCVersion) [ p.ucrt64 ];
5959

6060
#
6161
# VARIANTS
@@ -125,19 +125,6 @@ let
125125
({ pkgs, ... }: lib.mkIf pkgs.stdenv.hostPlatform.isWindows {
126126
packages.basement.configureFlags = [ "--hsc2hs-options=--cflag=-Wno-int-conversion" ];
127127
})
128-
({ pkgs, ... }: lib.mkIf pkgs.stdenv.hostPlatform.isMusl {
129-
# rubby fails to build with musl, hence we disable cddl tests
130-
packages.dmq-node.components.tests.dmq-cddl.build-tools = lib.mkForce [ ];
131-
packages.dmq-node.components.tests.dmq-cddl.doCheck = lib.mkForce false;
132-
packages.cardano-diffusion.components.tests.protocols-cddl.build-tools = lib.mkForce [ ];
133-
packages.cardano-diffusion.components.tests.protocols-cddl.doCheck = lib.mkForce false;
134-
packages.dmq-node.ghcOptions = with pkgs; [
135-
"-L${lib.getLib static-gmp}/lib"
136-
"-L${lib.getLib static-libsodium-vrf}/lib"
137-
"-L${lib.getLib static-secp256k1}/lib"
138-
"-L${lib.getLib static-libblst}/lib"
139-
];
140-
})
141128
];
142129
});
143130
in

scripts/ci/cabal.project.local.Nix.Windows

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1-
import ./scripts/cabal.project.local.Nix.Windows
1+
max-backjumps: 5000
2+
reorder-goals: True
3+
tests: True
4+
benchmarks: True
5+
6+
-- IPv6 and nothunks tests are DISABLED on Windows
7+
8+
program-options
9+
ghc-options: -fno-ignore-asserts -Werror
10+
11+
package strict-checked-vars
12+
flags: -checktvarinvariants -checkmvarinvariants
13+
14+
package ntp-client
15+
flags: +demo
16+
17+
package network-mux
18+
flags: -ipv6
19+
20+
package ouroboros-network
21+
flags: +asserts -ipv6
22+
23+
--
24+
-- cddl is disabled on Windows due to missing build tool support in cross
25+
-- compilation
26+
--
227

328
package dmq-node
4-
flags: -standardcrypto-tests
29+
flags: -cddl
30+
31+
package cardano-diffusion
32+
flags: +asserts -cddl

0 commit comments

Comments
 (0)