shell.nix: use unflakey pkgs; make nixpkgs.nix obsolete
This commit is contained in:
parent
603934f5bf
commit
85c14359f9
12
nixpkgs.nix
12
nixpkgs.nix
@ -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;
|
||||
}
|
||||
)
|
||||
@ -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;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
{ nixpkgs ? import ./nixpkgs.nix
|
||||
{ nixpkgs ? import <nixpkgs> {}
|
||||
, snapshot ? "lts-13.21"
|
||||
}:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user