Skip to content

Commit

Permalink
Add update script
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird committed Feb 18, 2024
1 parent 0a16c83 commit c1ae252
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ backups
# Generated files
obj
bin
result
5 changes: 1 addition & 4 deletions nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
, version
}:

# to update deps.nix:
# checkout out github:gepbird/nixpkgs/moebot-fetch-deps
# $ pkgs/tools/moebot/update.sh
# copy pkgs/tools/moebot/deps.nix to this directory
buildDotnetModule {
pname = "moe";
inherit version;

src = ../.;

# to update, run `nix/update.sh` from the root of this repo
nugetDeps = ./deps.nix;

projectFile = [ "moe.csproj" ];
Expand Down
3 changes: 3 additions & 0 deletions nix/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
nix build .#default.passthru.fetch-deps
./result nix/deps.nix

0 comments on commit c1ae252

Please sign in to comment.