Created Nix Flake file for generating different architectures we support.

This commit is contained in:
markoburcul 2024-07-23 22:10:11 +02:00 committed by jinhojang6
parent 56a9c2c078
commit c716de2353
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8
2 changed files with 51 additions and 0 deletions

26
flake.lock Normal file
View File

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1721548954,
"narHash": "sha256-7cCC8+Tdq1+3OPyc3+gVo9dzUNkNIQfwSDJ2HSi2u3o=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "63d37ccd2d178d54e7fb691d7ec76000740ea24a",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-24.05",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

25
flake.nix Normal file
View File

@ -0,0 +1,25 @@
{
description = "Flake file for logos website ";
inputs = {
nixpkgs.url = "nixpkgs/nixos-24.05";
};
outputs = { self, nixpkgs }:
let
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
forEach = nixpkgs.lib.genAttrs supportedSystems;
pkgsFor = nixpkgs.lib.genAttrs supportedSystems (
system: import nixpkgs { inherit system; }
);
in rec {
devShells = forEach (system: {
default = pkgsFor.${system}.mkShellNoCC {
packages = with pkgsFor.${system}.buildPackages; [
yarn # 1.22.22
nodejs # v20.15.1
];
};
});
};
}