parent
69c9a9cb62
commit
fd47f49a3b
|
@ -7,41 +7,31 @@
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
}: let
|
}: let
|
||||||
systems = [
|
system = "x86_64-linux";
|
||||||
"x86_64-linux"
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
"x86_64-darwin"
|
in {
|
||||||
"aarch64-linux"
|
{{if pname}}
|
||||||
"aarch64-darwin"
|
packages.${system}.default = pkgs.buildGoModule {
|
||||||
];
|
pname = "{{pname}}";
|
||||||
in
|
version = "{{version}}";
|
||||||
builtins.map (
|
src = ./.;
|
||||||
system: let
|
vendorHash = "";
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
meta = with pkgs.lib; {
|
||||||
in {
|
description = "{{description}}";
|
||||||
{{if pname}}
|
homepage = "{{url}}";
|
||||||
packages.${system}.default = pkgs.buildGoModule {
|
maintainers = with maintainers; [jolheiser];
|
||||||
pname = {{pname}};
|
mainProgram = "{{pname}}";
|
||||||
version = {{version}};
|
};
|
||||||
src = ./.;
|
};
|
||||||
vendorHash = "";
|
{{end}}
|
||||||
meta = with pkgs.lib; {
|
{{if packages}}
|
||||||
description = "{{description}}";
|
devShells.${system}.default = pkgs.mkShell {
|
||||||
homepage = "{{url}}";
|
nativeBuildInputs = with pkgs; [
|
||||||
maintainers = with maintainers; [jolheiser];
|
{{- range $pkg := (splitList "\n" packages)}}
|
||||||
mainProgram = "{{pname}}";
|
{{trim $pkg}}
|
||||||
};
|
{{- end}}
|
||||||
};
|
];
|
||||||
{{end}}
|
};
|
||||||
{{if packages}}
|
{{end}}
|
||||||
devShells.${system}.default = pkgs.mkShell {
|
};
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
{{- range $pkg := (splitList "\n" packages)}}
|
|
||||||
{{trim $pkg}}
|
|
||||||
{{- end}}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
{{end}}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
systems;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue