Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions pkgs/by-name/ar/arftracksat/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
stdenv,
fetchFromGitHub,
lib,
pkgs,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pkgs,
cmake,
mesa,
tree,
curl,
curlpp,
nlohmann_json,
freeglut,
libGL,
mesa_glu,
glm,

}:
stdenv.mkDerivation (finalAttrs: {
pname = "arftracksat";
version = "1.0";
src = fetchFromGitHub {
owner = "arf20";
repo = "arftracksat";
rev = "69d3c3b21c5000aa308663bc51eae2dc81b6b885";
sha256 = "sha256-RKIT3WOqCHgeeW6gNZxe/JDTVMf5NZnl4QoQqLJUKUs=";
};

nativeBuildInputs = with pkgs; [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nativeBuildInputs = with pkgs; [
nativeBuildInputs = [

cmake
mesa
tree
];

buildInputs = with pkgs; [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
buildInputs = with pkgs; [
buildInputs = [

curl
curlpp
nlohmann_json
freeglut
libGL
mesa_glu
glm
];

# Patch share location
patchPhase = ''
runHook prePatch

path=${placeholder "out"}
sed -i "s,/usr/local,$path," src/main.cpp
sed -i "s,/usr/local,$path," config.json

runHook postPatch
'';

installPhase = ''
runHook preInstall

install -D -m 0555 arftracksat $out/bin/arftracksat
install -D ../config.json $out/etc/arftracksat/config.json
install -d $out/share/arftracksat/
install -D ../assets/* $out/share/arftracksat/

runHook postInstall
'';

meta = {
description = "Graphical satellite tracking software for Linux";
platforms = lib.platforms.linux;
homepage = "https://github.com/arf20/arftracksat";
license = lib.licenses.free; # See https://github.com/arf20/arftracksat/issues/40
maintainers = with lib.maintainers; [ mabster314 ];
mainProgram = "arftracksat";
};
})
Loading