lgtrombetta-compass: init at 0.4.0
it doesn't cross compile yet, because of its dependencies (matplotlib -> contourpy)
This commit is contained in:
89
pkgs/additional/lgtrombetta-compass/default.nix
Normal file
89
pkgs/additional/lgtrombetta-compass/default.nix
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
lib,
|
||||
desktop-file-utils,
|
||||
fetchFromGitLab,
|
||||
gettext,
|
||||
glib,
|
||||
gtk3,
|
||||
libhandy,
|
||||
meson,
|
||||
ninja,
|
||||
python3,
|
||||
stdenv,
|
||||
wrapGAppsHook3,
|
||||
}: stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "lgtrombetta-compass";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "lgtrombetta";
|
||||
repo = "compass";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-NXy9JihGwpDaZmNUNUAOYfqQTWQM4dXtTQ/4Ukgi11U=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace data/meson.build \
|
||||
--replace-fail "install_dir: '/lib/udev/rules.d'" "install_dir: join_paths(get_option('datadir'), 'lib/udev/rules.d')"
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs --build build-aux/meson/postinstall.py
|
||||
# patch PYTHONPATH for pythonImportsCheck to work:
|
||||
# export PYTHONPATH=$out/share/compass:$PYTHONPATH
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapPythonPrograms
|
||||
'';
|
||||
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
$out/bin/compass --help | grep -q compass
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
|
||||
nativeBuildInputs = [
|
||||
desktop-file-utils # for update-desktop-database
|
||||
gettext # for msgfmt
|
||||
glib # for glib-compile-resources
|
||||
gtk3 # for gtk-update-icon-cache
|
||||
meson
|
||||
ninja
|
||||
python3
|
||||
python3.pkgs.wrapPython
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
python3
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
glib # for gio
|
||||
gtk3
|
||||
libhandy
|
||||
python3.pkgs.matplotlib
|
||||
python3.pkgs.numpy
|
||||
python3.pkgs.pandas
|
||||
python3.pkgs.pygobject3
|
||||
python3.pkgs.pyxdg
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"compass"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
# strictDeps = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://gitlab.com/lgtrombetta/compass";
|
||||
description = "a simple GTK3 compass app for Mobile Linux";
|
||||
maintainers = with maintainers; [ colinsane ];
|
||||
};
|
||||
})
|
@@ -50,6 +50,7 @@ let
|
||||
ldd-aarch64 = callPackage ./additional/ldd-aarch64 { };
|
||||
lemoa = callPackage ./additional/lemoa { };
|
||||
lemmy-lemonade = callPackage ./additional/lemonade { }; # XXX: nixpkgs already has a `lemonade` pkg
|
||||
lgtrombetta-compass = callPackage ./additional/lgtrombetta-compass { };
|
||||
libdng = callPackage ./additional/libdng { };
|
||||
libmegapixels = callPackage ./additional/libmegapixels { };
|
||||
lightdm-mobile-greeter = callPackage ./additional/lightdm-mobile-greeter { };
|
||||
|
Reference in New Issue
Block a user