Skip to content

Commit

Permalink
Update all Flake Inputs & Add texliveFull to the devShell (#6588)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana authored and erikd committed Oct 25, 2024
1 parent fc89296 commit c3c9d29
Show file tree
Hide file tree
Showing 20 changed files with 251 additions and 172 deletions.
5 changes: 3 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
root = true

[*]
indent_style = space
# TODO decide if we want this
# [*]
# indent_style = space

[*.{nix, hs, lagda, agda}]
charset = utf-8
Expand Down
9 changes: 5 additions & 4 deletions cardano-constitution/cardano-constitution.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,16 @@ test-suite cardano-constitution-test

build-depends:
, aeson
, base >=4.9 && <5
, base >=4.9 && <5
, bytestring
, cardano-constitution
, containers
, directory
, filepath
, plutus-core:{plutus-core, plutus-core-testlib} ^>=1.36
, plutus-ledger-api ^>=1.36
, plutus-tx ^>=1.36
, plutus-core ^>=1.36
, plutus-core:plutus-core-testlib
, plutus-ledger-api ^>=1.36
, plutus-tx ^>=1.36
, QuickCheck
, serialise
, tasty
Expand Down
101 changes: 61 additions & 40 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
inputs.nixpkgs.follows = "nixpkgs";
};

nixpkgs.follows = "haskell-nix/nixpkgs";
nixpkgs.follows = "haskell-nix/nixpkgs-unstable";
nixpkgs-2405.follows = "haskell-nix/nixpkgs-2405";

hackage = {
url = "github:input-output-hk/hackage.nix";
Expand Down
12 changes: 8 additions & 4 deletions nix/agda-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@
let
Agda = repoRoot.nix.agda-project.hsPkgs.Agda;

frankenAgda = (pkgs.symlinkJoin {
frankenAgdaBin = pkgs.symlinkJoin {
name = "agda";
version = Agda.identifier.version;
paths = [
Agda.components.exes.agda
Agda.components.exes.agda-mode
];
}) //
{
version = Agda.identifier.version;
};

frankenAgda = frankenAgdaBin // {
# Newer Agda is built with enableSeparateBinOutput, hence this hacky workaround.
# https://github.com/NixOS/nixpkgs/commit/294245f7501e0a8e69b83346a4fa5afd4ed33ab3
bin = frankenAgdaBin;
};

frankenPkgs =
Expand Down
10 changes: 5 additions & 5 deletions nix/latex-documents.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ let
description = "Multi-currency paper";
};

plutus-core-spec-old = build-latex-doc {
name = "plutus-core-spec-old";
description = "Plutus core specification (old version)";
src = inputs.self + /doc/plutus-core-spec-old;
};
# plutus-core-spec-old = build-latex-doc {
# name = "plutus-core-spec-old";
# description = "Plutus core specification (old version)";
# src = inputs.self + /doc/plutus-core-spec-old;
# };

plutus-core-spec = build-latex-doc {
name = "plutus-core-spec";
Expand Down
1 change: 1 addition & 0 deletions nix/outputs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ in
{
packages.plutus-metatheory-site = repoRoot.nix.plutus-metatheory-site;
packages.pre-commit-check = ghc96.pre-commit-check;
packages.agda-project = repoRoot.nix.agda-project.hsPkgs.Agda.components.exes.agda;
}

(lib.optionalAttrs (system == "x86_64-linux" || system == "x86_64-darwin")
Expand Down
7 changes: 6 additions & 1 deletion nix/plutus-metatheory-site.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ let

plutus-metatheory-site = pkgs.runCommand "plutus-metatheory-site"
{
buildInputs = [ pkgs.jekyll pkgs.linkchecker ];
buildInputs = [
pkgs.jekyll
# TODO lickcheker is broke in nixpkgs-usnstable, remove this when it's fixed
# pkgs.linkchecker
inputs.nixpkgs-2405.legacyPackages.linkchecker
];
}
''
mkdir "$out"
Expand Down
8 changes: 7 additions & 1 deletion nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ in
repoRoot.nix.r-with-packages
pkgs.R

# LaTeX environment
pkgs.texliveFull

# Misc useful stuff, could make these commands but there's a lot already
pkgs.jekyll
pkgs.plantuml
Expand All @@ -47,9 +50,12 @@ in
pkgs.gawk
pkgs.scriv
pkgs.fswatch
pkgs.linkchecker
pkgs.yarn

# TODO lickcheker is broke in nixpkgs-usnstable, remove this when it's fixed
# pkgs.linkchecker
inputs.nixpkgs-2405.legacyPackages.linkchecker

# Needed to make building things work, not for commands
pkgs.zlib
pkgs.cacert
Expand Down
5 changes: 1 addition & 4 deletions plutus-benchmark/nofib/src/PlutusBenchmark/NoFib/Queens.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@

module PlutusBenchmark.NoFib.Queens where

{- Andrew Tolmach and Thomas Nordin's contraint solver
See Proceedings of WAAAPL '99
-}
{- Andrew Tolmach and Thomas Nordin's contraint solver. See Proceedings of WAAAPL '99 -}

import Control.DeepSeq (NFData)
import Control.Monad (forM_)
Expand Down
Loading

0 comments on commit c3c9d29

Please sign in to comment.