mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
commit
a749193586
@ -18,13 +18,13 @@ assert speechdSupport -> speechd != null;
|
|||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "navit-${version}";
|
name = "navit-${version}";
|
||||||
version = "0.5.1";
|
version = "0.5.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "navit-gps";
|
owner = "navit-gps";
|
||||||
repo = "navit";
|
repo = "navit";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0jf2gjh2sszr5y5c2wvamfj2qggi2y5k3ynb32pak9vhf5xyl5xj";
|
sha256 = "11w85rlx612lws4s3q36li4iqib9b35v94kzf2zh9g1aphwqh2qa";
|
||||||
};
|
};
|
||||||
|
|
||||||
sample_map = fetchurl {
|
sample_map = fetchurl {
|
||||||
@ -68,10 +68,11 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
# TODO: fix upstream?
|
# TODO: fix upstream?
|
||||||
postFixup = ''
|
libPath = stdenv.lib.makeLibraryPath ([ stdenv.cc.libc ] ++ buildInputs );
|
||||||
for lib in $(find "$out/lib/navit/" -iname "*.so" ); do
|
postFixup =
|
||||||
patchelf --set-rpath ${makeLibraryPath buildInputs} $lib
|
''
|
||||||
done
|
find "$out/lib" -type f -name "*.so" -exec patchelf --set-rpath $libPath {} \;
|
||||||
|
|
||||||
wrapProgram $out/bin/navit \
|
wrapProgram $out/bin/navit \
|
||||||
--prefix PATH : ${makeBinPath (
|
--prefix PATH : ${makeBinPath (
|
||||||
optional xkbdSupport xkbd
|
optional xkbdSupport xkbd
|
||||||
|
Loading…
Reference in New Issue
Block a user