mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
commit
77ed227b69
25
flake.nix
Normal file
25
flake.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
description = "kitchen";
|
||||
inputs.nixpkgs = {
|
||||
type = "indirect";
|
||||
id = "nixpkgs";
|
||||
};
|
||||
|
||||
inputs.gitignore = { url = "github:hercules-ci/gitignore.nix"; flake = false; };
|
||||
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = {self, nixpkgs, flake-utils, gitignore}:
|
||||
let
|
||||
kitchenGen = import ./kitchen.nix;
|
||||
in
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let pkgs = import nixpkgs { inherit system; }; in
|
||||
{
|
||||
defaultPackage = (kitchenGen {
|
||||
nixpkgs = pkgs;
|
||||
gitignoreSrc = pkgs.callPackage gitignore { };
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
8
kitchen.nix
Normal file
8
kitchen.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{nixpkgs, gitignoreSrc}:
|
||||
with nixpkgs;
|
||||
rustPlatform.buildRustPackage {
|
||||
pname = "kitchen";
|
||||
version = "0.0.2";
|
||||
src = gitignoreSrc.gitignoreSource ./.;
|
||||
cargoSha256 = "sha256-aSw+BX90rmcagVOkLVEfjlqTi+dv4QVT7JPZQd3eKjA=";
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user