microfetch/flake.nix
NotAShelf b43d88c749
Some checks are pending
Rust / Test on aarch64-unknown-linux-gnu (push) Waiting to run
Rust / Test on armv7-unknown-linux-gnueabihf (push) Waiting to run
Rust / Test on i686-unknown-linux-gnu (push) Waiting to run
Rust / Test on loongarch64-unknown-linux-gnu (push) Waiting to run
Rust / Test on powerpc-unknown-linux-gnu (push) Waiting to run
Rust / Test on powerpc64-unknown-linux-gnu (push) Waiting to run
Rust / Test on powerpc64le-unknown-linux-gnu (push) Waiting to run
Rust / Test on riscv64gc-unknown-linux-gnu (push) Waiting to run
Rust / Test on s390x-unknown-linux-gnu (push) Waiting to run
Rust / Test on sparc64-unknown-linux-gnu (push) Waiting to run
Rust / Test on mips-unknown-linux-gnu (push) Waiting to run
Rust / Test on mips64-unknown-linux-gnuabi64 (push) Waiting to run
Rust / Test on riscv32gc-unknown-linux-gnu (push) Waiting to run
Rust / Test on x86_64-unknown-linux-gnu (push) Waiting to run
nix: drop nix-overlay; enable structuredAttrs & cleanup
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I8dc2910c36075bef0e1c00459d83e5ea6a6a6964
2026-06-15 15:46:08 +03:00

24 lines
679 B
Nix

{
description = "Microscopic fetch script in Rust, for NixOS systems";
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
outputs = {
self,
nixpkgs,
}: let
systems = ["x86_64-linux" "aarch64-linux"];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = system: nixpkgs.legacyPackages.${system};
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 {};
});
};
}