Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 gtk3,
7 curl,
8 libepoxy,
9 meson,
10 ninja,
11 wrapGAppsHook3,
12 nix-update-script,
13}:
14
15stdenv.mkDerivation (finalAttrs: {
16 pname = "orbvis";
17 version = "0.3.2";
18
19 src = fetchFromGitHub {
20 owner = "wojciech-graj";
21 repo = "orbvis";
22 tag = "v${finalAttrs.version}";
23 hash = "sha256-kPbRhm+HymY6DuR4JgE6qTTYKGIqVxvwxtveu7dOOO0=";
24 };
25
26 nativeBuildInputs = [
27 meson
28 ninja
29 pkg-config
30 wrapGAppsHook3
31 ];
32
33 buildInputs = [
34 gtk3
35 curl
36 libepoxy
37 ];
38
39 postInstall = ''
40 install -Dm444 $src/flatpak/io.github.wojciech_graj.OrbVis.desktop -t $out/share/applications
41 install -Dm444 $src/flatpak/128x128/io.github.wojciech_graj.OrbVis.png -t $out/share/icons/hicolor/128x128/apps
42 '';
43
44 passthru.updateScript = nix-update-script { };
45
46 meta = {
47 description = "View and propagate the full CelesTrak satellite catalog in realtime";
48 homepage = "https://github.com/wojciech-graj/OrbVis";
49 license = lib.licenses.gpl2;
50 maintainers = with lib.maintainers; [ thtrf ];
51 mainProgram = "orbvis";
52 platforms = lib.platforms.linux;
53 };
54})