diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-12-29 21:39:04 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-12-29 21:39:04 +0100 |
commit | b142c14d33cbf343574fd6d7d8056df53b695052 (patch) | |
tree | 0220ec2b8f2e75b39b597a6ed66b8c1e993888a8 /overlays | |
parent | c7b5dd0559419b58e220edec30ab39066b6b9d0a (diff) | |
download | nixos-b142c14d33cbf343574fd6d7d8056df53b695052.tar nixos-b142c14d33cbf343574fd6d7d8056df53b695052.tar.gz nixos-b142c14d33cbf343574fd6d7d8056df53b695052.tar.bz2 nixos-b142c14d33cbf343574fd6d7d8056df53b695052.tar.xz nixos-b142c14d33cbf343574fd6d7d8056df53b695052.zip |
...
Diffstat (limited to 'overlays')
-rw-r--r-- | overlays/libdscp/default.nix | 6 | ||||
-rw-r--r-- | overlays/libdscp/src/Makefile | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/overlays/libdscp/default.nix b/overlays/libdscp/default.nix index 9e82f20e..46b622e9 100644 --- a/overlays/libdscp/default.nix +++ b/overlays/libdscp/default.nix | |||
@@ -1,12 +1,14 @@ | |||
1 | { final, prev, ... }: | 1 | { final, prev, ... }: |
2 | { | 2 | { |
3 | libdscp = prev.stdenv.mkDerivation { | 3 | libdscp = prev.stdenvNoCC.mkDerivation { |
4 | pname = "libdscp"; | 4 | pname = "libdscp"; |
5 | version = "0.0.0"; | 5 | version = "0.0.0"; |
6 | 6 | ||
7 | src = ./src; | 7 | src = ./src; |
8 | 8 | ||
9 | makeFlags = [ "PREFIX=$(out)" ]; | 9 | nativeBuildInputs = with final; [ gcc musl.dev ]; |
10 | |||
11 | makeFlags = [ "PREFIX=$(out)" "CC=musl-gcc" ]; | ||
10 | }; | 12 | }; |
11 | 13 | ||
12 | dscp = prev.writeShellApplication { | 14 | dscp = prev.writeShellApplication { |
diff --git a/overlays/libdscp/src/Makefile b/overlays/libdscp/src/Makefile index e76930d7..9b8baf22 100644 --- a/overlays/libdscp/src/Makefile +++ b/overlays/libdscp/src/Makefile | |||
@@ -8,9 +8,11 @@ all: libdscp | |||
8 | 8 | ||
9 | libdscp: | 9 | libdscp: |
10 | $(CC) \ | 10 | $(CC) \ |
11 | -static \ | ||
11 | -o $@.so $@.c \ | 12 | -o $@.so $@.c \ |
12 | -D_GNU_SOURCE \ | 13 | -D_GNU_SOURCE \ |
13 | -nostartfiles -shared | 14 | -nostartfiles -shared \ |
15 | -lc | ||
14 | install: libdscp | 16 | install: libdscp |
15 | install -d $(DESTDIR)$(PREFIX)/lib/ | 17 | install -d $(DESTDIR)$(PREFIX)/lib/ |
16 | install -m 644 libdscp.so $(DESTDIR)$(PREFIX)/lib/ | 18 | install -m 644 libdscp.so $(DESTDIR)$(PREFIX)/lib/ |