From 6ad564a324d33163e41fcc8d5aeff42b9c14b260 Mon Sep 17 00:00:00 2001 From: aleksana Date: Sat, 7 Dec 2024 21:49:15 +0800 Subject: [PATCH] satellite: refactor --- pkgs/by-name/sa/satellite/package.nix | 34 ++++++++++++++------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/sa/satellite/package.nix b/pkgs/by-name/sa/satellite/package.nix index 077c4bfef8ca..959204a338e3 100644 --- a/pkgs/by-name/sa/satellite/package.nix +++ b/pkgs/by-name/sa/satellite/package.nix @@ -1,11 +1,12 @@ -{ lib -, python3 -, fetchFromGitea -, gobject-introspection -, gtk3 -, libhandy -, modemmanager -, wrapGAppsHook3 +{ + lib, + python3, + fetchFromGitea, + gobject-introspection, + gtk3, + libhandy, + modemmanager, + wrapGAppsHook3, }: python3.pkgs.buildPythonApplication rec { @@ -15,26 +16,27 @@ python3.pkgs.buildPythonApplication rec { pyproject = true; src = fetchFromGitea { - domain ="codeberg.org"; + domain = "codeberg.org"; owner = "tpikonen"; repo = "satellite"; - rev = version; + tag = version; hash = "sha256-61HCk0W07w0LybSVB4APvQX4PMSsqH9mKGzc+Rmno90="; }; nativeBuildInputs = [ gobject-introspection - python3.pkgs.setuptools wrapGAppsHook3 ]; + build-system = with python3.pkgs; [ setuptools ]; + buildInputs = [ gtk3 libhandy modemmanager ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ gpxpy pygobject3 pynmea2 @@ -42,16 +44,16 @@ python3.pkgs.buildPythonApplication rec { strictDeps = true; - meta = with lib; { + meta = { description = "Program for showing navigation satellite data"; longDescription = '' Satellite is an adaptive GTK3 / libhandy application which displays global navigation satellite system (GNSS: GPS et al.) data obtained from ModemManager or gnss-share. It can also save your position to a GPX-file. ''; homepage = "https://codeberg.org/tpikonen/satellite"; - license = licenses.gpl3Only; + license = lib.licenses.gpl3Only; mainProgram = "satellite"; - platforms = platforms.linux; - maintainers = with maintainers; [ Luflosi ]; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ Luflosi ]; }; }