rpi-imager: set meta.homepage to something useful, don't use finalAttrs.pname in src

If we would overwrite pname then the FOD would be broken and the github repo doesn't chane if we would append some variant name to pname.

meta.homepage was before a not very helpful download page which didn't even contain the version number of the program.
This commit is contained in:
Sandro 2023-12-27 23:47:51 +01:00 committed by Sandro Jäckel
parent 5f64a12a72
commit 59fcbd9e2a
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "raspberrypi";
repo = finalAttrs.pname;
repo = "rpi-imager";
rev = "refs/tags/v${finalAttrs.version}";
sha256 = "sha256-ZuS/fhPpVlLSdaD+t+qIw6fdEbi7c82X+BxcgWlPntg=";
};
@ -72,9 +72,8 @@ stdenv.mkDerivation (finalAttrs: {
meta = with lib; {
description = "Raspberry Pi Imaging Utility";
homepage = "https://www.raspberrypi.com/software/";
homepage = "https://github.com/raspberrypi/rpi-imager/";
changelog = "https://github.com/raspberrypi/rpi-imager/releases/tag/v${finalAttrs.version}";
downloadPage = "https://github.com/raspberrypi/rpi-imager/";
license = licenses.asl20;
mainProgram = "rpi-imager";
maintainers = with maintainers; [ ymarkus anthonyroussel ];