2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, atk
|
|
|
|
, cairo
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, openssl
|
|
|
|
, pango
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "noaa-apt";
|
|
|
|
version = "1.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martinber";
|
|
|
|
repo = "noaa-apt";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0fqki4a9c54rixdz5bpswvn433f9saw6yazgw4av3xdd7g2fdvvj";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
atk
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
openssl
|
|
|
|
pango
|
|
|
|
];
|
|
|
|
|
|
|
|
cargoSha256 = "1pzcq31inazmc9cz31fspzqkp0lpkjid8ai3g17sin1pfzby5jlh";
|
|
|
|
|
|
|
|
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-19 00:13:06 +00:00
|
|
|
description = "NOAA APT image decoder";
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "http://noaa-apt.mbernardi.com.ar/";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ trepetti ];
|
|
|
|
changelog = "https://github.com/martinber/noaa-apt/releases/tag/v${version}";
|
|
|
|
};
|
|
|
|
}
|