replace "pkgs" arguments with individual packages

This commit is contained in:
rhiannon morris 2025-04-20 09:57:40 +02:00
parent b32e181094
commit 428b2430ef
11 changed files with 35 additions and 39 deletions

View file

@ -1,9 +1,8 @@
{ pkgs ? import <nixpkgs> {},
{ haskell, lib, stdenv,
versions ? [ "8.10" "9.0" "9.2" "9.4" "9.6" "9.8" "9.10" "9.12" ],
}:
let
inherit (builtins) attrValues replaceStrings;
inherit (pkgs) lib stdenv haskell;
toPkg = version:
"ghc" + replaceStrings ["."] [""] version;