nixpkgs/pkgs/applications/radio/noaa-apt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.5 KiB
Nix
Raw Normal View History

2020-08-29 14:34:43 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, atk
, cairo
, gdk-pixbuf
, glib
, gtk3
, openssl
, pango
}:
rustPlatform.buildRustPackage rec {
pname = "noaa-apt";
2023-05-06 11:08:05 +00:00
version = "1.4.0";
2020-08-29 14:34:43 +00:00
src = fetchFromGitHub {
owner = "martinber";
repo = "noaa-apt";
rev = "v${version}";
2023-05-06 11:08:05 +00:00
sha256 = "sha256-wmjglF2+BFmlTfvqt90nbCxuldN8AEFXj7y9tgTvA2Y=";
2020-08-29 14:34:43 +00:00
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
atk
cairo
gdk-pixbuf
glib
gtk3
openssl
pango
];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"satellite-0.1.0" = "sha256-R5Tz4MpRnAEnMmkx/LhWPmwRIKpnCLIB4VxApMTBn78=";
};
};
2020-08-29 14:34:43 +00:00
preBuild = ''
# Used by macro pointing to resource location at compile time.
export NOAA_APT_RES_DIR=$out/share/noaa-apt
'';
postInstall = ''
# Resources.
mkdir -p $out/share/noaa-apt
cp -R $src/res/* $out/share/noaa-apt/
# Desktop icon.
install -Dm644 -t $out/share/applications $src/debian/ar.com.mbernardi.noaa-apt.desktop
2023-05-06 11:08:05 +00:00
install -Dm644 -t $out/share/icons/hicolor/48x48/apps $src/debian/ar.com.mbernardi.noaa-apt.png
install -Dm644 -t $out/share/icons/hicolor/scalable/apps $src/debian/ar.com.mbernardi.noaa-apt.svg
2020-08-29 14:34:43 +00:00
'';
meta = with lib; {
description = "NOAA APT image decoder";
homepage = "https://noaa-apt.mbernardi.com.ar/";
2020-08-29 14:34:43 +00:00
license = licenses.gpl3Only;
2023-05-06 11:08:05 +00:00
maintainers = with maintainers; [ trepetti tmarkus ];
2020-10-14 16:34:31 +00:00
platforms = platforms.all;
2020-08-29 14:34:43 +00:00
changelog = "https://github.com/martinber/noaa-apt/releases/tag/v${version}";
};
}