From 1901b0a6304e716846e8bfa9da3c707189accc40 Mon Sep 17 00:00:00 2001 From: isabel Date: Thu, 14 May 2026 11:28:06 +0100 Subject: [PATCH] fix(nix): build against pnpm 11 side note: you may also notice that I have removed the `github:` url for nixpkgs this is because it save a massive 15mb, is faster and more reliable than github See also: - - --- flake.lock | 17 +++++++---------- flake.nix | 2 +- frontend.nix | 2 +- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/flake.lock b/flake.lock index c5f0995..9d8fd1e 100644 --- a/flake.lock +++ b/flake.lock @@ -2,18 +2,15 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1775888245, - "narHash": "sha256-nwASzrRDD1JBEu/o8ekKYEXm/oJW6EMCzCRdrwcLe90=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "13043924aaa7375ce482ebe2494338e058282925", - "type": "github" + "lastModified": 1778672786, + "narHash": "sha256-Tf7q8/0aIwg4Btd/GUMNHXDTqlrWTr5o/vZ8euFUAQY=", + "rev": "eef00dfd8a712b34af845f9350bac681b1228bd1", + "type": "tarball", + "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.05pre997230.eef00dfd8a71/nixexprs.tar.xz?lastModified=1778672786&rev=eef00dfd8a712b34af845f9350bac681b1228bd1" }, "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" + "type": "tarball", + "url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz" } }, "root": { diff --git a/flake.nix b/flake.nix index efa006f..238cddf 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,6 @@ { inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; + nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"; }; outputs = diff --git a/frontend.nix b/frontend.nix index 95faf2f..ab558e8 100644 --- a/frontend.nix +++ b/frontend.nix @@ -19,7 +19,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { pnpmDeps = fetchPnpmDeps { inherit (finalAttrs) pname version src; fetcherVersion = 3; - hash = "sha256-E0S8dOaTOpY9m7Ft59tUQ6CLlLriWPE4WE1+S45vomY="; + hash = "sha256-qbmIAvE/3u/NB5x9bERCGQqwiDLkzjff3QchgR+ZDFs="; }; nativeBuildInputs = [