super flake upgrade
This commit is contained in:
parent
afec2eba8a
commit
baf8082228
1 changed files with 33 additions and 26 deletions
59
flake.nix
59
flake.nix
|
|
@ -1,46 +1,53 @@
|
||||||
{
|
{
|
||||||
description = "devshell-dawn";
|
description = "devshell-dorne";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||||
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = inputs @ {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
nixpkgs-unstable,
|
|
||||||
...
|
|
||||||
}: let
|
}: let
|
||||||
system = "x86_64-linux";
|
defaultSystems = ["aarch64-darwin" "aarch64-linux" "i686-linux" "x86_64-darwin" "x86_64-linux"];
|
||||||
|
|
||||||
pkgs = import nixpkgs {
|
# forAllSystems = f: nixpkgs.lib.genAttrs defaultSystems (system: f system);
|
||||||
inherit system;
|
forAllSystems = f:
|
||||||
};
|
nixpkgs.lib.mapAttrs (nixpkgs.lib.genAttrs defaultSystems (system:
|
||||||
pkgs-unstable = import nixpkgs-unstable {
|
f system (import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
};
|
overlays = [self.overlay];
|
||||||
|
})));
|
||||||
in {
|
in {
|
||||||
devShells."${system}".default = pkgs.mkShell {
|
overlays.default = final: prev: {
|
||||||
packages = with pkgs; [
|
dorne = final.haskellPackages.developPackage {
|
||||||
gnumake
|
|
||||||
bear
|
|
||||||
gcc
|
|
||||||
];
|
|
||||||
|
|
||||||
shell = "${pkgs.bash}/bin/bash";
|
|
||||||
};
|
|
||||||
|
|
||||||
packages."${system}" = rec {
|
|
||||||
default = dawn;
|
|
||||||
dawn = pkgs.haskellPackages.developPackage {
|
|
||||||
root = ./.;
|
root = ./.;
|
||||||
modifier = drv:
|
modifier = drv:
|
||||||
pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages; [
|
final.haskell.lib.addBuildTools drv (with final.haskellPackages; [
|
||||||
cabal-install
|
cabal-install
|
||||||
ghcid
|
ghcid
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
devShells = forAllSystems (
|
||||||
|
system: pkgs: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
gnumake
|
||||||
|
bear
|
||||||
|
gcc
|
||||||
|
];
|
||||||
|
|
||||||
|
shell = "${pkgs.bash}/bin/bash";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
checks = self.packages;
|
||||||
|
packages = forAllSystems (system: pkgs: rec {
|
||||||
|
default = dorne;
|
||||||
|
dorne = pkgs.dorne;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue