mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
Fixes: Warning: `stdenv.lib` is deprecated and will be removed in the next release. Please use `pkgs.lib` instead. For more information see https://github.com/NixOS/nixpkgs/issues/108938
24 lines
649 B
Nix
24 lines
649 B
Nix
{ stdenv, lib, pkgs, mkStackPkgSet, haskellLib, testSrc }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
# ./pkgs.nix and ./stack-simple.nix are generated by running
|
|
# stack-to-nix -o .
|
|
pkgSet = mkStackPkgSet {
|
|
stack-pkgs = import ./pkgs.nix;
|
|
pkg-def-extras = [];
|
|
modules = [];
|
|
};
|
|
|
|
packages = pkgSet.config.hsPkgs;
|
|
|
|
in pkgs.recurseIntoAttrs {
|
|
stack-simple-exe = (haskellLib.check packages.stack-simple.components.exes.stack-simple-exe) // {
|
|
# Attributes used for debugging with nix repl
|
|
inherit pkgSet packages;
|
|
};
|
|
stack-simple-test = packages.stack-simple.checks.stack-simple-test;
|
|
stack-simple-checks = packages.stack-simple.checks;
|
|
}
|