From b773159177500d96f6b5ab4c436b6c042e7302fb Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Fri, 6 Aug 2021 16:26:20 +0200 Subject: [PATCH] Increment version to v0.13.0 --- Paths_ihp.hs | 2 +- UPGRADE.md | 29 +++++++++++++++++++++++++++++ ihp.cabal | 2 +- ihp.nix | 2 +- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/Paths_ihp.hs b/Paths_ihp.hs index 1a87a1798..6f000c422 100644 --- a/Paths_ihp.hs +++ b/Paths_ihp.hs @@ -2,4 +2,4 @@ module Paths_ihp where import Data.Version -version = Version { versionBranch = [0, 12, 0], versionTags = [] } \ No newline at end of file +version = Version { versionBranch = [0, 13, 0], versionTags = [] } \ No newline at end of file diff --git a/UPGRADE.md b/UPGRADE.md index a43ec1553..ef7585cb5 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -2,6 +2,35 @@ This document describes breaking changes, as well as how to fix them, that have occured at given releases. After updating your project, please consult the segments from your current release until now. +# Upgrade to Beta 0.13.0 from Beta 0.12.0 + +## Switch IHP version + +Open `default.nix` and change the git commit in line 4 to the following: + +```diff +-ref = "refs/tags/v0.12.0"; ++ref = "refs/tags/v0.13.0"; +``` + +After that run the following command to update your project: + +```bash +make clean +nix-shell -j auto --cores 0 --run 'make -B .envrc' +make -B build/ihp-lib +``` + +Now you can start your project as usual with `./start`. + +## Updating nixpkgs + +If you have custom nix package definitions in your project, you will likely get an error that `stdenv` doesn't exist in expressions like `stdenv.lib.SOMETHING`. + +nixpkgs has moved `stdenv.lib` to just `lib`. So you need to replace all mentions of `stdenv.lib.` with `lib.`. You might also need to change import statements that import `stdenv` to instead import `lib` directly. + +[To get a better understanding of this, take a look a the upgrade commit to see what changes we did to the custom package definitions included with IHP.](https://github.com/digitallyinduced/ihp/commit/cfc8ceb4918749e833f79ba3d362082d0010f1b4) + # Upgrade to Beta 0.12.0 from Beta 0.11.0 ## Switch IHP version diff --git a/ihp.cabal b/ihp.cabal index 5eb45b0e3..426d21dbb 100644 --- a/ihp.cabal +++ b/ihp.cabal @@ -1,6 +1,6 @@ cabal-version: 2.2 name: ihp -version: 0.12.0 +version: 0.13.0 synopsis: Haskell Web Framework description: The Integrated Haskell Platform is a full stack framework focused on rapid application development while striving for robust code quality. license: NONE diff --git a/ihp.nix b/ihp.nix index 98675a305..b5c72c436 100644 --- a/ihp.nix +++ b/ihp.nix @@ -61,7 +61,7 @@ }: mkDerivation { pname = "ihp"; - version = "v0.12.0"; + version = "v0.13.0"; src = (import { }).nix-gitignore.gitignoreSource [ ] ./.; isLibrary = true; isExecutable = true;