Something went wrong. Try again.
Never forget your old nix deployments
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, rustPlatform, installShellFiles, stdenv,}:let toml = (lib.importTOML ./Cargo.toml).package;inrustPlatform.buildRustPackage { pname = "lethe"; inherit (toml) version;
src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ./.)) ( lib.fileset.unions [ ./Cargo.toml ./Cargo.lock ./src ] ); };
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd lethe \ --bash <($out/bin/lethe completions bash) \ --fish <($out/bin/lethe completions fish) \ --zsh <($out/bin/lethe completions zsh) '';
meta = { inherit (toml) homepage description; license = lib.licenses.eupl12; maintainers = with lib.maintainers; [ isabelroses ]; mainProgram = "lethe"; };}