diff options
author | Philip Taron <philip.taron@gmail.com> | 2023-11-29 22:46:08 -0800 |
---|---|---|
committer | Philip Taron <philip.taron@gmail.com> | 2023-11-30 08:13:04 -0800 |
commit | 6b20d38e0126b5fbc95fb34b9d7c9006e415cf2d (patch) | |
tree | 8f3d07f2576d0a07d66fb3d46674956353f56df3 /pkgs/by-name/qr | |
parent | 9a863b80448949fec326981e783f8d9b78994a68 (diff) |
qrtool: 0.8.4 -> 0.8.5
I added `asciidoctor` to the nativeBuildInputs as I saw warnings that it wasn't found as I built the tool. I also stopped using `rec` syntax as the nixpkgs manual recommends [against it](https://nixos.org/manual/nixpkgs/unstable/#mkderivation-recursive-attributes). However, `rustPlatform.buildRustPackage` doesn't allow the use of `mkDerivation (finalAttrs: {` form, so it's just a simple `let` binding here.
Diffstat (limited to 'pkgs/by-name/qr')
-rw-r--r-- | pkgs/by-name/qr/qrtool/package.nix | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/pkgs/by-name/qr/qrtool/package.nix b/pkgs/by-name/qr/qrtool/package.nix index 32cf7960825b3..182bd1a4ea57a 100644 --- a/pkgs/by-name/qr/qrtool/package.nix +++ b/pkgs/by-name/qr/qrtool/package.nix @@ -2,27 +2,31 @@ , stdenv , fetchFromGitHub , rustPlatform -}: - -rustPlatform.buildRustPackage rec { - pname = "qrtool"; - version = "0.8.4"; +, asciidoctor +}: let + name = "qrtool"; + version = "0.8.5"; +in rustPlatform.buildRustPackage { + pname = name; + inherit version; src = fetchFromGitHub { owner = "sorairolake"; - repo = "qrtool"; + repo = name; rev = "v${version}"; - sha256 = "sha256-FoWUGhNfVILpYxmsnSzRIM1+R9/xFxCF7W1sdiHaAiA="; + sha256 = "sha256-jrvNZGO1VIDo6Mz3NKda1C7qZUtF9T00CAFK8yoGWjc="; }; - cargoSha256 = "sha256-mtejnHCkN2krgFAneyyBpvbv5PZO3GigM2DJqrbHim4="; + cargoSha256 = "sha256-JOnvlabCr3fZsIIRc2qTjf50Ga83zL8Aoo2sqzMBs7g="; + + nativeBuildInputs = [ asciidoctor ]; meta = with lib; { maintainers = with maintainers; [ philiptaron ]; description = "An utility for encoding or decoding QR code"; license = licenses.asl20; - homepage = "https://sorairolake.github.io/qrtool/book/index.html"; - changelog = "https://sorairolake.github.io/qrtool/book/changelog.html"; - mainProgram = "qrtool"; + homepage = "https://sorairolake.github.io/${name}/book/index.html"; + changelog = "https://sorairolake.github.io/${name}/book/changelog.html"; + mainProgram = name; }; } |