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 10, 2021
1 parent 4ffc133 commit 0e45e7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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 Down

0 comments on commit 0e45e7a

Please sign in to comment.