mirror of
https://github.com/martinvonz/jj.git
synced 2024-11-10 05:44:29 +03:00
Configure a formatter for Nix.
I've choosen nixpkgs-fmt because it's the one whose output is most similar to the current style.
This commit is contained in:
parent
5b40eda47a
commit
0ddf550369
@ -38,7 +38,7 @@
|
||||
pname = "jujutsu";
|
||||
version = "unstable-${self.shortRev or "dirty"}";
|
||||
buildNoDefaultFeatures = true;
|
||||
buildFeatures = ["jujutsu-lib/legacy-thrift"];
|
||||
buildFeatures = [ "jujutsu-lib/legacy-thrift" ];
|
||||
|
||||
src = self;
|
||||
|
||||
@ -50,8 +50,10 @@
|
||||
};
|
||||
};
|
||||
nativeBuildInputs = [
|
||||
pkg-config gzip makeWrapper
|
||||
gzip
|
||||
installShellFiles
|
||||
makeWrapper
|
||||
pkg-config
|
||||
];
|
||||
buildInputs = [ openssl dbus sqlite ]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
@ -71,7 +73,6 @@
|
||||
installShellCompletion --zsh --name _${pname} ./completions.zsh
|
||||
'';
|
||||
}
|
||||
|
||||
)
|
||||
{
|
||||
inherit (final.darwin.apple_sdk.frameworks) Security SystemConfiguration;
|
||||
@ -101,5 +102,6 @@
|
||||
export RUST_BACKTRACE=1
|
||||
'';
|
||||
});
|
||||
formatter.${system} = pkgs.nixpkgs-fmt;
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user