Turn repo into flake

This commit is contained in:
Joscha 2023-03-04 18:45:07 +01:00
parent 65fa1b8afd
commit 582cac8421
4 changed files with 94 additions and 0 deletions

21
flake.nix Normal file
View file

@ -0,0 +1,21 @@
{
description = "TUI client for euphoria.io, a threaded real-time chat platform";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
naersk.url = "github:nix-community/naersk";
naersk.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, flake-utils, naersk }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
naersk' = pkgs.callPackage naersk { };
in
rec {
packages.default = naersk'.buildPackage { src = ./.; };
}
);
}