Skip to content

Commit

Permalink
fix: devenv & python version
Browse files Browse the repository at this point in the history
  • Loading branch information
farbodahm committed Sep 4, 2024
1 parent 2211fc8 commit cc6d6d9
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 168 deletions.
64 changes: 51 additions & 13 deletions devenv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1721817837,
"lastModified": 1725287955,
"owner": "cachix",
"repo": "devenv",
"rev": "44bfc26843694ab17ebae1d4922065e48d93f501",
"treeHash": "62b4ad814fcc952c5660916c9cdadc34927b3330",
"rev": "0ceddcb8040b72943d34af364cde79294222e1af",
"treeHash": "3950480113111b9ffacc5b7a2fb08d27e40ac0cd",
"type": "github"
},
"original": {
Expand All @@ -33,6 +33,22 @@
"type": "github"
}
},
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"treeHash": "2addb7b71a20a25ea74feeaf5c2f6a6b30898ecb",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
Expand Down Expand Up @@ -95,11 +111,11 @@
]
},
"locked": {
"lastModified": 1720642556,
"lastModified": 1724996935,
"owner": "nlewo",
"repo": "nix2container",
"rev": "3853e5caf9ad24103b13aa6e0e8bcebb47649fe4",
"treeHash": "a9c2f1d3f52f288515ca0fb11f9aed970fd869b6",
"rev": "fa6bb0a1159f55d071ba99331355955ae30b3401",
"treeHash": "a934d246fadcf8b36d28f3577fad413f5ab3f7d3",
"type": "github"
},
"original": {
Expand All @@ -124,13 +140,34 @@
"type": "github"
}
},
"nixpkgs-python": {
"inputs": {
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1722978926,
"owner": "cachix",
"repo": "nixpkgs-python",
"rev": "7c550bca7e6cf95898e32eb2173efe7ebb447460",
"treeHash": "d9d38ef1b6fc92be18170b74e9889a7ab9174f6e",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "nixpkgs-python",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1721821769,
"lastModified": 1725001927,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d0907b75146a0ccc1ec0d6c3db287ec287588ef6",
"treeHash": "4db84624993e912855fe9497179a08cbe6893cce",
"rev": "6e99f2a27d600612004fbd2c3282d614bfee6421",
"treeHash": "1e85443cc9f0ba302df2cf61cacb8014943e2d19",
"type": "github"
},
"original": {
Expand All @@ -142,19 +179,19 @@
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat",
"flake-compat": "flake-compat_2",
"gitignore": "gitignore",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1721042469,
"lastModified": 1724857454,
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "f451c19376071a90d8c58ab1a953c6e9840527fd",
"treeHash": "91f40b7a3b9f6886bd77482cba5b5cd890415a2e",
"rev": "4509ca64f1084e73bc7a721b20c669a8d4c5ebe6",
"treeHash": "ced5a8df7c554ce10bf26223c002f41b31aff034",
"type": "github"
},
"original": {
Expand All @@ -169,6 +206,7 @@
"mk-shell-bin": "mk-shell-bin",
"nix2container": "nix2container",
"nixpkgs": "nixpkgs",
"nixpkgs-python": "nixpkgs-python",
"pre-commit-hooks": "pre-commit-hooks"
}
},
Expand Down
4 changes: 4 additions & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

python = {
enable = true;
version = "3.10";
venv = {
enable = true;
requirements = ''
Expand All @@ -59,6 +60,9 @@
};
};

languages.java.enable = true;
languages.java.jdk.package = pkgs.jdk11;

enterShell = ''
hello
pdm install
Expand Down
6 changes: 5 additions & 1 deletion devenv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ inputs:
url: github:rrbutani/nix-mk-shell-bin
nixpkgs:
url: github:cachix/devenv-nixpkgs/rolling

nixpkgs-python:
url: github:cachix/nixpkgs-python
inputs:
nixpkgs:
follows: nixpkgs
Loading

0 comments on commit cc6d6d9

Please sign in to comment.