Skip to content

Commit 20d2e6d

Browse files
authored
wcc: 2018-04-05 -> 0.0.7-unstable-2025-01-13 (#374840)
2 parents 48c41b5 + bbfef7c commit 20d2e6d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pkgs/by-name/wc/wcc/package.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
stdenv.mkDerivation {
1313
pname = "wcc-unstable";
14-
version = "2018-04-05";
14+
version = "0.0.7-unstable-2025-01-13";
1515

1616
src = fetchFromGitHub {
1717
owner = "endrazine";
1818
repo = "wcc";
19-
rev = "f141963ff193d7e1931d41acde36d20d7221e74f";
20-
sha256 = "1f0w869x0176n5nsq7m70r344gv5qvfmk7b58syc0jls8ghmjvb4";
19+
rev = "fe1f71d7f6c756e196b82a884dc38bb8f8aef4d3";
20+
sha256 = "sha256-Kb9QIL+W0JFdfweqZL05OajXGGqXn6e6Jv3IVCr3BwQ=";
2121
fetchSubmodules = true;
2222
};
2323

@@ -39,7 +39,7 @@ stdenv.mkDerivation {
3939
installFlags = [ "DESTDIR=$(out)" ];
4040

4141
preInstall = ''
42-
mkdir -p $out/usr/bin
42+
mkdir -p $out/usr/bin $out/lib/x86_64-linux-gnu
4343
'';
4444

4545
postInstall = ''
@@ -49,9 +49,9 @@ stdenv.mkDerivation {
4949
cp doc/manpages/*.1 $out/share/man/man1/
5050
'';
5151

52-
preFixup = ''
53-
# Let patchShebangs rewrite shebangs with wsh.
54-
PATH+=:$out/bin
52+
postFixup = ''
53+
# not detected by patchShebangs
54+
substituteInPlace $out/bin/wcch --replace-fail '#!/usr/bin/wsh' "#!$out/bin/wsh"
5555
'';
5656

5757
enableParallelBuilding = true;

0 commit comments

Comments
 (0)