shapefile-thing/flake.nix

38 lines
861 B
Nix
Raw Permalink Normal View History

2024-01-08 17:14:18 -08:00
{
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = {
self,
nixpkgs,
}: let
inherit (nixpkgs) lib;
2024-04-16 10:18:09 -07:00
forSystems = f: lib.genAttrs [
2024-01-08 17:14:18 -08:00
"x86_64-linux"
"aarch64-linux"
2024-04-16 10:18:09 -07:00
] (system: f nixpkgs.legacyPackages.${system});
2024-01-08 17:14:18 -08:00
in {
2024-04-16 10:18:09 -07:00
packages = forSystems (
pkgs: {
2024-01-08 17:14:18 -08:00
default = pkgs.callPackage ./. {};
static = pkgs.pkgsStatic.callPackage ./. {
strip = true;
};
}
);
2024-04-16 10:18:09 -07:00
devShells = forSystems (
pkgs: {
2024-01-08 17:14:18 -08:00
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [clang-tools];
2024-04-16 10:18:09 -07:00
inputsFrom = [self.packages.${pkgs.system}.default];
2024-01-08 17:14:18 -08:00
};
pyShell = pkgs.mkShell {
nativeBuildInputs = [(pkgs.python3.withPackages (ps: with ps; [geopandas]))];
};
}
);
2024-04-16 10:18:09 -07:00
formatter = forSystems (pkgs: pkgs.alejandra);
2024-01-08 17:14:18 -08:00
};
}