mirror of
https://github.com/serokell/deploy-rs.git
synced 2024-11-30 03:20:29 +03:00
23 lines
584 B
Nix
23 lines
584 B
Nix
{
|
|
inputs = {
|
|
naersk.url = "github:nmattia/naersk/master";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, utils, naersk }:
|
|
utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
naersk-lib = pkgs.callPackage naersk { };
|
|
in
|
|
{
|
|
defaultPackage = naersk-lib.buildPackage ./.;
|
|
|
|
defaultApp = {
|
|
type = "app";
|
|
program = "${self.defaultPackage."${system}"}/bin/deploy";
|
|
};
|
|
});
|
|
}
|