This commit is contained in:
outfoxxed 2025-04-20 21:48:59 -07:00
commit 57fa994768
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
9 changed files with 311 additions and 0 deletions

38
flake.nix Normal file
View file

@ -0,0 +1,38 @@
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = inputs @ { self, nixpkgs, ... }: {
nixosConfigurations = {
jupiter = nixpkgs.lib.nixosSystem rec {
system = "riscv64-linux";
specialArgs = {
inherit self system inputs;
boot = self.packages.x86_64-linux.boot.entries;
};
modules = [
./cpu.nix
./nixpkgs.nix
./builder.nix
./system.nix
./boot.nix
./ghc.nix
./riscvfixes.nix
];
};
};
packages = {
x86_64-linux = let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
boot = pkgs.linkFarm "boot" {
"ghc-9.4.8" = pkgs.pkgsCross.riscv64.haskell.compiler.native-bignum.ghc948;
};
};
};
};
}