summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'overlays')
-rw-r--r--overlays/udp2raw/package.nix4
-rw-r--r--overlays/udp2raw/udp2raw-makefile.patch16
2 files changed, 9 insertions, 11 deletions
diff --git a/overlays/udp2raw/package.nix b/overlays/udp2raw/package.nix
index a50d87d4..6612ac3e 100644
--- a/overlays/udp2raw/package.nix
+++ b/overlays/udp2raw/package.nix
@@ -12,9 +12,9 @@ pkgsMusl.stdenv.mkDerivation rec {
12 patches = [ ./udp2raw-makefile.patch ]; 12 patches = [ ./udp2raw-makefile.patch ];
13 configurePhase = ""; 13 configurePhase = "";
14 buildPhase = '' 14 buildPhase = ''
15 make amd64_hw_aes 15 make cc_amd64=''${CXX} amd64_hw_aes
16 ''; 16 '';
17 installPhase = '' 17 installPhase = ''
18 install -Dm755 udp2raw_amd64 $out/bin/udp2raw 18 install -Dm755 udp2raw_amd64_hw_aes $out/bin/udp2raw
19 ''; 19 '';
20} 20}
diff --git a/overlays/udp2raw/udp2raw-makefile.patch b/overlays/udp2raw/udp2raw-makefile.patch
index 512c6f8e..264f5cf4 100644
--- a/overlays/udp2raw/udp2raw-makefile.patch
+++ b/overlays/udp2raw/udp2raw-makefile.patch
@@ -1,12 +1,10 @@
1diff --git a/makefile b/makefile 1diff --git a/makefile b/makefile
2index e758e68..16a3b23 100755 2index 22c07ae..ddcfbc4 100755
3--- a/makefile 3--- a/makefile
4+++ b/makefile 4+++ b/makefile
5@@ -53,6 +53,6 @@ mips24kc_le_asm_aes: git_version 5@@ -131,4 +131,4 @@ clean:
6 amd64:git_version 6 rm -f git_version.h
7 ${cc_amd64} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O3 7
8 amd64_hw_aes:git_version 8 git_version:
9- ${cc_amd64} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O0 -fno-omit-frame-pointer -g 9- echo "const char *gitversion = \"$(shell git rev-parse HEAD)\";" > git_version.h
10+ ${CXX} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O0 -fno-omit-frame-pointer -g 10+ echo "const char *gitversion = \"cc6ea766c495cf4c69d1c7485728ba022b0f19de\";" > git_version.h
11 x86:git_version
12 ${cc_x86} -o ${NAME}_$@ -I. ${SOURCES} ${FLAGS} -lrt -static -O2 -lgcc_eh -ggdb