dippi: init at 4.0.0
This commit is contained in:
parent
30ac7a8854
commit
684782e874
2 changed files with 66 additions and 0 deletions
64
pkgs/tools/graphics/dippi/default.nix
Normal file
64
pkgs/tools/graphics/dippi/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, python3
|
||||
, vala
|
||||
, glib
|
||||
, gtk3
|
||||
, gtk4
|
||||
, libadwaita
|
||||
, wrapGAppsHook4
|
||||
, appstream-glib
|
||||
, desktop-file-utils
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dippi";
|
||||
version = "4.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cassidyjames";
|
||||
repo = "dippi";
|
||||
rev = version;
|
||||
hash = "sha256-6eZRz3/LaZwy8DzC/8q9Jrebcx86hHri6KBgThU7Dhw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
vala
|
||||
pkg-config
|
||||
wrapGAppsHook4
|
||||
appstream-glib
|
||||
desktop-file-utils
|
||||
# For post_install.py
|
||||
python3
|
||||
glib
|
||||
gtk3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk4
|
||||
libadwaita
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs build-aux/meson/post_install.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
ln -s $out/bin/com.github.cassidyjames.dippi $out/bin/dippi
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Calculate display info like DPI and aspect ratio";
|
||||
homepage = "https://github.com/cassidyjames/dippi";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ zendo ];
|
||||
};
|
||||
}
|
|
@ -549,6 +549,8 @@ with pkgs;
|
|||
|
||||
umoci = callPackage ../applications/virtualization/umoci {};
|
||||
|
||||
dippi = callPackage ../tools/graphics/dippi {};
|
||||
|
||||
dispad = callPackage ../tools/X11/dispad { };
|
||||
|
||||
dupeguru = callPackage ../applications/misc/dupeguru { };
|
||||
|
|
Loading…
Reference in a new issue