fix build
This commit is contained in:
parent
64e61ca4ab
commit
ba7b61a85b
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
goVer = "_1_21";
|
|
||||||
supportedSystems =
|
supportedSystems =
|
||||||
[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
[ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
|
||||||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||||||
@ -16,26 +15,25 @@
|
|||||||
};
|
};
|
||||||
packages = forAllSystems (system:
|
packages = forAllSystems (system:
|
||||||
let pkgs = nixpkgsFor.${system};
|
let pkgs = nixpkgsFor.${system};
|
||||||
buildGoModule = pkgs.buildGo121Module;
|
buildGoModule = pkgs.buildGoModule;
|
||||||
in {
|
in {
|
||||||
ts-reverse-proxy = buildGoModule {
|
ts-reverse-proxy = buildGoModule {
|
||||||
pname = "ts-reverse-proxy";
|
pname = "ts-reverse-proxy";
|
||||||
version = "v1.0.4";
|
version = "v1.0.4";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
||||||
vendorHash = "sha256-aI5JoW/EEUEUXlypQ+LyUdUdDwBzJQnSr8N0jGexAos=";
|
vendorHash = "sha256-qnWiByRitZ6rvB0zbDo6Jhh5pXBHz3/+IY5fCoBAdrE=";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
defaultPackage = forAllSystems (system: self.packages.${system}.ts-reverse-proxy);
|
defaultPackage = forAllSystems (system: self.packages.${system}.ts-reverse-proxy);
|
||||||
devShells = forAllSystems (system:
|
devShells = forAllSystems (system:
|
||||||
let pkgs = nixpkgsFor.${system};
|
let pkgs = nixpkgsFor.${system};
|
||||||
go = pkgs."go${goVer}";
|
|
||||||
in {
|
in {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
PS1='\u@\h:\@; '
|
PS1='\u@\h:\@; '
|
||||||
echo "Go `${go}/bin/go version`"
|
echo "Go `${pkgs.go}/bin/go version`"
|
||||||
nix run github:qbit/xin#flake-warn
|
nix run github:qbit/xin#flake-warn
|
||||||
'';
|
'';
|
||||||
nativeBuildInputs = with pkgs; [ git go gopls go-tools graphviz ];
|
nativeBuildInputs = with pkgs; [ git go gopls go-tools graphviz ];
|
||||||
|
Loading…
Reference in New Issue
Block a user