qrencode: update src url, use autoreconfHook
The source tar is no more available at https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz E.g. $ curl -I 'https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz' HTTP/1.1 404 Not Found Date: Sat, 17 May 2025 07:13:20 GMT Server: Apache/2.4.62 (Debian) Strict-Transport-Security: max-age=31536000 Content-Type: text/html; charset=iso-8859- However, we can download it from the official repository on GitHub as mentioned in the project's home page[1]. To make the package build, we use autoreconfHook to mimick the repo's `autogen.sh` because the GitHub repo does not contain the configure script as mentioned in the project's README[2]: > If there is no "configure" script in the source code directory, run > "autogen.sh" at first to generate it - this is mandatory if you downloaded > the source from GitHub. [1] https://web.archive.org/web/20250413215821/https://fukuchi.org/en/works/qrencode/ [2] https://github.com/fukuchi/libqrencode/blob/50b3e5725cafccfde038c0833cdaa5b1c28491e2/README.md#compile--install
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
SDL2,
|
||||
libpng,
|
||||
libiconv,
|
||||
autoreconfHook,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: rec {
|
||||
@@ -19,12 +20,17 @@ stdenv.mkDerivation (finalAttrs: rec {
|
||||
"dev"
|
||||
];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz";
|
||||
sha256 = "sha256-2kSO1PUqumvLDNSMrA3VG4aSvMxM0SdDFAL8pvgXHo4=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "fukuchi";
|
||||
repo = "libqrencode";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-nbrmg9SqCqMrLE7WCfNEzMV/eS9UVCKCrjBrGMzAsLk";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libiconv
|
||||
|
||||
Reference in New Issue
Block a user