From 8e66dc69206da44436e9cd3c04af81fd47946125 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Sun, 14 Sep 2025 15:02:08 +0000 Subject: [PATCH] barcode: use finalAttrs, update fetch args, fully qualify lib attrs in meta Switch to finalAttrs form, replace pname/version interpolation with finalAttrs.version, update to hash attr, and replace broad `with lib;` with explicit lib-qualified attributes. --- pkgs/by-name/ba/barcode/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ba/barcode/package.nix b/pkgs/by-name/ba/barcode/package.nix index f58b710140df..fcd810276487 100644 --- a/pkgs/by-name/ba/barcode/package.nix +++ b/pkgs/by-name/ba/barcode/package.nix @@ -10,14 +10,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "barcode"; src = fetchurl { url = "mirror://gnu/barcode/barcode-${finalAttrs.version}.tar.xz"; - sha256 = "1indapql5fjz0bysyc88cmc54y8phqrbi7c76p71fgjp45jcyzp8"; + hash = "sha256-6H7PZCFXPhfONYeduDKGF3lSWGUIMa/9Al+6QvFVzcY="; }; patches = [ # Pull upstream patch for -fno-common toolchains. (fetchpatch { name = "fno-common.patch"; url = "http://git.savannah.gnu.org/cgit/barcode.git/patch/?id=4654f68706a459c9602d9932b56a56e8930f7d53"; - sha256 = "15kclzcwlh0ymr7m48vc0m8z98q0wf4xbfcky4g1y8yvvpvvrfgc"; + hash = "sha256-7Lm8993bIx8e8ZO51YnjAKP0UQVsI1JPrh5AytmnbJY="; }) ];