git.iko.soy/typeable/nixpkgs
on master help sign in
vym: 2.6.11 -> 2.7.0 (#73483)

* vym: 2.6.11 -> 2.7.1 * vym: install man page * vym: fix /usr paths and move data from $out/vym * Change version to 2.7.0 There was some concern that the release tarball 2.7.1 actually contains an in-development snapshot rather than a full release. The consensus seems to be that 2.7.0 should be used instead.

commit286ef7108f4f3dff3eb3759284c619199d38fcd6 authorMicrosoftTakeover <49256525+MicrosoftTakeover@users.noreply.github.com> dateThu 12 Dec 2019, 14:08 (7 years ago) parent2d7b7b8
1 file changed+33−6
pkgs/applications/misc/vym/default.nix+33−6
pkgs/applications/misc/vym/default.nix+33−6
@@ -1,18 +1,45 @@
1−{ stdenv, fetchurl, pkgconfig, qmake, qtsvg }:
1+{ stdenv, mkDerivation, fetchurl, pkgconfig, qmake, qtscript, qtsvg }:
22
3−stdenv.mkDerivation rec {
3+mkDerivation rec {
44 pname = "vym";
5− version = "2.6.11";
5+ version = "2.7.0";
66
77 src = fetchurl {
8− url = "mirror://sourceforge/project/vym/2.6.0/${pname}-${version}.tar.bz2";
9− sha256 = "1yznlb47jahd662a2blgh1ccwpl5dp5rjz9chsxjzhj3vbkzx3nl";
8+ url = "mirror://sourceforge/project/vym/${version}/${pname}-${version}.tar.bz2";
9+ sha256 = "1rnrfqlff7wv6yni8bvff8n90pmn82k82zd4sn1jsx9r1n3qsfkh";
1010 };
1111
12+ # Hardcoded paths scattered about all have form share/vym
13+ # which is encouraging, although we'll need to patch them (below).
14+ qmakeFlags = [
15+ "DATADIR=${placeholder "out"}/share"
16+ "DOCDIR=${placeholder "out"}/share/doc/vym"
17+ ];
18+
19+ postPatch = ''
20+ for x in \
21+ exportoofiledialog.cpp \
22+ main.cpp \
23+ mainwindow.cpp \
24+ tex/*.{tex,lyx}; \
25+ do
26+ substituteInPlace $x \
27+ --replace /usr/share/vym $out/share/vym \
28+ --replace /usr/local/share/vym $out/share/vym \
29+ --replace /usr/share/doc $out/share/doc/vym
30+ done
31+ '';
32+
1233 hardeningDisable = [ "format" ];
1334
1435 nativeBuildInputs = [ pkgconfig qmake ];
15− buildInputs = [ qtsvg ];
36+ buildInputs = [ qtscript qtsvg ];
37+
38+ postInstall = ''
39+ install -Dm755 -t $out/share/man/man1 doc/*.1.gz
40+ '';
41+
42+ dontGzipMan = true;
1643
1744 meta = with stdenv.lib; {
1845 description = "A mind-mapping software";