From e28cb4fb57644b9829d15c6b7d4b05aae4e8d618 Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Sat, 17 Feb 2024 18:14:33 -0300 Subject: [PATCH] harec: unstable-2024-02-03 -> 0.24.0 Drop usage of pinned qbe in favor of qbe-1.2. --- pkgs/by-name/ha/harec/package.nix | 29 ++++++++--------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/pkgs/by-name/ha/harec/package.nix b/pkgs/by-name/ha/harec/package.nix index e870e9ebce33..11470c7f828f 100644 --- a/pkgs/by-name/ha/harec/package.nix +++ b/pkgs/by-name/ha/harec/package.nix @@ -2,46 +2,35 @@ , stdenv , fetchFromSourcehut , qbe -, fetchgit +, gitUpdater }: let - # harec needs the dbgfile and dbgloc features implemented up to this commit. - # This can be dropped once 1.2 is released. For a possible release date, see: - # https://lists.sr.ht/~mpu/qbe/%3CZPkmHE9KLohoEohE%40cloudsdale.the-delta.net.eu.org%3E - qbe' = qbe.overrideAttrs (_old: { - version = "1.1-unstable-2024-01-12"; - src = fetchgit { - url = "git://c9x.me/qbe.git"; - rev = "85287081c4a25785dec1ec48c488a5879b3c37ac"; - hash = "sha256-7bVbxUU/HXJXLtAxhoK0URmPtjGwMSZrPkx8WKl52Mg="; - }; - }); - platform = lib.toLower stdenv.hostPlatform.uname.system; arch = stdenv.hostPlatform.uname.processor; in stdenv.mkDerivation (finalAttrs: { pname = "harec"; - version = "unstable-2024-02-03"; + version = "0.24.0"; src = fetchFromSourcehut { owner = "~sircmpwn"; repo = "harec"; - rev = "09cb18990266eef814917d8211d38b82e0896532"; - hash = "sha256-cxWRqGipoDATN1+V9s9S2WJ3sLMcTqIJmhP5XTld3AU="; + rev = finalAttrs.version; + hash = "sha256-NOfoCT/wKZ3CXYzXZq7plXcun+MXQicfzBOmetXN7Qs="; }; nativeBuildInputs = [ - qbe' + qbe ]; buildInputs = [ - qbe' + qbe ]; makeFlags = [ "PREFIX=${builtins.placeholder "out"}" "ARCH=${arch}" + "VERSION=${finalAttrs.version}-nixpkgs" ]; strictDeps = true; @@ -55,9 +44,7 @@ stdenv.mkDerivation (finalAttrs: { ''; passthru = { - # We create this attribute so that the `hare` package can access the - # overwritten `qbe`. - qbeUnstable = qbe'; + updateScript = gitUpdater { }; }; meta = {