openorienteering-mapper: use SRI hash format

This commit is contained in:
AndersonTorres
2022-06-08 22:28:36 -03:00
committed by Florian Brandes
parent 334e149b7b
commit 7dedc85c1f

View File

@@ -1,45 +1,33 @@
{ lib, stdenv { lib
, stdenv
, mkDerivation , mkDerivation
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, substituteAll , clipper
, gdal
, cmake , cmake
, cups
, doxygen
, gdal
, ninja , ninja
, proj , proj
, clipper , qtimageformats
, zlib
, qttools
, qtlocation , qtlocation
, qtsensors , qtsensors
, qttools
, qttranslations , qttranslations
, doxygen , substituteAll
, cups , zlib
, qtimageformats
}: }:
mkDerivation rec { mkDerivation rec {
pname = "OpenOrienteering-Mapper"; pname = "OpenOrienteering-Mapper";
version = "0.9.5"; version = "0.9.5";
buildInputs = [
gdal
qtlocation
qtimageformats
qtsensors
clipper
zlib
proj
cups
];
nativeBuildInputs = [ cmake doxygen ninja qttools ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "OpenOrienteering"; owner = "OpenOrienteering";
repo = "mapper"; repo = "mapper";
rev = "v${version}"; rev = "v${version}";
sha256 = "1w8ikqpgi0ksrzjal5ihfaik4grc5v3gdnnv79j20xkr2p4yn1h5"; hash = "sha256-BQbryRV5diBkOtva9sYuLD8yo3IwFqrkz3qC+C6eEfE=";
}; };
patches = [ patches = [
@@ -55,6 +43,24 @@ mkDerivation rec {
}) })
]; ];
nativeBuildInputs = [
cmake
doxygen
ninja
qttools
];
buildInputs = [
clipper
cups
gdal
proj
qtimageformats
qtlocation
qtsensors
zlib
];
cmakeFlags = [ cmakeFlags = [
# Building the manual and bundling licenses fails # Building the manual and bundling licenses fails
# See https://github.com/NixOS/nixpkgs/issues/85306 # See https://github.com/NixOS/nixpkgs/issues/85306
@@ -81,15 +87,12 @@ mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
broken = stdenv.isDarwin;
description = ''
OpenOrienteering Mapper is an orienteering mapmaking program
and provides a free alternative to the existing proprietary solution.
'';
homepage = "https://www.openorienteering.org/apps/mapper/"; homepage = "https://www.openorienteering.org/apps/mapper/";
description = "An orienteering mapmaking program";
changelog = "https://github.com/OpenOrienteering/mapper/releases/tag/v${version}"; changelog = "https://github.com/OpenOrienteering/mapper/releases/tag/v${version}";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ mpickering sikmir ]; maintainers = with maintainers; [ mpickering sikmir ];
platforms = with platforms; unix;
broken = stdenv.isDarwin;
}; };
} }