Skip to content

Commit 5ee3c91

Browse files
committed
Merge commit 'b906c8be14c19432108272f158f1dc2752aaa8c5' into hls-flake-fix
2 parents b552499 + b906c8b commit 5ee3c91

File tree

580 files changed

+63747
-10938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

580 files changed

+63747
-10938
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
nix/pkgs/haskell/materialized*/**/*.nix linguist-generated=true
33
# linguist gets confused by PIR files, and thinks they make up a lot of our source!
44
*.pir linguist-detectable=false
5+
stubs/plutus-ghc-stub/** linguist-vendored=true

cabal.project

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ packages: doc
2727
quickcheck-dynamic
2828
web-ghc
2929
word-array
30+
stubs/plutus-ghc-stub
3031

3132
-- We never, ever, want this.
3233
write-ghc-environment-files: never
@@ -72,10 +73,6 @@ package ouroboros-consensus-cardano
7273
package cardano-api
7374
optimization: False
7475

75-
-- Turn off the tests for a while
76-
package plutus-metatheory
77-
tests: False
78-
7976
-- https://github.com/Quid2/flat/pull/22 fixes a potential exception
8077
-- when decoding invalid (e.g. malicious) text literals.
8178
source-repository-package
@@ -108,12 +105,12 @@ source-repository-package
108105
base-deriving-via
109106
binary
110107
binary/test
111-
measures
112-
orphans-deriving-via
113-
slotting
114108
cardano-crypto-class
115109
cardano-crypto-praos
116110
cardano-crypto-tests
111+
measures
112+
orphans-deriving-via
113+
slotting
117114
strict-containers
118115

119116
source-repository-package
@@ -127,7 +124,7 @@ source-repository-package
127124
source-repository-package
128125
type: git
129126
location: https://github.com/input-output-hk/ouroboros-network
130-
tag: f149c1c1e4e4bb5bab51fa055e9e3a7084ddc30e
127+
tag: 877ce057ff6fb086474c8eaad53f2b7f0e0fce6b
131128
subdir:
132129
monoidal-synchronisation
133130
typed-protocols
@@ -146,7 +143,7 @@ source-repository-package
146143
source-repository-package
147144
type: git
148145
location: https://github.com/input-output-hk/iohk-monitoring-framework
149-
tag: 34abfb7f4f5610cabb45396e0496472446a0b2ca
146+
tag: 808724ff8a19a33d0ed06f9ef59fbd900b08553c
150147
subdir:
151148
iohk-monitoring
152149
tracer-transformers
@@ -160,7 +157,7 @@ source-repository-package
160157
source-repository-package
161158
type: git
162159
location: https://github.com/input-output-hk/cardano-ledger-specs
163-
tag: 12a0ef69d64a55e737fbf4e846bd8ed9fb30a956
160+
tag: d5b184a820853c7ba202efd615b8fadca1acb52c
164161
subdir:
165162
byron/chain/executable-spec
166163
byron/crypto
@@ -183,7 +180,7 @@ source-repository-package
183180
source-repository-package
184181
type: git
185182
location: https://github.com/input-output-hk/cardano-node.git
186-
tag: 3a56ac245c83d3345f81123ec3bb496bb23477a3
183+
tag: ed11e8b6429d4af1cb2539460e5cb2283a06b2dc
187184
subdir:
188185
cardano-api
189186
cardano-node

ci.nix

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ let
1111
# limit supportedSystems to what the CI can actually build
1212
# currently that is linux and darwin.
1313
systems = filterSystems supportedSystems;
14+
crossSystems =
15+
let pkgs = (import ./default.nix { }).pkgs;
16+
in { inherit (pkgs.lib.systems.examples) mingwW64; };
1417

1518
# Collects haskell derivations and builds an attrset:
1619
#
@@ -49,18 +52,30 @@ let
4952
mkSystemDimension = systems:
5053
let
5154
# given a system ("x86_64-linux") return an attrset of derivations to build
52-
select = _: system:
55+
_select = _: system: crossSystem:
5356
let
54-
packages = import ./default.nix { inherit system checkMaterialization; };
57+
packages = import ./default.nix { inherit system crossSystem checkMaterialization; };
5558
pkgs = packages.pkgs;
5659
plutus = packages.plutus;
57-
isBuildable = platformFilterGeneric pkgs system;
60+
# Map `crossSystem.config` to a name used in `lib.platforms`
61+
platformString =
62+
if crossSystem == null then system
63+
else if crossSystem.config == "x86_64-w64-mingw32" then "x86_64-windows"
64+
else crossSystem.config;
65+
isBuildable = platformFilterGeneric pkgs platformString;
66+
filterCross = x:
67+
if crossSystem == null
68+
then x
69+
else {
70+
# When cross compiling only include haskell for now
71+
inherit (x) haskell;
72+
};
5873
in
5974
filterAttrsOnlyRecursive (_: drv: isBuildable drv) ({
6075
# The haskell.nix IFD roots for the Haskell project. We include these so they won't be GCd and will be in the
6176
# cache for users
6277
inherit (plutus.haskell.project) roots;
63-
} // pkgs.lib.optionalAttrs (!rootsOnly) {
78+
} // pkgs.lib.optionalAttrs (!rootsOnly) (filterCross {
6479
# build relevant top level attributes from default.nix
6580
inherit (packages) docs tests plutus-playground marlowe-playground marlowe-dashboard marlowe-dashboard-fake-pab plutus-pab plutus-use-cases deployment;
6681

@@ -78,8 +93,9 @@ let
7893

7994
# build all haskell packages and tests
8095
haskell = pkgs.recurseIntoAttrs (mkHaskellDimension pkgs plutus.haskell.projectPackages);
81-
});
96+
}));
8297
in
83-
dimension "System" systems select;
98+
dimension "System" systems (name: sys: _select name sys null)
99+
// dimension "Cross System" crossSystems (name: crossSys: _select name "x86_64-linux" crossSys);
84100
in
85101
mkSystemDimension systems

deployment/morph/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let
3030
# in a `pkgs.nixos` call to build the machine outside of morph.
3131
mkMachine = pkgs.callPackage ./mk-machine.nix { inherit plutus tfinfo; extraImports = [ fakeDeploymentOption ]; };
3232
buildMachine = { config, name }: (pkgs.nixos (mkMachine { inherit config name; })).toplevel;
33-
linuxOnly = x: if pkgs.stdenv.isDarwin then { } else x;
33+
linuxOnly = x: if pkgs.stdenv.isLinux then x else { };
3434
in
3535
linuxOnly (import ./machines.nix {
3636
inherit pkgs tfinfo;

doc/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ Or you can build it with Nix at the top level, which will also build the Haddock
1111
```
1212
nix build -f default.nix docs.site
1313
```
14+
15+
The doc site from master is built automatically and hosted [here](https://plutus.readthedocs.io/en/latest).
16+
Additionally, the site is built for all PRs, and a link to a preview can be found in the PR statuses.

doc/_static/theme_overrides.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* Fix table wrapping https://github.com/readthedocs/sphinx_rtd_theme/issues/117 */
2+
@media screen and (min-width: 768px) {
3+
.wy-table-responsive table td, .wy-table-responsive table th {
4+
white-space: normal !important;
5+
}
6+
}

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# -- Project information -----------------------------------------------------
3333

