mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, atk
|
|
, cairo
|
|
, gdk-pixbuf
|
|
, glib
|
|
, gtk3
|
|
, openssl
|
|
, pango
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "noaa-apt";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "martinber";
|
|
repo = "noaa-apt";
|
|
rev = "v${version}";
|
|
sha256 = "0fmbg6lw7lmm402hzddpzgi7y9mc6kic14x8rif7fampk20mv3ms";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
atk
|
|
cairo
|
|
gdk-pixbuf
|
|
glib
|
|
gtk3
|
|
openssl
|
|
pango
|
|
];
|
|
|
|
cargoSha256 = "167q9w45lh05l27cdssg8sfz3qfskfaxayzjy6q1cj50jrn0gq13";
|
|
|
|
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; {
|
|
description = "NOAA APT image decoder";
|
|
homepage = "https://noaa-apt.mbernardi.com.ar/";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ trepetti ];
|
|
platforms = platforms.all;
|
|
changelog = "https://github.com/martinber/noaa-apt/releases/tag/v${version}";
|
|
};
|
|
}
|