From 80dd44759c8dcb85af4f7358d63219fa808195ed Mon Sep 17 00:00:00 2001 From: Coutinho de Souza Date: Tue, 20 Feb 2024 12:33:13 +0000 Subject: [PATCH] qbe: 1.1 -> 1.2 (#289276) Co-authored-by: Sandro --- pkgs/development/compilers/qbe/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/development/compilers/qbe/default.nix b/pkgs/development/compilers/qbe/default.nix index ee075ec04056..d9694c9b4bce 100644 --- a/pkgs/development/compilers/qbe/default.nix +++ b/pkgs/development/compilers/qbe/default.nix @@ -1,15 +1,15 @@ -{ lib, stdenv +{ lib +, stdenv , fetchzip , callPackage }: - -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "qbe"; - version = "1.1"; + version = "1.2"; src = fetchzip { - url = "https://c9x.me/compile/release/qbe-${version}.tar.xz"; - sha256 = "sha256-yFZ3cpp7eLjf7ythKFTY1YEJYyfeg2en4/D8+9oM1B4="; + url = "https://c9x.me/compile/release/qbe-${finalAttrs.version}.tar.xz"; + hash = "sha256-UgtJnZF/YtD54OBy9HzGRAEHx5tC9Wo2YcUidGwrv+s="; }; makeFlags = [ "PREFIX=$(out)" ]; @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { doCheck = true; passthru = { - tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix {}; + tests.can-run-hello-world = callPackage ./test-can-run-hello-world.nix { }; }; meta = with lib; { @@ -26,5 +26,6 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ fgaz ]; license = licenses.mit; platforms = platforms.all; + mainProgram = "qbe"; }; -} +})