Format and flake lock updates

This commit is contained in:
Lillian Violet 2024-04-25 12:31:10 +02:00
parent ab755c86bf
commit df51e76d3a
5 changed files with 53 additions and 50 deletions

View file

@ -2,12 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1712963716, "lastModified": 1713895582,
"narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=", "narHash": "sha256-cfh1hi+6muQMbi9acOlju3V1gl8BEaZBXBR9jQfQi4U=",
"rev": "cfd6b5fc90b15709b780a5a1619695a88505a176", "rev": "572af610f6151fd41c212f897c71f7056e3fb518",
"revCount": 611350, "revCount": 615930,
"type": "tarball", "type": "tarball",
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.611350%2Brev-cfd6b5fc90b15709b780a5a1619695a88505a176/018eddfc-e6d9-74bb-a823-20f2ae60079b/source.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.615930%2Brev-572af610f6151fd41c212f897c71f7056e3fb518/018f13c0-577e-75c4-a6ac-41b8bc32f7b3/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -2,12 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1712963716, "lastModified": 1713895582,
"narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=", "narHash": "sha256-cfh1hi+6muQMbi9acOlju3V1gl8BEaZBXBR9jQfQi4U=",
"rev": "cfd6b5fc90b15709b780a5a1619695a88505a176", "rev": "572af610f6151fd41c212f897c71f7056e3fb518",
"revCount": 611350, "revCount": 615930,
"type": "tarball", "type": "tarball",
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.611350%2Brev-cfd6b5fc90b15709b780a5a1619695a88505a176/018eddfc-e6d9-74bb-a823-20f2ae60079b/source.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.615930%2Brev-572af610f6151fd41c212f897c71f7056e3fb518/018f13c0-577e-75c4-a6ac-41b8bc32f7b3/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View file

@ -3,37 +3,40 @@
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz"; inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
outputs = { outputs =
self, { self
nixpkgs, , nixpkgs
}: let ,
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; }:
forEachSupportedSystem = f: let
nixpkgs.lib.genAttrs supportedSystems (system: supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
f { forEachSupportedSystem = f:
pkgs = import nixpkgs {inherit system;}; nixpkgs.lib.genAttrs supportedSystems (system:
}); f {
in { pkgs = import nixpkgs { inherit system; };
devShells = forEachSupportedSystem ({pkgs}: { });
default = pkgs.mkShell { in
packages = with pkgs; {
[python311 virtualenv] devShells = forEachSupportedSystem ({ pkgs }: {
++ (with pkgs.python311Packages; [ default = pkgs.mkShell {
pip packages = with pkgs;
venvShellHook [ python311 virtualenv ]
requests ++ (with pkgs.python311Packages; [
jupyter pip
pandas venvShellHook
numpy requests
matplotlib jupyter
seaborn pandas
scikit-learn numpy
plotnine matplotlib
arrow seaborn
polars scikit-learn
pyarrow plotnine
]); arrow
}; polars
}); pyarrow
}; ]);
};
});
};
} }

View file

@ -15,9 +15,9 @@
default = pkgs.mkShell { default = pkgs.mkShell {
venvDir = "venv"; venvDir = "venv";
packages = with pkgs; [ python311 ] ++ packages = with pkgs; [ python311 ] ++
(with pkgs.python311Packages; [ (with pkgs.python311Packages; [
pip pip
venvShellHook venvShellHook
]); ]);
}; };
}); });

View file

@ -2,12 +2,12 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1712963716, "lastModified": 1713895582,
"narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=", "narHash": "sha256-cfh1hi+6muQMbi9acOlju3V1gl8BEaZBXBR9jQfQi4U=",
"rev": "cfd6b5fc90b15709b780a5a1619695a88505a176", "rev": "572af610f6151fd41c212f897c71f7056e3fb518",
"revCount": 611350, "revCount": 615930,
"type": "tarball", "type": "tarball",
"url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.611350%2Brev-cfd6b5fc90b15709b780a5a1619695a88505a176/018eddfc-e6d9-74bb-a823-20f2ae60079b/source.tar.gz" "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.615930%2Brev-572af610f6151fd41c212f897c71f7056e3fb518/018f13c0-577e-75c4-a6ac-41b8bc32f7b3/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",