Skip to content

Commit

Permalink
Nix: add cross-build package
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Jun 11, 2024
1 parent 0f30f9e commit 1419520
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
localSystem.system = system;
overlays = with self.overlays; [hyprwayland-scanner];
});
pkgsCrossFor = eachSystem (system: crossSystem:
import nixpkgs {
localSystem = system;
crossSystem = crossSystem;
overlays = with self.overlays; [hyprwayland-scanner];
});
mkDate = longDate: (lib.concatStringsSep "-" [
(builtins.substring 0 4 longDate)
(builtins.substring 4 2 longDate)
Expand All @@ -37,6 +43,7 @@
packages = eachSystem (system: {
default = self.packages.${system}.hyprwayland-scanner;
inherit (pkgsFor.${system}) hyprwayland-scanner;
hyprwayland-scanner-cross = (pkgsCrossFor.${system} "aarch64-linux").hyprwayland-scanner;
});

formatter = eachSystem (system: pkgsFor.${system}.alejandra);
Expand Down
3 changes: 3 additions & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ stdenv.mkDerivation {
nativeBuildInputs = [
cmake
pkg-config
];

buildInputs = [
pugixml
];

Expand Down

0 comments on commit 1419520

Please sign in to comment.