Skip to content

Commit

Permalink
flakify
Browse files Browse the repository at this point in the history
  • Loading branch information
kmein committed Jan 14, 2025
1 parent 56711f7 commit a3e9072
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/refresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-20.09
- run: nix-shell --run generate
nix_path: nixpkgs=channel:nixos-24.11
- run: nix run .#generate
- uses: EndBug/add-and-commit@v7
with:
default_author: github_actions
Expand Down
94 changes: 94 additions & 0 deletions flake.lock

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

18 changes: 18 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
description = "A very basic flake";

inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
recht.url = "github:kmein/recht";
};

outputs = { self, recht, nixpkgs }: {
apps.x86_64-linux.generate = {
type = "app";
program = toString (nixpkgs.legacyPackages.x86_64-linux.writers.writeDash "generate" ''
rm -rf laws
${recht.packages.x86_64-linux.recht}/bin/recht dump laws | tee index.md
'');
};
};
}
16 changes: 0 additions & 16 deletions shell.nix

This file was deleted.

0 comments on commit a3e9072

Please sign in to comment.