2019-04-08 15:28:05 +00:00
|
|
|
{
|
|
|
|
description = "The purely functional package manager";
|
|
|
|
|
2024-09-22 14:48:23 +00:00
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
|
|
|
|
|
2022-05-16 18:46:44 +00:00
|
|
|
inputs.nixpkgs-regression.url = "github:NixOS/nixpkgs/215d4d0fd80ca5163643b03a33fde804a29cc1e2";
|
2024-06-03 15:00:48 +00:00
|
|
|
inputs.nixpkgs-23-11.url = "github:NixOS/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446";
|
2025-01-24 19:40:21 +00:00
|
|
|
inputs.flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
2019-04-08 15:28:05 +00:00
|
|
|
|
2024-04-18 19:59:39 +00:00
|
|
|
# dev tooling
|
|
|
|
inputs.flake-parts.url = "github:hercules-ci/flake-parts";
|
2024-07-24 13:55:57 +00:00
|
|
|
inputs.git-hooks-nix.url = "github:cachix/git-hooks.nix";
|
2024-04-18 19:59:39 +00:00
|
|
|
# work around https://github.com/NixOS/nix/issues/7730
|
|
|
|
inputs.flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
2024-07-24 13:55:57 +00:00
|
|
|
inputs.git-hooks-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
inputs.git-hooks-nix.inputs.nixpkgs-stable.follows = "nixpkgs";
|
2024-04-18 19:59:39 +00:00
|
|
|
# work around 7730 and https://github.com/NixOS/nix/issues/7807
|
2024-07-24 13:55:57 +00:00
|
|
|
inputs.git-hooks-nix.inputs.flake-compat.follows = "";
|
|
|
|
inputs.git-hooks-nix.inputs.gitignore.follows = "";
|
2024-04-18 19:59:39 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
outputs =
|
|
|
|
inputs@{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
nixpkgs-regression,
|
|
|
|
...
|
|
|
|
}:
|
2019-04-08 15:28:05 +00:00
|
|
|
|
2019-10-04 08:45:33 +00:00
|
|
|
let
|
2022-03-02 02:40:18 +00:00
|
|
|
inherit (nixpkgs) lib;
|
2023-12-02 17:25:47 +00:00
|
|
|
|
2025-01-22 11:16:44 +00:00
|
|
|
officialRelease = true;
|
2022-12-06 17:00:10 +00:00
|
|
|
|
2023-08-23 18:28:24 +00:00
|
|
|
linux32BitSystems = [ "i686-linux" ];
|
2025-01-24 19:40:21 +00:00
|
|
|
linux64BitSystems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
|
|
|
];
|
2023-08-23 18:28:24 +00:00
|
|
|
linuxSystems = linux32BitSystems ++ linux64BitSystems;
|
2025-01-24 19:40:21 +00:00
|
|
|
darwinSystems = [
|
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
|
|
|
];
|
2023-08-23 18:28:24 +00:00
|
|
|
systems = linuxSystems ++ darwinSystems;
|
2023-08-31 02:57:59 +00:00
|
|
|
|
|
|
|
crossSystems = [
|
2023-09-02 18:36:25 +00:00
|
|
|
"armv6l-unknown-linux-gnueabihf"
|
|
|
|
"armv7l-unknown-linux-gnueabihf"
|
2024-04-18 11:10:52 +00:00
|
|
|
"riscv64-unknown-linux-gnu"
|
2024-09-25 12:13:33 +00:00
|
|
|
# Disabled because of https://github.com/NixOS/nixpkgs/issues/344423
|
|
|
|
# "x86_64-unknown-netbsd"
|
2024-06-04 08:17:58 +00:00
|
|
|
"x86_64-unknown-freebsd"
|
2023-12-11 17:26:42 +00:00
|
|
|
"x86_64-w64-mingw32"
|
2023-08-31 02:57:59 +00:00
|
|
|
];
|
2021-02-06 00:07:48 +00:00
|
|
|
|
2023-11-30 22:48:44 +00:00
|
|
|
stdenvs = [
|
|
|
|
"ccacheStdenv"
|
|
|
|
"clangStdenv"
|
|
|
|
"gccStdenv"
|
|
|
|
"libcxxStdenv"
|
|
|
|
"stdenv"
|
|
|
|
];
|
2021-07-08 15:01:51 +00:00
|
|
|
|
2024-06-25 13:49:39 +00:00
|
|
|
/**
|
|
|
|
`flatMapAttrs attrs f` applies `f` to each attribute in `attrs` and
|
|
|
|
merges the results into a single attribute set.
|
|
|
|
|
|
|
|
This can be nested to form a build matrix where all the attributes
|
|
|
|
generated by the innermost `f` are returned as is.
|
|
|
|
(Provided that the names are unique.)
|
|
|
|
|
|
|
|
See https://nixos.org/manual/nixpkgs/stable/index.html#function-library-lib.attrsets.concatMapAttrs
|
2025-01-24 19:40:21 +00:00
|
|
|
*/
|
2024-06-25 13:49:39 +00:00
|
|
|
flatMapAttrs = attrs: f: lib.concatMapAttrs f attrs;
|
|
|
|
|
2022-03-02 02:40:18 +00:00
|
|
|
forAllSystems = lib.genAttrs systems;
|
|
|
|
|
|
|
|
forAllCrossSystems = lib.genAttrs crossSystems;
|
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
forAllStdenvs =
|
|
|
|
f:
|
|
|
|
lib.listToAttrs (
|
|
|
|
map (stdenvName: {
|
|
|
|
name = "${stdenvName}Packages";
|
|
|
|
value = f stdenvName;
|
|
|
|
}) stdenvs
|
|
|
|
);
|
2024-04-18 19:59:39 +00:00
|
|
|
|
|
|
|
# We don't apply flake-parts to the whole flake so that non-development attributes
|
|
|
|
# load without fetching any development inputs.
|
|
|
|
devFlake = inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
imports = [ ./maintainers/flake-module.nix ];
|
|
|
|
systems = lib.subtractLists crossSystems systems;
|
2025-01-24 19:40:21 +00:00
|
|
|
perSystem =
|
|
|
|
{ system, ... }:
|
|
|
|
{
|
|
|
|
_module.args.pkgs = nixpkgsFor.${system}.native;
|
|
|
|
};
|
2024-04-18 19:59:39 +00:00
|
|
|
};
|
|
|
|
|
2019-10-04 08:45:33 +00:00
|
|
|
# Memoize nixpkgs for different platforms for efficiency.
|
2025-01-24 19:40:21 +00:00
|
|
|
nixpkgsFor = forAllSystems (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
make-pkgs =
|
|
|
|
crossSystem: stdenv:
|
|
|
|
import nixpkgs {
|
|
|
|
localSystem = {
|
|
|
|
inherit system;
|
|
|
|
};
|
|
|
|
crossSystem =
|
|
|
|
if crossSystem == null then
|
|
|
|
null
|
|
|
|
else
|
|
|
|
{
|
|
|
|
config = crossSystem;
|
|
|
|
}
|
|
|
|
// lib.optionalAttrs (crossSystem == "x86_64-unknown-freebsd13") {
|
|
|
|
useLLVM = true;
|
|
|
|
};
|
|
|
|
overlays = [
|
|
|
|
(overlayFor (p: p.${stdenv}))
|
|
|
|
];
|
2023-08-31 02:57:59 +00:00
|
|
|
};
|
2022-03-02 02:40:18 +00:00
|
|
|
stdenvs = forAllStdenvs (make-pkgs null);
|
|
|
|
native = stdenvs.stdenvPackages;
|
2025-01-24 19:40:21 +00:00
|
|
|
in
|
|
|
|
{
|
2022-03-02 02:40:18 +00:00
|
|
|
inherit stdenvs native;
|
|
|
|
static = native.pkgsStatic;
|
2025-01-11 02:08:27 +00:00
|
|
|
llvm = native.pkgsLLVM;
|
2024-01-13 01:39:46 +00:00
|
|
|
cross = forAllCrossSystems (crossSystem: make-pkgs crossSystem "stdenv");
|
2025-01-24 19:40:21 +00:00
|
|
|
}
|
|
|
|
);
|
2019-10-04 08:45:33 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
binaryTarball =
|
|
|
|
nix: pkgs:
|
|
|
|
pkgs.callPackage ./scripts/binary-tarball.nix {
|
|
|
|
inherit nix;
|
|
|
|
};
|
2021-06-26 05:12:03 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
overlayFor =
|
|
|
|
getStdenv: final: prev:
|
2023-11-30 22:48:44 +00:00
|
|
|
let
|
|
|
|
stdenv = getStdenv final;
|
|
|
|
in
|
2022-01-25 00:28:44 +00:00
|
|
|
{
|
|
|
|
nixStable = prev.nix;
|
2020-11-10 09:43:33 +00:00
|
|
|
|
2024-06-26 00:38:07 +00:00
|
|
|
# A new scope, so that we can use `callPackage` to inject our own interdependencies
|
|
|
|
# without "polluting" the top level "`pkgs`" attrset.
|
|
|
|
# This also has the benefit of providing us with a distinct set of packages
|
|
|
|
# we can iterate over.
|
2024-11-06 21:49:04 +00:00
|
|
|
nixComponents =
|
|
|
|
lib.makeScopeWithSplicing'
|
|
|
|
{
|
|
|
|
inherit (final) splicePackages;
|
|
|
|
inherit (final.nixDependencies) newScope;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
otherSplices = final.generateSplicesForMkScope "nixComponents";
|
|
|
|
f = import ./packaging/components.nix {
|
|
|
|
inherit (final) lib;
|
|
|
|
inherit officialRelease;
|
|
|
|
src = self;
|
|
|
|
};
|
|
|
|
};
|
2023-12-03 23:47:54 +00:00
|
|
|
|
2024-06-26 01:58:47 +00:00
|
|
|
# The dependencies are in their own scope, so that they don't have to be
|
|
|
|
# in Nixpkgs top level `pkgs` or `nixComponents`.
|
2024-11-06 21:49:04 +00:00
|
|
|
nixDependencies =
|
|
|
|
lib.makeScopeWithSplicing'
|
|
|
|
{
|
|
|
|
inherit (final) splicePackages;
|
|
|
|
inherit (final) newScope; # layered directly on pkgs, unlike nixComponents above
|
|
|
|
}
|
|
|
|
{
|
|
|
|
otherSplices = final.generateSplicesForMkScope "nixDependencies";
|
|
|
|
f = import ./packaging/dependencies.nix {
|
|
|
|
inherit inputs stdenv;
|
|
|
|
pkgs = final;
|
|
|
|
};
|
|
|
|
};
|
2024-06-26 01:58:47 +00:00
|
|
|
|
2024-11-11 14:21:34 +00:00
|
|
|
nix = final.nixComponents.nix-cli;
|
2023-02-06 15:36:57 +00:00
|
|
|
|
2024-04-21 11:52:56 +00:00
|
|
|
# See https://github.com/NixOS/nixpkgs/pull/214409
|
|
|
|
# Remove when fixed in this flake's nixpkgs
|
2024-04-18 19:59:39 +00:00
|
|
|
pre-commit =
|
2025-01-24 19:40:21 +00:00
|
|
|
if prev.stdenv.hostPlatform.system == "i686-linux" then
|
|
|
|
(prev.pre-commit.override (o: {
|
|
|
|
dotnet-sdk = "";
|
|
|
|
})).overridePythonAttrs
|
|
|
|
(o: {
|
|
|
|
doCheck = false;
|
|
|
|
})
|
|
|
|
else
|
|
|
|
prev.pre-commit;
|
2024-01-17 18:08:03 +00:00
|
|
|
};
|
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
in
|
|
|
|
{
|
2021-07-08 15:01:51 +00:00
|
|
|
# A Nixpkgs overlay that overrides the 'nix' and
|
2024-06-04 22:10:25 +00:00
|
|
|
# 'nix-perl-bindings' packages.
|
2022-02-11 14:05:07 +00:00
|
|
|
overlays.default = overlayFor (p: p.stdenv);
|
2021-07-08 15:01:51 +00:00
|
|
|
|
2024-06-26 02:24:50 +00:00
|
|
|
hydraJobs = import ./packaging/hydra.nix {
|
2024-05-31 17:12:35 +00:00
|
|
|
inherit
|
|
|
|
inputs
|
|
|
|
binaryTarball
|
|
|
|
forAllCrossSystems
|
|
|
|
forAllSystems
|
|
|
|
lib
|
|
|
|
linux64BitSystems
|
|
|
|
nixpkgsFor
|
|
|
|
self
|
2024-08-13 20:15:56 +00:00
|
|
|
officialRelease
|
2024-05-31 17:12:35 +00:00
|
|
|
;
|
2024-05-31 22:27:20 +00:00
|
|
|
};
|
2021-10-15 10:36:29 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
checks = forAllSystems (
|
|
|
|
system:
|
|
|
|
{
|
|
|
|
installerScriptForGHA = self.hydraJobs.installerScriptForGHA.${system};
|
|
|
|
installTests = self.hydraJobs.installTests.${system};
|
|
|
|
nixpkgsLibTests = self.hydraJobs.tests.nixpkgsLibTests.${system};
|
|
|
|
rl-next =
|
|
|
|
let
|
|
|
|
pkgs = nixpkgsFor.${system}.native;
|
|
|
|
in
|
|
|
|
pkgs.buildPackages.runCommand "test-rl-next-release-notes" { } ''
|
|
|
|
LANG=C.UTF-8 ${pkgs.changelog-d}/bin/changelog-d ${./doc/manual/rl-next} >$out
|
|
|
|
'';
|
|
|
|
repl-completion = nixpkgsFor.${system}.native.callPackage ./tests/repl-completion.nix { };
|
|
|
|
}
|
|
|
|
// (lib.optionalAttrs (builtins.elem system linux64BitSystems)) {
|
|
|
|
dockerImage = self.hydraJobs.dockerImage.${system};
|
|
|
|
}
|
|
|
|
// (lib.optionalAttrs (!(builtins.elem system linux32BitSystems))) {
|
|
|
|
# Some perl dependencies are broken on i686-linux.
|
|
|
|
# Since the support is only best-effort there, disable the perl
|
|
|
|
# bindings
|
|
|
|
perlBindings = self.hydraJobs.perlBindings.${system};
|
|
|
|
}
|
|
|
|
# Add "passthru" tests
|
|
|
|
//
|
|
|
|
flatMapAttrs
|
|
|
|
(
|
|
|
|
{
|
|
|
|
"" = nixpkgsFor.${system}.native;
|
|
|
|
}
|
|
|
|
// lib.optionalAttrs (!nixpkgsFor.${system}.native.stdenv.hostPlatform.isDarwin) {
|
|
|
|
# TODO: enable static builds for darwin, blocked on:
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/320448
|
|
|
|
# TODO: disabled to speed up GHA CI.
|
|
|
|
#"static-" = nixpkgsFor.${system}.static;
|
|
|
|
}
|
2024-06-25 13:49:39 +00:00
|
|
|
)
|
2025-01-24 19:40:21 +00:00
|
|
|
(
|
|
|
|
nixpkgsPrefix: nixpkgs:
|
|
|
|
flatMapAttrs nixpkgs.nixComponents (
|
|
|
|
pkgName: pkg:
|
|
|
|
flatMapAttrs pkg.tests or { } (
|
|
|
|
testName: test: {
|
|
|
|
"${nixpkgsPrefix}${pkgName}-${testName}" = test;
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
// lib.optionalAttrs (nixpkgs.stdenv.hostPlatform == nixpkgs.stdenv.buildPlatform) {
|
|
|
|
"${nixpkgsPrefix}nix-functional-tests" = nixpkgs.nixComponents.nix-functional-tests;
|
|
|
|
}
|
|
|
|
)
|
|
|
|
// devFlake.checks.${system} or { }
|
2024-04-18 19:59:39 +00:00
|
|
|
);
|
2019-10-04 08:45:33 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
packages = forAllSystems (
|
|
|
|
system:
|
|
|
|
{
|
|
|
|
# Here we put attributes that map 1:1 into packages.<system>, ie
|
2024-06-26 00:03:21 +00:00
|
|
|
# for which we don't apply the full build matrix such as cross or static.
|
|
|
|
inherit (nixpkgsFor.${system}.native)
|
2025-01-24 19:40:21 +00:00
|
|
|
changelog-d
|
|
|
|
;
|
2024-11-12 15:42:43 +00:00
|
|
|
default = self.packages.${system}.nix;
|
2024-12-14 16:17:29 +00:00
|
|
|
installerScriptForGHA = self.hydraJobs.installerScriptForGHA.${system};
|
|
|
|
binaryTarball = self.hydraJobs.binaryTarball.${system};
|
2024-11-11 14:21:34 +00:00
|
|
|
# TODO probably should be `nix-cli`
|
2024-11-12 15:42:43 +00:00
|
|
|
nix = self.packages.${system}.nix-everything;
|
2024-07-30 19:05:22 +00:00
|
|
|
nix-manual = nixpkgsFor.${system}.native.nixComponents.nix-manual;
|
2024-06-26 08:47:13 +00:00
|
|
|
nix-internal-api-docs = nixpkgsFor.${system}.native.nixComponents.nix-internal-api-docs;
|
|
|
|
nix-external-api-docs = nixpkgsFor.${system}.native.nixComponents.nix-external-api-docs;
|
2024-06-04 13:28:27 +00:00
|
|
|
}
|
2024-06-26 00:03:21 +00:00
|
|
|
# We need to flatten recursive attribute sets of derivations to pass `flake check`.
|
2025-01-24 19:40:21 +00:00
|
|
|
//
|
|
|
|
flatMapAttrs
|
|
|
|
{
|
|
|
|
# Components we'll iterate over in the upcoming lambda
|
|
|
|
"nix-util" = { };
|
|
|
|
"nix-util-c" = { };
|
|
|
|
"nix-util-test-support" = { };
|
|
|
|
"nix-util-tests" = { };
|
2024-08-14 20:04:35 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-store" = { };
|
|
|
|
"nix-store-c" = { };
|
|
|
|
"nix-store-test-support" = { };
|
|
|
|
"nix-store-tests" = { };
|
2024-08-14 20:04:35 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-fetchers" = { };
|
|
|
|
"nix-fetchers-tests" = { };
|
2024-08-14 20:04:35 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-expr" = { };
|
|
|
|
"nix-expr-c" = { };
|
|
|
|
"nix-expr-test-support" = { };
|
|
|
|
"nix-expr-tests" = { };
|
2024-08-14 20:04:35 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-flake" = { };
|
|
|
|
"nix-flake-tests" = { };
|
2024-08-14 20:04:35 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-main" = { };
|
|
|
|
"nix-main-c" = { };
|
2024-08-14 20:04:35 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-cmd" = { };
|
2024-08-14 20:04:35 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-cli" = { };
|
2024-08-14 20:04:35 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-everything" = { };
|
2024-11-11 14:21:34 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-functional-tests" = {
|
|
|
|
supportsCross = false;
|
|
|
|
};
|
2024-08-14 20:04:35 +00:00
|
|
|
|
2025-01-24 19:40:21 +00:00
|
|
|
"nix-perl-bindings" = {
|
|
|
|
supportsCross = false;
|
|
|
|
};
|
2024-06-26 00:03:21 +00:00
|
|
|
}
|
2025-01-24 19:40:21 +00:00
|
|
|
(
|
|
|
|
pkgName:
|
|
|
|
{
|
|
|
|
supportsCross ? true,
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
# These attributes go right into `packages.<system>`.
|
|
|
|
"${pkgName}" = nixpkgsFor.${system}.native.nixComponents.${pkgName};
|
|
|
|
"${pkgName}-static" = nixpkgsFor.${system}.static.nixComponents.${pkgName};
|
|
|
|
"${pkgName}-llvm" = nixpkgsFor.${system}.llvm.nixComponents.${pkgName};
|
|
|
|
}
|
|
|
|
// lib.optionalAttrs supportsCross (
|
|
|
|
flatMapAttrs (lib.genAttrs crossSystems (_: { })) (
|
|
|
|
crossSystem:
|
|
|
|
{ }:
|
|
|
|
{
|
|
|
|
# These attributes go right into `packages.<system>`.
|
|
|
|
"${pkgName}-${crossSystem}" = nixpkgsFor.${system}.cross.${crossSystem}.nixComponents.${pkgName};
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
// flatMapAttrs (lib.genAttrs stdenvs (_: { })) (
|
|
|
|
stdenvName:
|
|
|
|
{ }:
|
|
|
|
{
|
|
|
|
# These attributes go right into `packages.<system>`.
|
|
|
|
"${pkgName}-${stdenvName}" =
|
|
|
|
nixpkgsFor.${system}.stdenvs."${stdenvName}Packages".nixComponents.${pkgName};
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
2024-06-04 13:28:27 +00:00
|
|
|
// lib.optionalAttrs (builtins.elem system linux64BitSystems) {
|
2025-01-24 19:40:21 +00:00
|
|
|
dockerImage =
|
|
|
|
let
|
|
|
|
pkgs = nixpkgsFor.${system}.native;
|
|
|
|
image = import ./docker.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
tag = pkgs.nix.version;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
pkgs.runCommand "docker-image-tarball-${pkgs.nix.version}"
|
|
|
|
{ meta.description = "Docker image with Nix for ${system}"; }
|
|
|
|
''
|
|
|
|
mkdir -p $out/nix-support
|
|
|
|
image=$out/image.tar.gz
|
|
|
|
ln -s ${image} $image
|
|
|
|
echo "file binary-dist $image" >> $out/nix-support/hydra-build-products
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
devShells =
|
|
|
|
let
|
|
|
|
makeShell = import ./packaging/dev-shell.nix { inherit lib devFlake; };
|
|
|
|
prefixAttrs = prefix: lib.concatMapAttrs (k: v: { "${prefix}-${k}" = v; });
|
|
|
|
in
|
|
|
|
forAllSystems (
|
|
|
|
system:
|
|
|
|
prefixAttrs "native" (
|
|
|
|
forAllStdenvs (
|
|
|
|
stdenvName:
|
|
|
|
makeShell {
|
|
|
|
pkgs = nixpkgsFor.${system}.stdenvs."${stdenvName}Packages";
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
// lib.optionalAttrs (!nixpkgsFor.${system}.native.stdenv.isDarwin) (
|
|
|
|
prefixAttrs "static" (
|
|
|
|
forAllStdenvs (
|
|
|
|
stdenvName:
|
|
|
|
makeShell {
|
|
|
|
pkgs = nixpkgsFor.${system}.stdenvs."${stdenvName}Packages".pkgsStatic;
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
// prefixAttrs "llvm" (
|
|
|
|
forAllStdenvs (
|
|
|
|
stdenvName:
|
|
|
|
makeShell {
|
|
|
|
pkgs = nixpkgsFor.${system}.stdenvs."${stdenvName}Packages".pkgsLLVM;
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
// prefixAttrs "cross" (
|
|
|
|
forAllCrossSystems (
|
|
|
|
crossSystem:
|
|
|
|
makeShell {
|
|
|
|
pkgs = nixpkgsFor.${system}.cross.${crossSystem};
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
// {
|
2024-11-04 20:13:10 +00:00
|
|
|
default = self.devShells.${system}.native-stdenvPackages;
|
|
|
|
}
|
2022-03-02 02:40:18 +00:00
|
|
|
);
|
2025-01-24 19:40:21 +00:00
|
|
|
};
|
2019-04-08 15:28:05 +00:00
|
|
|
}
|