From 624d19daf6f9cef2bcd34ae0824e1b9bd9e112f4 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 17 Nov 2025 12:03:29 +0100 Subject: [PATCH] build(nix): use only one version of nixpkgs --- flake.lock | 58 ++++++++++-------------------------------------------- flake.nix | 5 ++++- 2 files changed, 14 insertions(+), 49 deletions(-) diff --git a/flake.lock b/flake.lock index e78a0e19b..ac65a0566 100644 --- a/flake.lock +++ b/flake.lock @@ -4,7 +4,9 @@ "inputs": { "devshell": "devshell", "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1731356359, @@ -43,7 +45,9 @@ }, "fenix": { "inputs": { - "nixpkgs": "nixpkgs_2", + "nixpkgs": [ + "nixpkgs" + ], "rust-analyzer-src": "rust-analyzer-src" }, "locked": { @@ -98,7 +102,9 @@ }, "naersk": { "inputs": { - "nixpkgs": "nixpkgs_3" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1721727458, @@ -130,50 +136,6 @@ } }, "nixpkgs": { - "locked": { - "lastModified": 1731139594, - "narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_2": { - "locked": { - "lastModified": 1747179050, - "narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "adaa24fbf46737f3f1b5497bf64bae750f82942e", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_3": { - "locked": { - "lastModified": 0, - "narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=", - "path": "/nix/store/zq2axpgzd5kykk1v446rkffj3bxa2m2h-source", - "type": "path" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_4": { "locked": { "lastModified": 1747179050, "narHash": "sha256-qhFMmDkeJX9KJwr5H32f1r7Prs7XbQWtO0h3V0a0rFY=", @@ -196,7 +158,7 @@ "flake-utils": "flake-utils_2", "naersk": "naersk", "nix-filter": "nix-filter", - "nixpkgs": "nixpkgs_4" + "nixpkgs": "nixpkgs" } }, "rust-analyzer-src": { diff --git a/flake.nix b/flake.nix index 4235f0c31..b20591584 100644 --- a/flake.nix +++ b/flake.nix @@ -1,12 +1,15 @@ { description = "Delta Chat core"; inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; fenix.url = "github:nix-community/fenix"; + fenix.inputs.nixpkgs.follows = "nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; naersk.url = "github:nix-community/naersk"; + naersk.inputs.nixpkgs.follows = "nixpkgs"; nix-filter.url = "github:numtide/nix-filter"; - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; android.url = "github:tadfisher/android-nixpkgs"; + android.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, flake-utils, nix-filter, naersk, fenix, android }: flake-utils.lib.eachDefaultSystem (system: