nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 402cbaa9fa7f066dd4caf87a78387d45c2bb5a8c
parent c2ae58473374115b33337e28867126d06e901ee7
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat, 19 Mar 2022 00:29:41 +0300

Add gps-sdr-sim

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/gnss/gps-sdr-sim/default.nix | 27+++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -195,6 +195,7 @@ lib.makeScope newScope ( ### GNSS + gps-sdr-sim = callPackage ./gnss/gps-sdr-sim { }; gpstk = callPackage ./gnss/gpstk { }; rtklib = callPackage ./gnss/rtklib { }; visualgps = libsForQt5.callPackage ./gnss/visualgps { }; diff --git a/pkgs/gnss/gps-sdr-sim/default.nix b/pkgs/gnss/gps-sdr-sim/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "gps-sdr-sim"; + version = "2022-01-14"; + + src = fetchFromGitHub { + owner = "osqzss"; + repo = pname; + rev = "becf3a33e9d1ffa445e5341137bdf31006072650"; + hash = "sha256-Z+fGsqQUzTCKgbbH8B4qttHFnEfgUulxuttINHJT6IA="; + }; + + makeFlags = [ "CC:=$(CC)" ]; + + installPhase = '' + install -Dm755 gps-sdr-sim -t $out/bin + ''; + + meta = with lib; { + description = "Software-Defined GPS Signal Simulator"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}