astroterm: init at 1.0.4, maintainers: add da-luce (#373316)
This commit is contained in:
@@ -4962,6 +4962,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";
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user