summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Winter <git@alexwinter.net>2022-04-17 13:54:46 +0200
committerMatthew Leach <matthew@mattleach.net>2022-09-11 12:48:26 +0100
commit91aa25cc04b521422df261cf2c4835d839b89e49 (patch)
tree61f7674919af83233ba56f445a0334db8a32bcbc
parent5de43b65386124be85314ba9464dc4f4f51075d9 (diff)
downloadnixpkgs-91aa25cc04b521422df261cf2c4835d839b89e49.tar
nixpkgs-91aa25cc04b521422df261cf2c4835d839b89e49.tar.gz
nixpkgs-91aa25cc04b521422df261cf2c4835d839b89e49.tar.bz2
nixpkgs-91aa25cc04b521422df261cf2c4835d839b89e49.tar.lz
nixpkgs-91aa25cc04b521422df261cf2c4835d839b89e49.tar.xz
nixpkgs-91aa25cc04b521422df261cf2c4835d839b89e49.tar.zst
nixpkgs-91aa25cc04b521422df261cf2c4835d839b89e49.zip
sgp4: init at 20210111
-rw-r--r--pkgs/development/libraries/sgp4/default.nix23
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/libraries/sgp4/default.nix b/pkgs/development/libraries/sgp4/default.nix
new file mode 100644
index 00000000000..98c62f9cd34
--- /dev/null
+++ b/pkgs/development/libraries/sgp4/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchFromGitHub, cmake, pkg-config }:
+
+stdenv.mkDerivation {
+  pname = "sgp4";
+  version = "unstable-2021-01-11";
+
+  src = fetchFromGitHub {
+    owner = "dnwrnr";
+    repo = "sgp4";
+    rev = "ca9d4d97af4ee62461de6f13e0c85d1dc6000040";
+    sha256 = "sha256-56It/71R10U+Hnhw2tC16e5fZdyfQ8DLx6LVq65Rjvc=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  meta = with lib; {
+    description = "Simplified perturbations models library";
+    homepage = "https://github.com/dnwrnr/sgp4";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ alexwinter ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index ad4e9fa64b3..121a1ac8b29 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -4610,6 +4610,8 @@ with pkgs;
 
   sfz = callPackage ../tools/misc/sfz { };
 
+  sgp4 = callPackage ../development/libraries/sgp4 {};
+
   shab = callPackage ../tools/text/shab { };
 
   sheldon = callPackage ../tools/misc/sheldon { };