2020-08-29 16:34:43 +02:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, atk
|
|
|
|
, cairo
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, openssl
|
|
|
|
, pango
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "noaa-apt";
|
2020-10-14 18:56:15 +02:00
|
|
|
version = "1.3.0";
|
2020-08-29 16:34:43 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martinber";
|
|
|
|
repo = "noaa-apt";
|
|
|
|
rev = "v${version}";
|
2020-10-14 18:56:15 +02:00
|
|
|
sha256 = "0fmbg6lw7lmm402hzddpzgi7y9mc6kic14x8rif7fampk20mv3ms";
|
2020-08-29 16:34:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
openssl
|
|
|
|
pango
|
|
|
|
];
|
|
|
|
|
2020-10-14 18:56:15 +02:00
|
|
|
cargoSha256 = "0w4rbbz8lsh31xkgibzndiic47690nfcjrn1411dskf7ali6djy8";
|
2020-08-29 16:34:43 +02: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
|
|
|
|
install -Dm644 -t $out/share/icons/hicolor/48x48/apps $src/debian/noaa-apt.png
|
|
|
|
install -Dm644 -t $out/share/icons/hicolor/scalable/apps $src/debian/noaa-apt.svg
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "NOAA APT image decoder";
|
2020-10-23 15:05:17 +02:00
|
|
|
homepage = "https://noaa-apt.mbernardi.com.ar/";
|
2020-08-29 16:34:43 +02:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ trepetti ];
|
2020-10-14 18:34:31 +02:00
|
|
|
platforms = platforms.all;
|
2020-08-29 16:34:43 +02:00
|
|
|
changelog = "https://github.com/martinber/noaa-apt/releases/tag/v${version}";
|
|
|
|
};
|
|
|
|
}
|