Files
nixpkgs/pkgs/by-name/as/astroterm/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchurl,
fetchFromGitHub,
xxd,
meson,
ninja,
ncurses,
argtable,
versionCheckHook,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "astroterm";
version = "1.0.9";
src = fetchFromGitHub {
owner = "da-luce";
repo = "astroterm";
tag = "v${finalAttrs.version}";
hash = "sha256-3UXFB4NNKn2w1dYlQzhFyxWwa7/1qkCXPNdBqHK+eQ8=";
};
bsc5File = fetchurl {
url = "https://web.archive.org/web/20231007085824/http://tdc-www.harvard.edu/catalogs/BSC5";
hash = "sha256-5HHQLq9O7LYcEvh5octkMrqde2ipqMVlSh60KgyMw0A=";
};
nativeBuildInputs = [
meson
ninja
xxd
];
buildInputs = [
argtable
ncurses
];
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
postPatch = ''
mkdir -p data
ln -s ${finalAttrs.bsc5File} data/bsc5
'';
doCheck = true;
passthru.updateScript = nix-update-script { };
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;
};
})