Skip to content

Commit

Permalink
astroterm: init at 1.0.4, maintainers: add da-luce (#373316)
Browse files Browse the repository at this point in the history
  • Loading branch information
sikmir authored Jan 15, 2025
2 parents 33b6eda + ae62595 commit 2b6ea7d
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4962,6 +4962,12 @@
name = "Dov Alperin";
keys = [ { fingerprint = "4EED 5096 B925 86FA 1101 6673 7F2C 07B9 1B52 BB61"; } ];
};
da-luce = {
email = "[email protected]";
github = "da-luce";
githubId = 102048662;
name = "Dalton Luce";
};
damhiya = {
name = "SoonWon Moon";
email = "[email protected]";
Expand Down
56 changes: 56 additions & 0 deletions pkgs/by-name/as/astroterm/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
})

0 comments on commit 2b6ea7d

Please sign in to comment.