From 632de2e950f52b5b7f9c568a07ef427fe344c93d Mon Sep 17 00:00:00 2001 From: notgne2 Date: Wed, 4 Aug 2021 01:46:37 -0700 Subject: [PATCH] Alias old attributes and binary --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 2f3540f8..a6427e84 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,7 @@ yeet = naersk-lib.buildPackage (darwinOptions // { root = ./.; + overrideMain = super: super // { postInstall = "ln -s $out/bin/yeet $out/bin/deploy"; }; }) // { meta.description = "A Simple multi-profile Nix-flake deploy tool"; }; lib = rec { @@ -135,12 +136,16 @@ defaultPackage = self.packages."${system}".yeet; packages.yeet = pkgs.yeet.yeet; + packages.deploy-rs = builtins.trace "`packages.deploy-rs` has been renamed, please use `packages.yeet` instead" self.packages."${system}".yeet; + defaultApp = self.apps."${system}".yeet; apps.yeet = { type = "app"; - program = "${self.defaultPackage."${system}"}/bin/deploy"; + program = "${self.defaultPackage."${system}"}/bin/yeet"; }; + apps.deploy-rs = builtins.trace "`apps.deploy-rs` has been renamed, please use `apps.yeet` instead" self.packages."${system}".yeet; + devShell = pkgs.mkShell { inputsFrom = [ self.packages.${system}.yeet ]; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; @@ -158,6 +163,7 @@ checks = { yeet = self.defaultPackage.${system}.overrideAttrs (super: { doCheck = true; }); + deploy-rs = builtins.trace "`checks.deploy-rs` has been renamed, please use `checks.yeet` instead" self.packages."${system}".yeet; }; lib = pkgs.yeet.lib;