Spaces:
Sleeping
Sleeping
add flake
Browse files- flake.lock +27 -0
- flake.nix +42 -0
flake.lock
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"nodes": {
|
| 3 |
+
"nixpkgs": {
|
| 4 |
+
"locked": {
|
| 5 |
+
"lastModified": 1742206328,
|
| 6 |
+
"narHash": "sha256-q+AQ///oMnyyFzzF4H9ShSRENt3Zsx37jTiRkLkXXE0=",
|
| 7 |
+
"owner": "nixos",
|
| 8 |
+
"repo": "nixpkgs",
|
| 9 |
+
"rev": "096478927c360bc18ea80c8274f013709cf7bdcd",
|
| 10 |
+
"type": "github"
|
| 11 |
+
},
|
| 12 |
+
"original": {
|
| 13 |
+
"owner": "nixos",
|
| 14 |
+
"ref": "nixpkgs-unstable",
|
| 15 |
+
"repo": "nixpkgs",
|
| 16 |
+
"type": "github"
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
"root": {
|
| 20 |
+
"inputs": {
|
| 21 |
+
"nixpkgs": "nixpkgs"
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
"root": "root",
|
| 26 |
+
"version": 7
|
| 27 |
+
}
|
flake.nix
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
description = "data labeler environment";
|
| 3 |
+
|
| 4 |
+
nixConfig = {
|
| 5 |
+
extra-substituters = [
|
| 6 |
+
"https://nix-community.cachix.org"
|
| 7 |
+
];
|
| 8 |
+
extra-trusted-public-keys = [
|
| 9 |
+
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
| 10 |
+
];
|
| 11 |
+
};
|
| 12 |
+
|
| 13 |
+
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
| 14 |
+
|
| 15 |
+
outputs = {nixpkgs, ...}: let
|
| 16 |
+
system = "x86_64-linux";
|
| 17 |
+
pkgs = import nixpkgs {
|
| 18 |
+
inherit system;
|
| 19 |
+
config.allowUnfree = true;
|
| 20 |
+
config.cudaSupport = true;
|
| 21 |
+
};
|
| 22 |
+
in {
|
| 23 |
+
devShells."${system}".default = pkgs.mkShell {
|
| 24 |
+
packages = with pkgs; [
|
| 25 |
+
(python312.withPackages (
|
| 26 |
+
ppkgs:
|
| 27 |
+
with python312Packages; [
|
| 28 |
+
pip
|
| 29 |
+
numpy
|
| 30 |
+
pandas
|
| 31 |
+
streamlit
|
| 32 |
+
]
|
| 33 |
+
))
|
| 34 |
+
zip
|
| 35 |
+
unzip
|
| 36 |
+
git
|
| 37 |
+
wget
|
| 38 |
+
curl
|
| 39 |
+
];
|
| 40 |
+
};
|
| 41 |
+
};
|
| 42 |
+
}
|