Skip to content

Commit

Permalink
Use update-nix-direnv from the nix-update-scripts repository
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Oct 18, 2024
1 parent 3ac77bd commit 55fb2fc
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 127 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/test-update-nix-direnv.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ alias pack := package
package board="attiny85":
^nix build ".#pwm-fan-controller-{{ board }}"

alias t := test

test:
nu update-nix-direnv-tests.nu

alias u := update
alias up := update

Expand All @@ -85,4 +80,3 @@ update:
^cargo update
cd "{{ justfile_directory() }}/boards/qt-py-ch32v203"
^cargo update
nu update-nix-direnv.nu
195 changes: 189 additions & 6 deletions flake.lock

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

3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
};
crane.url = "github:ipetkov/crane";
flake-utils.url = "github:numtide/flake-utils";
nix-update-scripts.url = "github:jwillikers/nix-update-scripts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
Expand All @@ -28,6 +29,7 @@
advisory-db,
crane,
flake-utils,
nix-update-scripts,
nixpkgs,
pre-commit-hooks,
rust-overlay,
Expand Down Expand Up @@ -433,6 +435,7 @@
in
{
apps = {
inherit (nix-update-scripts.apps.${system}) update-nix-direnv;
attiny85.flash.avrdude = boards.attiny85.apps.flash.avrdude;
default = self.apps.${system}.attiny85.flash.avrdude;
pico.flash.elf2uf2-rs = boards.pico.apps.flash.elf2uf2-rs;
Expand Down
29 changes: 0 additions & 29 deletions update-nix-direnv-tests.nu

This file was deleted.

Loading

0 comments on commit 55fb2fc

Please sign in to comment.