Skip to content

Commit b39492b

Browse files
saschagrunertk8s-ci-robot
authored andcommitted
Add missing ppc64le and s390x nix files
Signed-off-by: Sascha Grunert <[email protected]>
1 parent 8bec8ce commit b39492b

File tree

6 files changed

+58
-0
lines changed

6 files changed

+58
-0
lines changed

nix/default-bpf-ppc64le.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(import ./nixpkgs.nix {
2+
crossSystem = {
3+
config = "powerpc64le-unknown-linux-gnu";
4+
};
5+
overlays = [ (import ./overlay.nix) ];
6+
}).callPackage ./derivation-bpf.nix
7+
{ arch = "ppc64le"; }

nix/default-bpf-s390.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(import ./nixpkgs.nix {
2+
crossSystem = {
3+
config = "s390x-unknown-linux-musl";
4+
};
5+
overlays = [ (import ./overlay.nix) ];
6+
}).callPackage ./derivation-bpf.nix
7+
{ arch = "s390x"; }

nix/default-ppc64le.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(import ./nixpkgs.nix {
2+
crossSystem = {
3+
config = "powerpc64le-unknown-linux-gnu";
4+
};
5+
overlays = [ (import ./overlay.nix) ];
6+
}).callPackage ./derivation.nix
7+
{ }

nix/default-s390x.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(import ./nixpkgs.nix {
2+
crossSystem = {
3+
config = "s390x-unknown-linux-musl";
4+
};
5+
overlays = [ (import ./overlay.nix) ];
6+
}).callPackage ./derivation.nix
7+
{ }

nix/default-spoc-ppc64le.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
((import ./nixpkgs.nix {
2+
crossSystem = {
3+
config = "powerpc64le-unknown-linux-gnu";
4+
};
5+
overlays = [ (import ./overlay.nix) ];
6+
}).callPackage ./derivation.nix
7+
{ }).overrideAttrs (x: {
8+
buildPhase = ''
9+
make build/spoc
10+
'';
11+
12+
installPhase = ''
13+
install -Dm755 -t $out build/spoc
14+
'';
15+
})

nix/default-spoc-s390x.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
((import ./nixpkgs.nix {
2+
crossSystem = {
3+
config = "s390x-unknown-linux-gnu";
4+
};
5+
overlays = [ (import ./overlay.nix) ];
6+
}).callPackage ./derivation.nix
7+
{ }).overrideAttrs (x: {
8+
buildPhase = ''
9+
make build/spoc
10+
'';
11+
12+
installPhase = ''
13+
install -Dm755 -t $out build/spoc
14+
'';
15+
})

0 commit comments

Comments
 (0)