2024-04-03 00:41:55 +00:00
|
|
|
{
|
2024-04-24 20:32:09 +00:00
|
|
|
description = "A sparse bitmapped index library in C.";
|
2024-04-03 00:41:55 +00:00
|
|
|
|
2024-04-05 14:34:59 +00:00
|
|
|
inputs = {
|
2024-04-24 20:32:09 +00:00
|
|
|
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/23.11";
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
utils.inputs.nixpkgs.follows = "nixpkgs";
|
2024-04-05 14:34:59 +00:00
|
|
|
};
|
2024-04-03 00:41:55 +00:00
|
|
|
|
2024-04-24 20:32:09 +00:00
|
|
|
outputs = { self, nixpkgs, ... }
|
|
|
|
@inputs: inputs.utils.lib.eachSystem [
|
|
|
|
"x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin"
|
|
|
|
] (system:
|
|
|
|
let pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [];
|
|
|
|
config.allowUnfree = true;
|
2024-04-05 14:34:59 +00:00
|
|
|
};
|
2024-04-24 20:32:09 +00:00
|
|
|
in {
|
|
|
|
devShell = pkgs.mkShell rec {
|
|
|
|
name = "sparsemap";
|
|
|
|
packages = with pkgs; [
|
|
|
|
act
|
|
|
|
autoconf
|
|
|
|
clang
|
|
|
|
ed
|
|
|
|
gcc
|
|
|
|
gdb
|
|
|
|
gettext
|
|
|
|
graphviz-nox
|
|
|
|
libtool
|
|
|
|
m4
|
|
|
|
perl
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
ripgrep
|
|
|
|
valgrind
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
libbacktrace
|
|
|
|
glibc.out
|
|
|
|
glibc.static
|
|
|
|
];
|
|
|
|
|
|
|
|
shellHook = let
|
|
|
|
icon = "f121";
|
|
|
|
in ''
|
|
|
|
export PS1="$(echo -e '\u${icon}') {\[$(tput sgr0)\]\[\033[38;5;228m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\]} (${name}) \\$ \[$(tput sgr0)\]"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
DOCKER_BUILDKIT = 1;
|
|
|
|
});
|
2024-04-03 00:41:55 +00:00
|
|
|
}
|