shell.nix: use unflakey pkgs; make nixpkgs.nix obsolete

This commit is contained in:
Sarah Vaupel 2023-10-06 05:14:26 +00:00
parent 603934f5bf
commit 85c14359f9
3 changed files with 2 additions and 14 deletions

View File

@ -1,12 +0,0 @@
# SPDX-FileCopyrightText: 2022 Gregor Kleen <gregor.kleen@ifi.lmu.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
url = "https://api.github.com/repos/NixOS/nixpkgs/tarball/${lock.nodes.nixpkgs.locked.rev}";
sha256 = lock.nodes.nixpkgs.locked.narHash;
}
)

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later
{ pkgs ? (import ./nixpkgs.nix {}).pkgs, nixpkgsPath ? null }:
{ pkgs ? import <nixpkgs> {}, nixpkgsPath ? null }:
let
inherit (pkgs.lib) optionalString;

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later
{ nixpkgs ? import ./nixpkgs.nix
{ nixpkgs ? import <nixpkgs> {}
, snapshot ? "lts-13.21"
}: