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