Skip to content

Commit

Permalink
chore: devenv and poetry update (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 authored Jan 17, 2024
1 parent 65eed46 commit 9e941f3
Show file tree
Hide file tree
Showing 4 changed files with 210 additions and 184 deletions.
87 changes: 52 additions & 35 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": 1701187605,
"narHash": "sha256-NctguPdUeDVLXFsv6vI1RlEiHLsXkeW3pgZe/mwn1BU=",
"lastModified": 1705399223,
"narHash": "sha256-2nhAJ/9LMlwaEZDnoDIhnhQ0pEC/YIIt09WD7FmTp6g=",
"owner": "cachix",
"repo": "devenv",
"rev": "a7c4dd8f4eb1f98a6b8f04bf08364954e1e73e4f",
"rev": "ff37923d4ba9e220b9826594e83fc29e1a4f4338",
"type": "github"
},
"original": {
Expand All @@ -25,11 +25,11 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1701325357,
"narHash": "sha256-+CF74n9/AlLwgdCTM5WuKsa/4C1YxJSpRDCfz1ErOl0=",
"lastModified": 1705472611,
"narHash": "sha256-o9zxn4OPM6ltNmsiIK4Fl1k6aIF73x2wELGeCQYdO0k=",
"owner": "nix-community",
"repo": "fenix",
"rev": "07a409ce1fe2c6d6e871793394b0cc0e5e262e3b",
"rev": "39ef99bcc06101639781bdb5dd69155b7033badd",
"type": "github"
},
"original": {
Expand All @@ -41,11 +41,11 @@
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
Expand All @@ -59,11 +59,11 @@
"systems": "systems"
},
"locked": {
"lastModified": 1685518550,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=",
"lastModified": 1701680307,
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef",
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
"type": "github"
},
"original": {
Expand All @@ -80,11 +80,11 @@
]
},
"locked": {
"lastModified": 1660459072,
"narHash": "sha256-8DFJjXG8zqoONA1vXtgeKXy68KdJL5UaXR8NtVMUbx8=",
"lastModified": 1703887061,
"narHash": "sha256-gGPa9qWNc6eCXT/+Z5/zMkyYOuRZqeFZBDbopNZQkuY=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "a20de23b925fd8264fd7fad6454652e142fd7f73",
"rev": "43e1aa1308018f37118e34d3a9cb4f5e75dc11d5",
"type": "github"
},
"original": {
Expand All @@ -95,11 +95,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1701237617,
"narHash": "sha256-Ryd8xpNDY9MJnBFDYhB37XSFIxCPVVVXAbInNPa95vs=",
"lastModified": 1705403940,
"narHash": "sha256-bl7E3w35Bleiexg01WsN0RuAQEL23HaQeNBC2zjt+9w=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "85306ef2470ba705c97ce72741d56e42d0264015",
"rev": "f0326542989e1bdac955ad6269b334a8da4b0c95",
"type": "github"
},
"original": {
Expand All @@ -109,13 +109,13 @@
"type": "github"
}
},
"nixpkgs-stable": {
"nixpkgs-2305": {
"locked": {
"lastModified": 1701053011,
"narHash": "sha256-8QQ7rFbKFqgKgLoaXVJRh7Ik5LtI3pyBBCfOnNOGkF0=",
"lastModified": 1704290814,
"narHash": "sha256-LWvKHp7kGxk/GEtlrGYV68qIvPHkU9iToomNFGagixU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5b528f99f73c4fad127118a8c1126b5e003b01a9",
"rev": "70bdadeb94ffc8806c0570eb5c2695ad29f0e421",
"type": "github"
},
"original": {
Expand All @@ -125,18 +125,34 @@
"type": "github"
}
},
"nixpkgs-stable_2": {
"nixpkgs-stable": {
"locked": {
"lastModified": 1685801374,
"narHash": "sha256-otaSUoFEMM+LjBI1XL/xGB5ao6IwnZOXc47qhIgJe8U=",
"lastModified": 1704874635,
"narHash": "sha256-YWuCrtsty5vVZvu+7BchAxmcYzTMfolSPP5io8+WYCg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c37ca420157f4abc31e26f436c1145f8951ff373",
"rev": "3dc440faeee9e889fe2d1b4d25ad0f430d449356",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"poetry-fix": {
"locked": {
"lastModified": 1705472662,
"narHash": "sha256-QLUqklj93lYkOnWMNDuE+GNnFEYp8Gzl3v1cEIdGFjI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a11119e186150437f9a25b8dd491dbaa44d48d90",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "a11119e",
"repo": "nixpkgs",
"type": "github"
}
Expand All @@ -149,14 +165,14 @@
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable_2"
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1700922917,
"narHash": "sha256-ej2fch/T584b5K9sk1UhmZF7W6wEfDHuoUYpFN8dtvM=",
"lastModified": 1705229514,
"narHash": "sha256-itILy0zimR/iyUGq5Dgg0fiW8plRDyxF153LWGsg3Cw=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "e5ee5c5f3844550c01d2131096c7271cec5e9b78",
"rev": "ffa9a5b90b0acfaa03b1533b83eaf5dead819a05",
"type": "github"
},
"original": {
Expand All @@ -170,18 +186,19 @@
"devenv": "devenv",
"fenix": "fenix",
"nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-2305": "nixpkgs-2305",
"poetry-fix": "poetry-fix",
"pre-commit-hooks": "pre-commit-hooks"
}
},
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1701186284,
"narHash": "sha256-euPBY3EmEy7+Jjm2ToRPlSp/qrj0UL9+PRobxVz6+aQ=",
"lastModified": 1705432736,
"narHash": "sha256-uUS5B8ypVevvhjA/2smEOu5s8zK3MBJU5tH0Tze3Kok=",
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "c7c582afb57bb802715262d7f1ba73b8a86c1c5a",
"rev": "03336460fcb25a86675aaff9694998f5910ff747",
"type": "github"
},
"original": {
Expand Down
10 changes: 7 additions & 3 deletions devenv.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ pkgs, lib, config, inputs, ... }:
let
pkgs-stable = import inputs.nixpkgs-stable { system = pkgs.stdenv.system; };
pkgs-2305 = import inputs.nixpkgs-2305 { system = pkgs.stdenv.system; };
pkgs-poetry = import inputs.poetry-fix { system = pkgs.stdenv.system; };
in
{
# https://devenv.sh/packages/
Expand All @@ -10,7 +11,7 @@ in
pkgs.just
pkgs.llvmPackages_16.libllvm
# cargo-llvm-cov is currently marked broken on nixpkgs unstable
pkgs-stable.cargo-llvm-cov
pkgs-2305.cargo-llvm-cov
]
++ lib.optionals pkgs.stdenv.isLinux [
pkgs.stdenv.cc.cc.lib
Expand Down Expand Up @@ -42,14 +43,17 @@ in

languages.rust = {
enable = true;
channel = "beta";
channel = "stable";
components = [ "rustc" "cargo" "clippy" "rustfmt" "rust-analyzer" ];
};

languages.python = {
enable = true;
poetry = {
enable = true;
activate.enable = true;
# contains fix to poetry package on macos
package = pkgs-poetry.poetry;
};
};

Expand Down
6 changes: 5 additions & 1 deletion devenv.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
inputs:
nixpkgs-stable:
# contains fix to poetry package not yet in nixpkgs-unstable
# as of 2024-01-17
poetry-fix:
url: github:NixOS/nixpkgs/a11119e
nixpkgs-2305:
url: github:NixOS/nixpkgs/nixos-23.05
fenix:
url: github:nix-community/fenix
Expand Down
Loading

0 comments on commit 9e941f3

Please sign in to comment.