mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 04:12:44 +03:00
openambit: init at 0.5
This commit is contained in:
parent
f9f84cf0d6
commit
ee7e23fa8a
48
pkgs/applications/misc/openambit/default.nix
Normal file
48
pkgs/applications/misc/openambit/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ cmake
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, libusb1
|
||||
, mkDerivation
|
||||
, python3
|
||||
, qtbase
|
||||
, qttools
|
||||
, udev
|
||||
, zlib
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "openambit";
|
||||
version = "0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openambitproject";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1074kvkamwnlkwdajsw1799wddcfkjh2ay6l842r0s4cvrxrai85";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake qttools ];
|
||||
buildInputs = [ libusb1 python3 qtbase udev zlib ];
|
||||
|
||||
cmakeFlags = [ "-DCMAKE_INSTALL_UDEVRULESDIR=${placeholder "out"}/lib/udev/rules.d" ];
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
$out/bin/openambit --version
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -m755 -D $src/tools/openambit2gpx.py $out/bin/openambit2gpx
|
||||
|
||||
mv -v $out/lib/udev/rules.d/libambit.rules \
|
||||
$out/lib/udev/rules.d/20-libambit.rules
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Helps fetch data from Suunto Ambit GPS watches";
|
||||
homepage = "https://github.com/openambitproject/openambit/";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ rycee ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -22251,6 +22251,8 @@ in
|
||||
|
||||
inherit (python3Packages.callPackage ../applications/networking/onionshare { }) onionshare onionshare-gui;
|
||||
|
||||
openambit = qt5.callPackage ../applications/misc/openambit { };
|
||||
|
||||
openbox = callPackage ../applications/window-managers/openbox { };
|
||||
|
||||
openbox-menu = callPackage ../applications/misc/openbox-menu {
|
||||
|
Loading…
Reference in New Issue
Block a user