We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4478c67 commit 5c58240Copy full SHA for 5c58240
patches/update-patches.sh
@@ -1,8 +1,8 @@
1
-#!/bin/bash
2
-for ghc in $(find . -name "ghc*" -type d); do
+#!/usr/bin/env bash
+for ghc in $(find . -name "ghc*" -type d | sort); do
3
(cd $ghc
4
echo "{" > default.nix
5
- (for a in $(find . -name "*.patch" -type f); do
+ (for a in $(find . -name "*.patch" -type f | sort); do
6
b=${a%%.patch};
7
b=${b##./};
8
echo " packages.${b%%-*}.patches = [ ({ version, revision }: if version == \"${b##*-}\" && revision == 0 then $a else null) ];" >> default.nix
0 commit comments