Skip to content

Commit 5c58240

Browse files
committed
Stable sort order for update-patches.sh
1 parent 4478c67 commit 5c58240

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

patches/update-patches.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#!/bin/bash
2-
for ghc in $(find . -name "ghc*" -type d); do
1+
#!/usr/bin/env bash
2+
for ghc in $(find . -name "ghc*" -type d | sort); do
33
(cd $ghc
44
echo "{" > default.nix
5-
(for a in $(find . -name "*.patch" -type f); do
5+
(for a in $(find . -name "*.patch" -type f | sort); do
66
b=${a%%.patch};
77
b=${b##./};
88
echo " packages.${b%%-*}.patches = [ ({ version, revision }: if version == \"${b##*-}\" && revision == 0 then $a else null) ];" >> default.nix

0 commit comments

Comments
 (0)