mirror of
https://github.com/NotAShelf/microfetch.git
synced 2026-05-07 15:55:07 +00:00
Some checks failed
Rust / Test on aarch64-unknown-linux-gnu (push) Has been cancelled
Rust / Test on armv7-unknown-linux-gnueabihf (push) Has been cancelled
Rust / Test on i686-unknown-linux-gnu (push) Has been cancelled
Rust / Test on loongarch64-unknown-linux-gnu (push) Has been cancelled
Rust / Test on powerpc-unknown-linux-gnu (push) Has been cancelled
Rust / Test on powerpc64-unknown-linux-gnu (push) Has been cancelled
Rust / Test on powerpc64le-unknown-linux-gnu (push) Has been cancelled
Rust / Test on riscv64gc-unknown-linux-gnu (push) Has been cancelled
Rust / Test on s390x-unknown-linux-gnu (push) Has been cancelled
Rust / Test on sparc64-unknown-linux-gnu (push) Has been cancelled
Rust / Test on mips-unknown-linux-gnu (push) Has been cancelled
Rust / Test on mips64-unknown-linux-gnuabi64 (push) Has been cancelled
Rust / Test on riscv32gc-unknown-linux-gnu (push) Has been cancelled
Rust / Test on x86_64-unknown-linux-gnu (push) Has been cancelled
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: If01588c5e4399ee19bb17485f65a741b6a6a6964
31 lines
860 B
Nix
31 lines
860 B
Nix
{
|
|
description = "Microscopic fetch script in Rust, for NixOS systems";
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
rust-overlay,
|
|
}: let
|
|
systems = ["x86_64-linux" "aarch64-linux"];
|
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
|
pkgsForEach = system: nixpkgs.legacyPackages.${system}.extend rust-overlay.overlays.default;
|
|
in {
|
|
packages = forEachSystem (system: let
|
|
pkgs = pkgsForEach system;
|
|
in {
|
|
default = self.packages.${system}.microfetch;
|
|
microfetch = pkgs.callPackage ./nix/package.nix {};
|
|
});
|
|
|
|
devShells = forEachSystem (system: {
|
|
default = (pkgsForEach system).callPackage ./nix/shell.nix {};
|
|
});
|
|
};
|
|
}
|