tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pdisk: Fix build
OPNA2608
10 months ago
173ec7d6
eeb00de3
+16
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
pd
pdisk
cmdline.patch
package.nix
+13
pkgs/by-name/pd/pdisk/cmdline.patch
···
1
1
+
--- a/cmdline.c 2021-10-05 22:29:41.000000000 -0700
2
2
+
+++ a/cmdline.c 2024-05-30 12:05:29.146787602 -0700
3
3
+
@@ -22,10 +22,8 @@
4
4
+
* @APPLE_LICENSE_HEADER_END@
5
5
+
*/
6
6
+
#include <stdio.h>
7
7
+
-#ifndef __linux__
8
8
+
#include <stdlib.h>
9
9
+
#include <unistd.h>
10
10
+
-#endif
11
11
+
#include <string.h>
12
12
+
#include <errno.h>
13
13
+
#include <fcntl.h>
+3
pkgs/by-name/pd/pdisk/package.nix
···
39
39
url = "https://aur.archlinux.org/cgit/aur.git/plain/linux_strerror.patch?h=pdisk&id=d0c930ea8bcac008bbd0ade1811133a625caea54";
40
40
sha256 = "sha256-HGJIS+vTn6456KtaETutIgTPPBm2C9OHf1anG8yaJPo=";
41
41
})
42
42
+
43
43
+
# Fix missing includes on Linux
44
44
+
./cmdline.patch
42
45
];
43
46
44
47
postPatch =