From f42791fa124a825a8b47292410b435fe364048db Mon Sep 17 00:00:00 2001 From: Dalton Luce Date: Sun, 12 Jan 2025 17:56:42 -0500 Subject: [PATCH 1/2] maintainers: add da-luce --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index bb25b9c485b43..def877e3927ac 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4956,6 +4956,12 @@ name = "Dov Alperin"; keys = [ { fingerprint = "4EED 5096 B925 86FA 1101 6673 7F2C 07B9 1B52 BB61"; } ]; }; + da-luce = { + email = "daltonluce42@gmail.com"; + github = "da-luce"; + githubId = 102048662; + name = "Dalton Luce"; + }; damhiya = { name = "SoonWon Moon"; email = "damhiya@gmail.com"; From ae625955d5273594d2b52d029af40899f3b29581 Mon Sep 17 00:00:00 2001 From: Dalton Luce Date: Sun, 12 Jan 2025 17:26:40 -0500 Subject: [PATCH 2/2] astroterm: init at 1.0.4 --- pkgs/by-name/as/astroterm/package.nix | 56 +++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 pkgs/by-name/as/astroterm/package.nix diff --git a/pkgs/by-name/as/astroterm/package.nix b/pkgs/by-name/as/astroterm/package.nix new file mode 100644 index 0000000000000..9ed753ef05ebb --- /dev/null +++ b/pkgs/by-name/as/astroterm/package.nix @@ -0,0 +1,56 @@ +{ + stdenv, + lib, + fetchurl, + fetchFromGitHub, + xxd, + meson, + ninja, + ncurses, + argtable, + versionCheckHook, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "astroterm"; + version = "1.0.4"; + + src = fetchFromGitHub { + owner = "da-luce"; + repo = "astroterm"; + tag = "v${finalAttrs.version}"; + hash = "sha256-CYKW/RAQ3a5238cojbpGfTenMQApfaZOHnQMrZ6LWzA="; + }; + + bsc5File = fetchurl { + url = "https://web.archive.org/web/20231007085824/http://tdc-www.harvard.edu/catalogs/BSC5"; + hash = "sha256-5HHQLq9O7LYcEvh5octkMrqde2ipqMVlSh60KgyMw0A="; + }; + + nativeBuildInputs = [ + meson + ninja + xxd + versionCheckHook + ]; + buildInputs = [ + argtable + ncurses + ]; + + postPatch = '' + mkdir -p data + ln -s ${finalAttrs.bsc5File} data/bsc5 + ''; + + doCheck = true; + + meta = { + description = "Celestial viewer for the terminal, written in C"; + homepage = "https://github.com/da-luce/astroterm/"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.da-luce ]; + mainProgram = "astroterm"; + platforms = lib.platforms.unix; + }; +})