Skip to content

Commit

Permalink
Adds go1.21rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
juliens committed Jun 22, 2023
1 parent e7883bf commit 9fd3177
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
30 changes: 24 additions & 6 deletions flake.lock

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

18 changes: 18 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@
packages.prm-bin = import ./prm-bin.nix { inherit pkgs; };
packages.prm = pkgs.callPackage ./prm.nix {};
packages.yaegi = pkgs.callPackage ./yaegi.nix {};
packages.go_1_21 = pkgs.go.overrideAttrs (finalAttrs: rec {
version = "1.21rc2";
src = builtins.fetchurl {
url = "https://go.dev/dl/go${version}.src.tar.gz";
sha256 ="0vh72fv443bb7hdmrnbpwxrqbpcvyclrid6jwrxjs7yr4b76snci";
};
patches = nixpkgs.lib.lists.remove (nixpkgs.lib.lists.last finalAttrs.patches) finalAttrs.patches;
});

# packages.traefikImage = pkgs.dockerTools.buildImage {
# name = "traefik";
# tag = "nix";
# copyToRoot=[ pkgs.traefik ];
# config = {
# Cmd = [ "${pkgs.traefik}/bin/traefik" ];
# };

# };
}
);

Expand Down
4 changes: 2 additions & 2 deletions prm-bin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ pkgs.stdenv.mkDerivation rec {
name = "prm";
version="v3.5.0";
src = pkgs.fetchzip {
url = "https://github.com/ldez/prm/releases/download/v3.5.0/prm_${version}_linux_amd64.tar.gz";
sha256="A1cuCtwDMTqYi1kqctOD7JC8zCMnpeRbN1bm/fbSX1Q=";
url = "https://github.com/ldez/prm/releases/download/v3.5.0/prm_v3.5.0_linux_amd64.tar.gz";
sha256="0m2zsbvgvrjn6xdy99974g6br47chg9p4ajrifc3lc83vh52wmq3";
stripRoot=false;
};
phases = ["installPhase" "patchPhase"];
Expand Down

0 comments on commit 9fd3177

Please sign in to comment.