diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-10-10 14:00:00 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-10-10 14:00:00 +0200 |
commit | d85f16d75ae44cf94f0500fdbfbde2b8233b8cc5 (patch) | |
tree | f33d20391ecfdf7b445b1e00ddf81b80610fbc78 | |
parent | 5b94c8b0b661526fa9bc235bbf8a6b2691e0d345 (diff) | |
download | nixos-d85f16d75ae44cf94f0500fdbfbde2b8233b8cc5.tar nixos-d85f16d75ae44cf94f0500fdbfbde2b8233b8cc5.tar.gz nixos-d85f16d75ae44cf94f0500fdbfbde2b8233b8cc5.tar.bz2 nixos-d85f16d75ae44cf94f0500fdbfbde2b8233b8cc5.tar.xz nixos-d85f16d75ae44cf94f0500fdbfbde2b8233b8cc5.zip |
udp2raw: ...
-rw-r--r-- | overlays/udp2raw/package.nix | 4 | ||||
-rw-r--r-- | overlays/udp2raw/udp2raw-makefile.patch | 16 |
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 @@ | |||
1 | diff --git a/makefile b/makefile | 1 | diff --git a/makefile b/makefile |
2 | index e758e68..16a3b23 100755 | 2 | index 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 | ||