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.
This commit is contained in:
@@ -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=";
|
||||
})
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user