Skip to content

Commit

Permalink
docs: add flake example
Browse files Browse the repository at this point in the history
  • Loading branch information
MakiseKurisu committed Jul 24, 2024
1 parent dbd28b5 commit aeedc57
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/flake/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/flake.lock
/result
28 changes: 28 additions & 0 deletions example/flake/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
description = "dewclaw flake example";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
dewclaw.url = "github:MakiseKurisu/dewclaw";
};

outputs =
inputs@{ self
, nixpkgs
, flake-parts
, dewclaw
, ...
}: flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
formatter = pkgs.nixpkgs-fmt;
packages = {
dewclaw-env = pkgs.callPackage dewclaw {
configuration = import ../classic/example.nix;
};
default = self.packages.x86_64-linux.dewclaw-env;
};
};
};
}

0 comments on commit aeedc57

Please sign in to comment.