Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
/ hdx Public archive

Commit b3af8a0

Browse files
committed
icestorm: patch out Darwin check for sed.
Nix stdenv includes GNU sed, as you would expect.
1 parent 44a7029 commit b3af8a0

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

icestorm.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ stdenv.mkDerivation {
1818
sha256 = icestorm_git_sha256;
1919
};
2020

21+
patches = [
22+
./patches/icebox-Makefile.patch
23+
];
24+
2125
makeFlags = [
2226
"PREFIX=$(out)"
2327
];

patches/icebox-Makefile.patch

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/icebox/Makefile
2+
+++ b/icebox/Makefile
3+
@@ -2,7 +2,3 @@
4+
5+
-ifneq ($(shell uname -s),Darwin)
6+
- SED_I = sed -i
7+
-else
8+
- SED_I = sed -i ''
9+
-endif
10+
+SED_I = sed -i
11+

0 commit comments

Comments
 (0)