Repository navigation
Conversation
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
tnias
left a comment
There was a problem hiding this comment.
Thaks for your effort to fix nvi in nixpkgs. :)
8fc3e33 to
a292648
Compare
a292648 to
5e711f9
Compare
5e711f9 to
f16fbc7
Compare
|
I discovered this PR after authoring and opening this one: #442968 The notable difference is in how the debian patches are applied. My PR uses the in-tree script at It appears that you are a heavier user of |
|
I'm using |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
| base_url = "mirror://debian/pool/main/n/${pname}/${pname}_${version}"; | ||
|
|
||
| debian-extras = fetchzip { | ||
| url = "${base_url}-${deb_version}.debian.tar.xz"; | ||
| hash = "sha256-dR7vZtCV5PjUDlNTWxubxH7eucizkPRaMlyNdziud84="; | ||
| }; |
There was a problem hiding this comment.
| base_url = "mirror://debian/pool/main/n/${pname}/${pname}_${version}"; | |
| debian-extras = fetchzip { | |
| url = "${base_url}-${deb_version}.debian.tar.xz"; | |
| hash = "sha256-dR7vZtCV5PjUDlNTWxubxH7eucizkPRaMlyNdziud84="; | |
| }; | |
| debian-extras = fetchzip { | |
| url = "mirror://debian/pool/main/n/nvi/nvi_${version}-${deb_version}.debian.tar.xz"; | |
| hash = "sha256-dR7vZtCV5PjUDlNTWxubxH7eucizkPRaMlyNdziud84="; | |
| }; |
| inherit pname; | ||
| inherit version; |
There was a problem hiding this comment.
| inherit pname; | |
| inherit version; | |
| inherit pname version; |
|
|
||
| src = fetchurl { | ||
| url = "https://deb.debian.org/debian/pool/main/n/nvi/nvi_${version}.orig.tar.gz"; | ||
| url = "${base_url}.orig.tar.gz"; |
There was a problem hiding this comment.
| url = "${base_url}.orig.tar.gz"; | |
| url = "mirror://debian/pool/main/n/nvi/nvi_${version}.orig.tar.gz"; |
|
|
||
| preConfigure = '' | ||
| cd build.unix | ||
| # mkdir -p /var/tmp/vi.recover |
There was a problem hiding this comment.
| # mkdir -p /var/tmp/vi.recover |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| # Commented out entries without other comments are commented out due to | ||
| # request by @tnias in PR #410629 due to no difference when examined with | ||
| # diffoscope. | ||
| # | ||
| # Keeping as comments to make tracking Debian easier. | ||
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| # "--disable-curses" | ||
| # "--disable-shared" | ||
| # "--enable-static" | ||
| "--enable-widechar" | ||
| # "--disable-threads" | ||
| # "--without-x" | ||
| # "--with-gnu-ld=yes" | ||
| # XXX: TODO: Integrate with a sendmail facility for recover file notifications | ||
| # "ac_cv_path_vi_cv_path_sendmail=sendmail" | ||
| # XXX: TODO: This should auto-detect /var/tmp/vi.recover instead | ||
| "vi_cv_path_preserve=/var/tmp" | ||
| # Let autoconf select shell from stdenv | ||
| # "vi_cv_path_shell=/bin/sh" | ||
| # "vi_cv_revoke=no" |
There was a problem hiding this comment.
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # Commented out entries without other comments are commented out due to | |
| # request by @tnias in PR #410629 due to no difference when examined with | |
| # diffoscope. | |
| # | |
| # Keeping as comments to make tracking Debian easier. | |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # "--disable-curses" | |
| # "--disable-shared" | |
| # "--enable-static" | |
| "--enable-widechar" | |
| # "--disable-threads" | |
| # "--without-x" | |
| # "--with-gnu-ld=yes" | |
| # XXX: TODO: Integrate with a sendmail facility for recover file notifications | |
| # "ac_cv_path_vi_cv_path_sendmail=sendmail" | |
| # XXX: TODO: This should auto-detect /var/tmp/vi.recover instead | |
| "vi_cv_path_preserve=/var/tmp" | |
| # Let autoconf select shell from stdenv | |
| # "vi_cv_path_shell=/bin/sh" | |
| # "vi_cv_revoke=no" | |
| "--enable-widechar" | |
| # XXX: TODO: Integrate with a sendmail facility for recover file notifications | |
| # "ac_cv_path_vi_cv_path_sendmail=sendmail" | |
| # XXX: TODO: This should auto-detect /var/tmp/vi.recover instead | |
| "vi_cv_path_preserve=/var/tmp" |
| version = "1.81.6"; | ||
| deb_version = "23"; | ||
|
|
||
| base_url = "mirror://debian/pool/main/n/${pname}/${pname}_${version}"; |
There was a problem hiding this comment.
Substituting pname like this is an anti pattern
Instead of fetching a couple of patches from Fedora, apply all the Debian patches. Also use the same
configureoptions as Debian, most importantly enabling wide chars. This makes it build again.Resolves #382978.
Side notes:
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.