Skip to content

Commit

Permalink
Merge pull request #15 from qowoz/aarch64
Browse files Browse the repository at this point in the history
Add aarch64-linux
  • Loading branch information
nlewo authored Mar 12, 2024
2 parents 529a27c + b4c8b07 commit 4fbbf62
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@

outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
system = "x86_64-linux";
systems = [ "aarch64-linux" "x86_64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
nixpkgsFor = forAllSystems (system: import nixpkgs {
inherit system;
overlays = [ self.overlay ];
};
});
in {
overlay = final: prev: {
comin = pkgs.buildGoModule rec {
comin = final.buildGoModule rec {
pname = "comin";
version = "0.0.1";
nativeCheckInputs = [ final.git ];
src = pkgs.lib.cleanSourceWith {
src = final.lib.cleanSourceWith {
src = ./.;
filter = path: type:
let
Expand All @@ -34,8 +35,8 @@
};
};

packages.x86_64-linux.comin = pkgs.comin;
defaultPackage.x86_64-linux = pkgs.comin;
packages = forAllSystems (system: { inherit (nixpkgsFor."${system}") comin; });
defaultPackage = forAllSystems (system: self.packages."${system}".comin);

nixosModules.comin = { config, pkgs, lib, ... }: let
cfg = config;
Expand Down

0 comments on commit 4fbbf62

Please sign in to comment.