Skip to content

Commit

Permalink
astroterm: init at 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
da-luce committed Jan 14, 2025
1 parent f42791f commit 8e78981
Showing 1 changed file with 56 additions and 0 deletions.
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
cp ${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 8e78981

Please sign in to comment.