3434
project = 'The Plutus Platform and Marlowe'
35-
copyright = '2020, IOHK'
35+
copyright = '2021, IOHK'
3636
author = 'IOHK'
3737

3838
# The full version, including alpha/beta/rc tags
@@ -135,3 +135,4 @@ def setup(app):
135135
'enable_auto_toc_tree': False,
136136
}, True)
137137
app.add_transform(AutoStructify)
138+
app.add_css_file("theme_overrides.css")

doc/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ stdenv, lib, pythonPackages, sphinxcontrib-domaintools, sphinxcontrib-haddock, sphinx-markdown-tables, sphinxemoji, combined-haddock, ... }:
22
stdenv.mkDerivation {
33
name = "plutus-docs";
4-
src = lib.sourceFilesBySuffices ./. [ ".py" ".rst" ".hs" ".png" ".svg" ".bib" ];
4+
src = lib.sourceFilesBySuffices ./. [ ".py" ".rst" ".hs" ".png" ".svg" ".bib" ".csv" ".css" ];
55
buildInputs = with pythonPackages; [
66
sphinx
77
sphinx_rtd_theme

doc/plutus-doc.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ common lang
3838

3939
executable doc-doctests
4040
import: lang
41+
if(impl(ghcjs) || os(windows))
42+
buildable: False
4143
hs-source-dirs: plutus/tutorials
4244
main-is: Main.hs
4345
ghc-options: -Wno-unused-imports

0 commit comments

Comments
 (0)