Skip to content

Commit

Permalink
chore(deps): use nix from nixpkgs, update inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Jun 26, 2024
1 parent 18109d5 commit e29cad7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 100 deletions.
109 changes: 18 additions & 91 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
inputs.fenix.url = "github:nix-community/fenix";
inputs.flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nix.inputs.nixpkgs.follows = "nixpkgs";
inputs.nix.url = "github:NixOS/nix/latest-release";
inputs.treefmt-nix.url = "github:numtide/treefmt-nix";
inputs.treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";

Expand All @@ -17,7 +15,6 @@
fenix,
flake-compat,
flake-utils,
nix,
nixpkgs,
treefmt-nix,
}: let
Expand All @@ -26,8 +23,8 @@
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
toolchain = fenix.packages.${system}.stable.completeToolchain;
craneLib = crane.lib.${system}.overrideToolchain toolchain;
nixDrv = nix.packages.${system}.nix;
craneLib = (crane.mkLib pkgs).overrideToolchain toolchain;
nixDrv = pkgs.nixVersions.nix_2_21;

isolatedNix = postfix:
pkgs.symlinkJoin {
Expand Down
4 changes: 0 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ async fn main() -> anyhow::Result<()> {
}
}

#[derive(Debug, Clone, derive_more::Display)]
#[display("{}", _0)]
struct Eprintln(String);

#[derive(Debug, derive_more::Deref)]
struct PtyLine(String);

Expand Down

0 comments on commit e29cad7

Please sign in to comment.