-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
39 lines (37 loc) · 1.33 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
description = "A very basic flake";
inputs = {
#nixpkgs.url = "github:nixos/nixpkgs/23.11";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
polars-r.url = "github:pola-rs/r-polars";
};
outputs = { self, nixpkgs, polars-r }:
let
#system = "x86_64-linux";
system = "aarch64-darwin";
polarsOverlay = final: prev: {
polars = polars-r.packages.${system}.default;
};
pkgs = import nixpkgs { inherit system; overlays = [ polarsOverlay ]; };
in
{
packages.${system} = rec {
cigri-rust-polars = pkgs.rustPlatform.buildRustPackage rec {
pname = "cigri-rust-polars";
version = "0.1";
cargoLock.lockFile = ./benchmarks/cigri/rust-polars/Cargo.lock;
src = pkgs.lib.cleanSource ./benchmarks/cigri/rust-polars;
};
cigri-sorted-rust-polars = cigri-rust-polars;
};
devShells.${system} = {
default = pkgs.mkShell {
packages = with pkgs; [
snakemake
python3
];
};
} // builtins.listToAttrs (
builtins.map (x: {name = x; value = import ./workflow/envs/${x}.nix {inherit pkgs;};}) ["awk" "datamash" "duckdb" "empty" "nushell" "mawk" "miller" "python-pandas" "python-polars" "R-tidyverse" "R-polars" "R-tidypolars" "rust-polars"]);
};
}