nix: fix build

This commit is contained in:
raf 2025-06-12 17:07:44 +03:00
commit 8066de2848
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 27 additions and 6 deletions

View file

@ -1,14 +1,19 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
outputs = {nixpkgs, ...}: let
outputs = {
self,
nixpkgs,
...
}: let
systems = ["x86_64-linux" "aarch64-linux"];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in rec {
packages = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./nix/package.nix {};
mrc = pkgsForEach.${system}.callPackage ./nix/package.nix {};
default = self.packages.${system}.mrc;
});
devShells = forEachSystem (system: {