Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump flake inputs and tools #859

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/website/contents/for-developers/ReleaseProcess.md
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can a non-Nix user confirm that installing scriv like this works and yields a version >=1.4.0?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, pip3 install scriv on mac installs scriv-1.5.1 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pip3 install scriv --break-system-packages in Ubuntu also installs scriv-1.5.1

Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ A - ...
# Installing `scriv`

To manage the workflow described above, we will use the `scriv` tool slightly
modified to support cabal files.. If you use `nix` then you will find `scriv` in
modified to support cabal files. If you use `nix` then you will find `scriv` in
the Nix shell. Otherwise, the way to install it from source is:

1. Clone [our fork of scriv](https://github.com/IntersectMBO/scriv/) and `cd`
into it.
2. Run `pip install -e $(pwd)`
```
pip install scriv
```

If you encounter an error mentioning:
`pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: ...` we
Expand All @@ -248,7 +248,7 @@ installation complains with the error `error: externally-managed-environment`,
pass in the flag `--break-system-packages`:

```
pip install --break-system-packages -e $(pwd)
pip install --break-system-packages scriv
```

# Adding a changelog fragment
Expand Down
83 changes: 50 additions & 33 deletions flake.lock

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

2 changes: 1 addition & 1 deletion nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hsPkgs.shellFor {
# This is the place for tools that are required to be built with the same GHC
# version as used in hsPkgs.
tools = lib.mapAttrs (_: t: t // { index-state = pkgs.tool-index-state; }) {
haskell-language-server = { version = "2.4.0.0"; };
haskell-language-server = { version = "2.5.0.0"; };
};

shellHook = ''
Expand Down
12 changes: 1 addition & 11 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inputs: final: prev:

let
inherit (final) lib;
tool-index-state = "2023-11-16T00:00:00Z";
tool-index-state = "2024-01-01T00:00:00Z";
tool = name: version: other:
final.haskell-nix.tool final.hsPkgs.args.compiler-nix-name name ({
version = version;
Expand Down Expand Up @@ -52,16 +52,6 @@ in

cabal-fmt = tool "cabal-fmt" "0.1.9" { };

scriv = prev.scriv.overrideAttrs (_: {
version = "1.2.0-custom-iog";
src = final.fetchFromGitHub {
owner = "input-output-hk";
repo = "scriv";
rev = "567a1aa3f6df77d1a531290f10a261ec6a49c75a";
hash = "sha256-wpWDuZ3c8JJKVWPw9PHgcpneRWYjd/0z4oAIirPa0/E=";
};
});

haskellBuildUtils = prev.haskellBuildUtils.override {
inherit (final.hsPkgs.args) compiler-nix-name;
index-state = tool-index-state;
Expand Down
Loading