Update a package: Difference between revisions
imported>Jtojnar m do not use pkgconfig alias |
imported>Jtojnar m use postPatch instead of patchPhase |
||
| Line 81: | Line 81: | ||
libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | ||
postPatch = '' | |||
patchShebangs | patchShebangs | ||
''; | ''; | ||
| Line 108: | Line 108: | ||
** Changed the <tt>version</tt> string. | ** Changed the <tt>version</tt> string. | ||
** Changed the checksum for the tarball on the <tt>sha256</tt> string. | ** Changed the checksum for the tarball on the <tt>sha256</tt> string. | ||
** Removed a line on the <tt> | ** Removed a line on the <tt>postPatch</tt> string. This line was a <tt>sed</tt> command which was erasing some lines from the file <tt>common.mk</tt>, which is part of the sources in the tarball, before building the application. | ||
* And in an attempt to extract something positive from the issue, we are going to review an additional [https://github.com/NixOS/nixpkgs/commit/1eb437784021521d57ae96980bf447e9162d4415 unfortunate change] I made on <tt>pkgs/top-level/all-packages.nix</tt> | * And in an attempt to extract something positive from the issue, we are going to review an additional [https://github.com/NixOS/nixpkgs/commit/1eb437784021521d57ae96980bf447e9162d4415 unfortunate change] I made on <tt>pkgs/top-level/all-packages.nix</tt> | ||
* To figure out the checksum for the tarball you have the <tt>nix-prefetch-url</tt> utility. In addition to returning the ''sha256 checksum'' it will also leave the downloaded blob on your ''nix store'', thus avoiding additional downloads when you test the build process. You get the path to the downloaded blob and the ''sha256sum'' on the last two lines of the command's output: | * To figure out the checksum for the tarball you have the <tt>nix-prefetch-url</tt> utility. In addition to returning the ''sha256 checksum'' it will also leave the downloaded blob on your ''nix store'', thus avoiding additional downloads when you test the build process. You get the path to the downloaded blob and the ''sha256sum'' on the last two lines of the command's output: | ||
| Line 146: | Line 146: | ||
+ libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | + libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | ||
postPatch = '' | |||
- sed -i -e '/^# Pango/,/^$/d' common.mk | - sed -i -e '/^# Pango/,/^$/d' common.mk | ||
patchShebangs . | patchShebangs . | ||
| Line 318: | Line 318: | ||
+ libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | + libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | ||
postPatch = '' | |||
- sed -i -e '/^# Pango/,/^$/d' common.mk | - sed -i -e '/^# Pango/,/^$/d' common.mk | ||
patchShebangs . | patchShebangs . | ||
| Line 357: | Line 357: | ||
+ libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | + libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | ||
postPatch = '' | |||
- sed -i -e '/^# Pango/,/^$/d' common.mk | - sed -i -e '/^# Pango/,/^$/d' common.mk | ||
patchShebangs . | patchShebangs . | ||
| Line 400: | Line 400: | ||
+ libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | + libstartup_notification libX11 pcre libev yajl libXcursor perl pango ]; | ||
postPatch = '' | |||
Stage this hunk [y,n,q,a,d,/,K,j,J,g,e,?]? y | Stage this hunk [y,n,q,a,d,/,K,j,J,g,e,?]? y | ||
@@ -16,6 +16,5 @@ | @@ -16,6 +16,5 @@ | ||
postPatch = '' | |||
- sed -i -e '/^# Pango/,/^$/d' common.mk | - sed -i -e '/^# Pango/,/^$/d' common.mk | ||
patchShebangs . | patchShebangs . | ||