Skip to content

Commit

Permalink
added multi-system support and removed patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Arbel-arad committed Aug 18, 2024
1 parent d6fdfbe commit b9c39bc
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 86 deletions.
1 change: 0 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
src = self; #zcli;

nativeBuildInputs = with pkgs; [ go ];
patches = [ ./nix-patch/disable-git-filecheck.patch ];
vendorHash = "sha256-XRnhK5vakEniRsgeEyBR+8RNwRO92KC9AXXMaYPs7Qc=";

installPhase = ''
Expand Down
31 changes: 31 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 10 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};

outputs = { self, nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.${system}.default = (import ./default.nix { inherit pkgs self; });

devShells = pkgs.mkShell {
nativeBuildInputs = [ pkgs.go ];
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
flake = {
};
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { config, pkgs, system, ... }: {
packages.default = (import ./default.nix { inherit pkgs self; });
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [ got ];
};
};
};
}
76 changes: 0 additions & 76 deletions nix-patch/disable-git-filecheck.patch

This file was deleted.

1 change: 1 addition & 0 deletions src/archiveClient/handler_findFilesByRules_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build exclude
package archiveClient

import (
Expand Down
1 change: 1 addition & 0 deletions src/archiveClient/handler_findGitFiles_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build exclude
package archiveClient

import (
Expand Down

0 comments on commit b9c39bc

Please sign in to comment.