-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnupatch: 2.7.6 -> 2.7.6-unstable-2024-08-25
- Loading branch information
Showing
10 changed files
with
63 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
testers, | ||
fetchFromSavannah, | ||
unstableGitUpdater, | ||
gnulibBootstrapHook, | ||
bison, | ||
ed, | ||
}: | ||
let | ||
canExecute = stdenv.buildPlatform.canExecute stdenv.hostPlatform; | ||
in | ||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "patch"; | ||
version = "2.7.6-unstable-2024-08-25"; | ||
|
||
# This used to be fetchurl from GNU mirror, but mirrors don’t have Git | ||
# snapshots and GNU patch had no releases in almost a decade. | ||
# fetchurl { url = "mirror://gnu/patch/patch-${version}.tar.xz"; hash = ""; }; | ||
src = fetchFromSavannah { | ||
repo = "patch"; | ||
rev = "abf6fb176bcd95e72ffb3ff85e6132d18cd77e75"; | ||
hash = "sha256-eqYTvBjjFsxe2WOeFgFMKpVWFYDiyigzc4gTdhFQrfg="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
gnulibBootstrapHook | ||
bison | ||
]; | ||
|
||
nativeCheckInputs = [ ed ]; | ||
|
||
doCheck = canExecute; | ||
|
||
passthru.tests = lib.optionalAttrs canExecute { | ||
version = testers.testVersion { package = finalAttrs.finalPackage; }; | ||
}; | ||
|
||
# nix develop --file maintainers/scripts/update.nix --argstr package gnupatch2 | ||
passthru.updateScript = unstableGitUpdater { | ||
url = "https://git.savannah.gnu.org/git/patch.git"; | ||
tagPrefix = "v"; | ||
}; | ||
|
||
meta = { | ||
description = "GNU Patch, a program to apply differences to files"; | ||
mainProgram = "patch"; | ||
|
||
longDescription = '' | ||
GNU Patch takes a patch file containing a difference listing | ||
produced by the diff program and applies those differences to one or | ||
more original files, producing patched versions. | ||
''; | ||
|
||
homepage = "https://savannah.gnu.org/projects/patch"; | ||
|
||
license = lib.licenses.gpl3Plus; | ||
|
||
maintainers = [ ]; | ||
platforms = lib.platforms.all; | ||
}; | ||
}) |
51 changes: 0 additions & 51 deletions
51
pkgs/tools/text/gnupatch/Abort_when_cleaning_up_fails.patch
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
pkgs/tools/text/gnupatch/Allow_input_files_to_be_missing_for_ed-style_patches.patch
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.