Use manual build process in org-file for now for more flexibility

This commit is contained in:
heyarne 2021-06-11 16:59:19 +02:00
commit 743ab70eee
5 changed files with 45 additions and 51 deletions

View file

@ -4,22 +4,38 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
# data sources
owid-co2-data = {
# TODO Include these two files:
# - https://github.com/owid/co2-data/blob/master/owid-co2-data.csv
# - https://github.com/owid/co2-data/blob/master/owid-co2-codebook.csv
url = "github:owid/co2-data";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils }:
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem
(system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShell = import ./shell.nix { inherit pkgs; };
devShell =
let
lib = pkgs.lib;
in pkgs.mkShell rec {
name = "datasette";
buildInputs = with pkgs; [
sqlite
libspatialite
spatialite_tools
rlwrap
datasette
];
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
};
}
);
# outputs = { self, nixpkgs, flake-utils, ... }:
# flake-utils.lib.eachDefaultSystem
# (system:
# let pkgs.legacyPackages.${system}; in
# {
# devShell = import ./shell.nix { inherit pkgs; };
# }
# );
}