Skip to content

Commit

Permalink
use flake-compat for default.nix and shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Aug 25, 2021
1 parent 4cb6ddb commit 8cc2991
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
5 changes: 5 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(import (fetchTarball {
url =
"https://github.com/edolstra/flake-compat/archive/12c64ca55c1014cdc1b16ed5a804aa8576601ff2.tar.gz";
sha256 = "0jm6nzb83wa6ai17ly9fzpqc40wg1viib8klq8lby54agpl213w5";
}) { src = ./.; }).defaultNix
30 changes: 5 additions & 25 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
{ ... }:
let
sources = import ./nix/sources.nix;
nixpkgs = import sources.nixpkgs { };
niv = import sources.niv { };
in with nixpkgs;
stdenv.mkDerivation {
name = "tree-grepper";
buildInputs = [
niv.niv
git

# tree-sitter C deps
pkgs.libiconv

# rust tools
cargo
cargo-edit
cargo-insta
cargo-watch
rustPackages.clippy
rustc
rustfmt
];
}
(import (fetchTarball {
url =
"https://github.com/edolstra/flake-compat/archive/12c64ca55c1014cdc1b16ed5a804aa8576601ff2.tar.gz";
sha256 = "0jm6nzb83wa6ai17ly9fzpqc40wg1viib8klq8lby54agpl213w5";
}) { src = ./.; }).shellNix

0 comments on commit 8cc2991

Please sign in to comment.