megapixels: cleanup

- Use `finalAttrs`
- Enable `strictDeps
- Set `meta.mainProgram`
This commit is contained in:
Luflosi 2024-02-18 10:09:44 +01:00
parent 5c8b72fd75
commit 0494985d0b
No known key found for this signature in database
GPG Key ID: 743C5DD6900A1FF0

View File

@ -27,14 +27,14 @@ let
++ optionals jpgSupport [ graphicsmagick exiftool ]
);
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "megapixels";
version = "1.7.0";
src = fetchFromGitLab {
owner = "postmarketOS";
repo = "megapixels";
rev = version;
rev = finalAttrs.version;
hash = "sha256-ejTCYZMDkqz8P3vroq8XAl+pUGgcS56cm3tzOTE3rfc=";
};
@ -64,12 +64,15 @@ stdenv.mkDerivation rec {
)
'';
strictDeps = true;
meta = with lib; {
description = "GTK4 camera application that knows how to deal with the media request api";
homepage = "https://gitlab.com/postmarketOS/megapixels";
changelog = "https://gitlab.com/postmarketOS/megapixels/-/tags/${version}";
changelog = "https://gitlab.com/postmarketOS/megapixels/-/tags/${finalAttrs.version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ dotlambda Luflosi ];
platforms = platforms.linux;
mainProgram = "megapixels";
};
}
})