Unverified Commit 8e66dc69 authored by Guy Chronister's avatar Guy Chronister
Browse files

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.
parent 2174f07e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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=";
    })
  ];