forked from poz/modfetch
35 lines
825 B
Nix
35 lines
825 B
Nix
{
|
|
description = "modular fetch";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
};
|
|
|
|
outputs = {
|
|
nixpkgs,
|
|
...
|
|
}: let
|
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
|
pkgsForEach = nixpkgs.legacyPackages;
|
|
in {
|
|
devShells = forEachSystem (system:
|
|
let
|
|
pkgs = pkgsForEach.${system};
|
|
in {
|
|
default = pkgs.mkShell {
|
|
name = "modfetch";
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
gcc
|
|
gnumake
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
curl.dev
|
|
];
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|