New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zellij: init at 0.5.1 #120101
zellij: init at 0.5.1 #120101
Conversation
7c96f66
to
2cced50
Compare
pkgs/tools/misc/zellij/default.nix
Outdated
|
||
buildPhase = "cargo make"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
buildPhase = "cargo make"; |
That will most likely not work and break the build in nix. @danieldk any idea how to build using cargo make?
pkgs/top-level/all-packages.nix
Outdated
@@ -9716,6 +9716,11 @@ in | |||
|
|||
zdelta = callPackage ../tools/compression/zdelta { }; | |||
|
|||
zellij = callPackage ../tools/misc/zellij { | |||
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration; | |||
inherit (darwin) libiconv; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inherit (darwin) libiconv; |
I think you can write this expression as { lib, fetchFromGitHub, rustPlatform, stdenv, installShellFiles, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "zellij";
version = "0.5.0-beta";
src = fetchFromGitHub {
owner = "zellij-org";
repo = pname;
rev = "v${version}";
sha256 = "0mhxq0pr87lz36wfn3g9yvgx5k6xwf69yvvjvrm3vf1l6hwm9nf6";
};
cargoSha256 = "19465z1yv480hsx153nb7qz4hw1zp9wzqfm90sqsvp06zlpxps8g";
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
preCheck = ''
HOME=$TMPDIR
'';
postInstall = ''
installShellCompletion assets/completions/zellij.{bash,fish} --zsh assets/completions/_zellij
'';
meta = with lib; {
description = "A terminal workspace with batteries included";
homepage = "https://zellij.dev/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ therealansh ];
};
} |
@GrahamcOfBorg build zellij |
Result of 1 package built:
|
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)