Skip to content

Commit 1ac930d

Browse files
authored
{vimPlugins.sniprun,gdmd}: use replaceVars intead of substituteAll (NixOS#388753)
2 parents b06d85e + 83201a8 commit 1ac930d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pkgs/applications/editors/vim/plugins/non-generated/sniprun/default.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# sniprun
1616
vimUtils,
17-
substituteAll,
17+
replaceVars,
1818
nix-update-script,
1919
}:
2020
let
@@ -58,8 +58,7 @@ vimUtils.buildVimPlugin {
5858
inherit version src;
5959

6060
patches = [
61-
(substituteAll {
62-
src = ./fix-paths.patch;
61+
(replaceVars ./fix-paths.patch {
6362
sniprun = lib.getExe sniprun-bin;
6463
})
6564
];

pkgs/by-name/gd/gdmd/package.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
lib,
33
stdenvNoCC,
44
fetchFromGitHub,
5-
substituteAll,
5+
replaceVars,
66
gdc,
77
perl,
88
}:
@@ -18,8 +18,7 @@ stdenvNoCC.mkDerivation {
1818
};
1919

2020
patches = [
21-
(substituteAll {
22-
src = ./0001-gdc-store-path.diff;
21+
(replaceVars ./0001-gdc-store-path.diff {
2322
gdc_dir = "${gdc}/bin";
2423
})
2524
];

0 commit comments

Comments
 (0)