aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authornotgne22020-09-28 10:48:21 -0700
committernotgne22020-09-28 10:48:21 -0700
commit76dbef54af3bbfbf81edd8a45f6ba8dea0db47f9 (patch)
tree16e2451a5c223f3b80d5568433e899355c812426 /flake.nix
stuff
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..2efb943
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,22 @@
+{
+ 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-rs";
+ };
+ });
+}