uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
71
pkgs/applications/misc/viking/default.nix
Normal file
71
pkgs/applications/misc/viking/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ lib, stdenv, fetchurl
|
||||
, docbook_xml_dtd_45, docbook_xsl, intltool, itstool, libxslt, pkg-config, wrapGAppsHook, yelp-tools
|
||||
, curl, gdk-pixbuf, gtk3, json-glib, libxml2
|
||||
, gpsbabel
|
||||
, withGeoClue ? true, geoclue2
|
||||
, withGeoTag ? true, gexiv2
|
||||
, withMagic ? true, file
|
||||
, withMapnik ? false, mapnik
|
||||
, withMBTiles ? true, sqlite
|
||||
, withMd5Hash ? true, nettle
|
||||
, withOAuth ? true, liboauth
|
||||
, withRealtimeGPSTracking ? true, gpsd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "viking";
|
||||
version = "1.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/viking/viking-${version}.tar.bz2";
|
||||
sha256 = "sha256-lFXIlfmLwT3iS9ayNM0PHV7NwbBotMvG62ZE9hJuRaw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ docbook_xml_dtd_45 docbook_xsl intltool itstool libxslt pkg-config wrapGAppsHook yelp-tools ];
|
||||
|
||||
buildInputs = [ curl gdk-pixbuf gtk3 json-glib libxml2 ]
|
||||
++ lib.optional withGeoClue geoclue2
|
||||
++ lib.optional withGeoTag gexiv2
|
||||
++ lib.optional withMagic file
|
||||
++ lib.optional withMapnik mapnik
|
||||
++ lib.optional withMBTiles sqlite
|
||||
++ lib.optional withMd5Hash nettle
|
||||
++ lib.optional withOAuth liboauth
|
||||
++ lib.optional withRealtimeGPSTracking gpsd;
|
||||
|
||||
configureFlags = [
|
||||
(lib.enableFeature withGeoClue "geoclue")
|
||||
(lib.enableFeature withGeoTag "geotag")
|
||||
(lib.enableFeature withMagic "magic")
|
||||
(lib.enableFeature withMapnik "mapnik")
|
||||
(lib.enableFeature withMBTiles "mbtiles")
|
||||
(lib.enableFeature withMd5Hash "nettle")
|
||||
(lib.enableFeature withOAuth "oauth")
|
||||
(lib.enableFeature withRealtimeGPSTracking "realtime-gps-tracking")
|
||||
];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
preFixup = ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix PATH : ${lib.makeBinPath [ gpsbabel ]}
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "GPS data editor and analyzer";
|
||||
longDescription = ''
|
||||
Viking is a free/open source program to manage GPS data. You
|
||||
can import and plot tracks and waypoints, show Openstreetmaps
|
||||
and/or Terraserver maps under it, download geocaches for an area
|
||||
on the map, make new tracks and waypoints, see real-time GPS
|
||||
position, etc.
|
||||
'';
|
||||
homepage = "https://sourceforge.net/projects/viking/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ pSub sikmir ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue