2024-08-25 14:14:12 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
vala,
|
|
|
|
glib,
|
|
|
|
gtk4,
|
|
|
|
libadwaita,
|
|
|
|
wrapGAppsHook4,
|
|
|
|
appstream-glib,
|
|
|
|
desktop-file-utils,
|
2022-06-08 12:11:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dippi";
|
2024-08-25 14:14:12 +00:00
|
|
|
version = "4.1.0";
|
2022-06-08 12:11:06 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cassidyjames";
|
|
|
|
repo = "dippi";
|
|
|
|
rev = version;
|
2024-08-25 14:14:12 +00:00
|
|
|
hash = "sha256-BYI3WqMDxzERlqtq7ISQ+U1FTrpKh5OJBMo/AsdmdlQ=";
|
2022-06-08 12:11:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
vala
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
];
|
|
|
|
|
2024-08-25 14:14:12 +00:00
|
|
|
meta = {
|
2022-06-08 12:11:06 +00:00
|
|
|
description = "Calculate display info like DPI and aspect ratio";
|
|
|
|
homepage = "https://github.com/cassidyjames/dippi";
|
2024-08-25 14:14:12 +00:00
|
|
|
mainProgram = "com.github.cassidyjames.dippi";
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ zendo ];
|
2022-06-08 12:11:06 +00:00
|
|
|
};
|
|
|
|
}
|