Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
libudev-zero-rs flake.nix
1.1 kB · 54 lines
Nix
at zig
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; zig = { url = "github:mitchellh/zig-overlay"; inputs.nixpkgs.follows = "nixpkgs"; }; };
outputs = { self, nixpkgs, zig, ... }: let systems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems ( system: f ( import nixpkgs { inherit system; overlays = [ ]; } ) ); in { devShells = forAllSystems (pkgs: { default = import ./nix/shell.nix { inherit pkgs zig; }; });
packages = forAllSystems (pkgs: { libudev-zero-zig = pkgs.callPackage ./nix/package.nix { }; default = self.packages.${pkgs.stdenv.hostPlatform.system}.libudev-zero-zig; });
formatter = forAllSystems ( pkgs: import ./nix/formatter.nix { inherit pkgs; } ); };}