Compare commits

...

2 Commits

Author SHA1 Message Date
9de0d57860 Add a linux-builder and a rosetta-builder
This allows for compiling for x86_64 linux on macOS.
2025-06-30 23:12:29 +02:00
fa035f2f49 Add cabal-install 2025-05-31 15:22:02 +02:00
4 changed files with 94 additions and 22 deletions

View File

@ -23,11 +23,11 @@
"emacs-config": { "emacs-config": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1740924875, "lastModified": 1745013913,
"narHash": "sha256-u0n98s3Lhm7SGY1k65TWQ7a9vWT9nWd2jRXsPquqM0M=", "narHash": "sha256-vOppZSLE0LuVO3GaF0sARwEfdTMtUswbn96B7CNjfQ8=",
"owner": "larstvei", "owner": "larstvei",
"repo": "dot-emacs", "repo": "dot-emacs",
"rev": "56f6827eb3077a60c839b3033b4db626341bb58a", "rev": "72fbff0076f8ef417993510f0047dcc5a3fe1c18",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -45,11 +45,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1744513704, "lastModified": 1745014073,
"narHash": "sha256-LEPQ9AXJYDHWCFmkkhkbkTwNHaeEEm6+6EE89IePLsE=", "narHash": "sha256-bUErPobuvffGHUqlQzCofTSqa5IVbrc5cj6MH5WrCPo=",
"owner": "larstvei", "owner": "larstvei",
"repo": "emacs-flake", "repo": "emacs-flake",
"rev": "3fc9e43ad2bccb8b27c682629162f564c6e4a773", "rev": "c02fca42d35fb4755a33af6879a8cee8b1668172",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -64,11 +64,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1744512440, "lastModified": 1744993365,
"narHash": "sha256-6cItqiP/EDLgQdKXyqAGwsYnNITNH3EBV2PA0nVkVBw=", "narHash": "sha256-YAcjnoRJo7m9Sq9uNorkNM33f1oZIigVuNPvUy6y3po=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "5494c453843359d4b03ace92e06cbf8143ef62b0", "rev": "90642af1fb7ab5e4c6deb221305acf6fc4472582",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -118,11 +118,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1744498625, "lastModified": 1745001336,
"narHash": "sha256-pL52uCt9CUoTTmysGG91c2FeU7XUvpB7Cep6yon2vDk=", "narHash": "sha256-R4HuzrgYtOYBNmB3lfRxcieHEBO4uSfgHNz4MzWkZ5M=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "db56335ca8942d86f2200664acdbd5b9212b26ad", "rev": "fc09cb7aaadb70d6c4898654ffc872f0d2415df9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -131,13 +131,71 @@
"type": "github" "type": "github"
} }
}, },
"nix-rosetta-builder": {
"inputs": {
"nixos-generators": "nixos-generators",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1745249216,
"narHash": "sha256-bNuaIdGrs8LfintWymo9KQTILwVxsw5T6zdfxZY6K0g=",
"owner": "cpick",
"repo": "nix-rosetta-builder",
"rev": "5cf6aa1f3f2fbb70443d33b5ef7779b7c7063392",
"type": "github"
},
"original": {
"owner": "cpick",
"repo": "nix-rosetta-builder",
"type": "github"
}
},
"nixlib": {
"locked": {
"lastModified": 1736643958,
"narHash": "sha256-tmpqTSWVRJVhpvfSN9KXBvKEXplrwKnSZNAoNPf/S/s=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "1418bc28a52126761c02dd3d89b2d8ca0f521181",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixos-generators": {
"inputs": {
"nixlib": "nixlib",
"nixpkgs": [
"nix-rosetta-builder",
"nixpkgs"
]
},
"locked": {
"lastModified": 1737057290,
"narHash": "sha256-3Pe0yKlCc7EOeq1X/aJVDH0CtNL+tIBm49vpepwL1MQ=",
"owner": "nix-community",
"repo": "nixos-generators",
"rev": "d002ce9b6e7eb467cd1c6bb9aef9c35d191b5453",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixos-generators",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1744463964, "lastModified": 1744932701,
"narHash": "sha256-LWqduOgLHCFxiTNYi3Uj5Lgz0SR+Xhw3kr/3Xd0GPTM=", "narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2631b0b7abcea6e640ce31cd78ea58910d31e650", "rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -149,11 +207,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1744309437, "lastModified": 1744440957,
"narHash": "sha256-QZnNHM823am8apCqKSPdtnzPGTy2ZB4zIXOVoBp5+W0=", "narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f9ebe33a928b5d529c895202263a5ce46bdf12f7", "rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -165,11 +223,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1744502386, "lastModified": 1744536153,
"narHash": "sha256-QAd1L37eU7ktL2WeLLLTmI6P9moz9+a/ONO8qNBYJgM=", "narHash": "sha256-awS2zRgF4uTwrOKwwiJcByDzDOdo3Q1rPZbiHQg/N38=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f6db44a8daa59c40ae41ba6e5823ec77fe0d2124", "rev": "18dd725c29603f582cf1900e0d25f9f1063dbf11",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -200,6 +258,7 @@
"darwin": "darwin", "darwin": "darwin",
"emacs-larstvei": "emacs-larstvei", "emacs-larstvei": "emacs-larstvei",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-rosetta-builder": "nix-rosetta-builder",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
} }
}, },

View File

@ -13,11 +13,15 @@
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-rosetta-builder = {
url = "github:cpick/nix-rosetta-builder";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs-larstvei.url = "github:larstvei/emacs-flake"; emacs-larstvei.url = "github:larstvei/emacs-flake";
}; };
outputs = outputs =
{ darwin, home-manager, ... }@inputs: { darwin, home-manager, nix-rosetta-builder, ... }@inputs:
{ {
darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem { darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem {
system = "aarch64-darwin"; system = "aarch64-darwin";
@ -26,6 +30,11 @@
./modules/core.nix ./modules/core.nix
./modules/macos.nix ./modules/macos.nix
nix-rosetta-builder.darwinModules.default
{
nix-rosetta-builder.onDemand = true;
}
home-manager.darwinModules.default home-manager.darwinModules.default
{ {
home-manager = { home-manager = {

View File

@ -3,6 +3,9 @@
nix = { nix = {
package = pkgs.nix; package = pkgs.nix;
linux-builder.enable = true;
settings = { settings = {
experimental-features = [ experimental-features = [
"nix-command" "nix-command"

View File

@ -24,6 +24,7 @@ with pkgs;
QuickCheck QuickCheck
] ]
)) ))
cabal-install
stack stack
]; ];