-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Refactor and simplify nix files - Use new ubuntu-24.04-arm runner for testing
- Loading branch information
Showing
9 changed files
with
154 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ pkgs ? import <nixpkgs> {}, rev, arch, abi, libcVersion ? "" }: | ||
# Linux-only | ||
let | ||
target = "${arch}-linux-${abi}" + | ||
(if builtins.stringLength libcVersion > 0 then ".${libcVersion}" else ""); | ||
pkgs' = import pkgs.path { crossSystem.config = "${arch}-unknown-linux-${abi}"; }; | ||
zig-toolchain = import ./zig-toolchain.nix { | ||
inherit target; | ||
pkgs = pkgs'.buildPackages.buildPackages; | ||
}; | ||
openssl = pkgs'.openssl.overrideAttrs (final: prev: { | ||
preConfigure = (prev.preConfigure or "") + zig-toolchain.env; | ||
doCheck = false; | ||
}); | ||
zlib = pkgs'.zlib.overrideAttrs (final: prev: { | ||
preConfigure = (prev.preConfigure or "") + zig-toolchain.env; | ||
doCheck = false; | ||
}); | ||
in | ||
(pkgs'.callPackage ./tdlib.nix { inherit rev openssl zlib; }).overrideAttrs (final: prev: { | ||
preConfigure = (prev.preConfigure or "") + zig-toolchain.env; | ||
patches = [ ./tdlib-zig.patch ]; | ||
}) |
Oops, something went wrong.