Skip to content

Commit

Permalink
Alias old attributes and binary
Browse files Browse the repository at this point in the history
  • Loading branch information
notgne2 committed Aug 4, 2021
1 parent 380a78e commit 632de2e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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}";
Expand All @@ -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;
Expand Down

0 comments on commit 632de2e

Please sign in to comment.