Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1# A shell to get tooling for Nixpkgs development 2# 3# Note: We intentionally don't use Flakes here, 4# because every time you change any file and do another `nix develop`, 5# it would create another copy of the entire ~500MB tree in the store. 6# See https://github.com/NixOS/nix/pull/6530 for the future 7{ 8 system ? builtins.currentSystem, 9}: 10let 11 pinnedNixpkgs = builtins.fromJSON (builtins.readFile ci/pinned-nixpkgs.json); 12 13 nixpkgs = fetchTarball { 14 url = "https://github.com/NixOS/nixpkgs/archive/${pinnedNixpkgs.rev}.tar.gz"; 15 sha256 = pinnedNixpkgs.sha256; 16 }; 17 18 pkgs = import nixpkgs { 19 inherit system; 20 config = {}; 21 overlays = []; 22 }; 23in 24pkgs.mkShellNoCC { 25 packages = [ 26 # The default formatter for Nix code 27 # https://github.com/NixOS/nixfmt 28 pkgs.nixfmt-rfc-style 29 ]; 30}