From f566f6744d799b1e189f613df5eaf2ac798d608b Mon Sep 17 00:00:00 2001 From: Astavie Date: Mon, 10 Jul 2023 12:59:44 +0200 Subject: [PATCH] odin: dev-2023-05 -> dev-2023-07 ols: nightly-05-18 -> nightly-07-09 ols should be updated simultaneously as it is updated in tandem with the odin compiler --- pkgs/development/compilers/odin/default.nix | 12 ++++++++---- pkgs/development/tools/ols/default.nix | 6 +++--- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/pkgs/development/compilers/odin/default.nix b/pkgs/development/compilers/odin/default.nix index f53981d21d2e..340c56284f88 100644 --- a/pkgs/development/compilers/odin/default.nix +++ b/pkgs/development/compilers/odin/default.nix @@ -1,7 +1,7 @@ { lib , fetchFromGitHub , llvmPackages_13 -, makeWrapper +, makeBinaryWrapper , libiconv , MacOSX-SDK , which @@ -12,17 +12,17 @@ let inherit (llvmPackages) stdenv; in stdenv.mkDerivation rec { pname = "odin"; - version = "dev-2023-05"; + version = "dev-2023-07"; src = fetchFromGitHub { owner = "odin-lang"; repo = "Odin"; rev = version; - sha256 = "sha256-qEewo2h4dpivJ7D4RxxBZbtrsiMJ7AgqJcucmanbgxY="; + hash = "sha256-ksCK1Qmjbg5ZgFoq0I4cjrWaCxd+UW7f1NLcSjCPMwE="; }; nativeBuildInputs = [ - makeWrapper which + makeBinaryWrapper which ]; buildInputs = lib.optional stdenv.isDarwin libiconv; @@ -47,6 +47,8 @@ in stdenv.mkDerivation rec { ]; installPhase = '' + runHook preInstall + mkdir -p $out/bin cp odin $out/bin/odin @@ -62,6 +64,8 @@ in stdenv.mkDerivation rec { lld ])} \ --set-default ODIN_ROOT $out/share + + runHook postInstall ''; meta = with lib; { diff --git a/pkgs/development/tools/ols/default.nix b/pkgs/development/tools/ols/default.nix index c9b67d0aa6a6..a9e7b25603f1 100644 --- a/pkgs/development/tools/ols/default.nix +++ b/pkgs/development/tools/ols/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation { pname = "ols"; - version = "nightly-2023-05-18"; + version = "nightly-2023-07-09"; src = fetchFromGitHub { owner = "DanielGavin"; repo = "ols"; - rev = "fd136199897d5e5c87f6f1fbfd076ed18e41d7b7"; - hash = "sha256-lRoDSc2bZSuXTam3Q5OOlSD6YAobCFKNRbtQ41Qx5EY="; + rev = "255ad5958026dc3a3116f621eaebd501b8b26a22"; + hash = "sha256-XtlIZToNvmU4GhUJAxuVmKvKwnPebaxjv7jp/AgE/uM="; }; nativeBuildInputs = [