add: flake.nix and other required files for nix build

This commit is contained in:
oluceps
2022-10-01 22:34:39 +08:00
parent 1684756b79
commit 7e9549c05a
3 changed files with 103 additions and 0 deletions

19
flake.nix Normal file
View File

@ -0,0 +1,19 @@
{
description = "Another Clash Kernel";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/master";
inputs.utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, utils }:
(utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
defaultPackages = pkgs.callPackage ./. { };
})
);
}