Corrected weathr call, made weathr smaller, update
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -2,11 +2,11 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770197578,
|
"lastModified": 1771008912,
|
||||||
"narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
|
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
|
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -20,45 +20,14 @@ rustPlatform.buildRustPackage rec {
|
|||||||
# Use this for the initial build to let Nix tell you the correct hash
|
# Use this for the initial build to let Nix tell you the correct hash
|
||||||
cargoHash = "sha256-Yj1WxpOLL8GiVpCebPZQgdw+L9g+4CNY7n2z8PJQz4k=";
|
cargoHash = "sha256-Yj1WxpOLL8GiVpCebPZQgdw+L9g+4CNY7n2z8PJQz4k=";
|
||||||
|
|
||||||
# If the project has a Cargo.lock, buildRustPackage will use it.
|
|
||||||
# If you need to vendor dependencies manually, you can use cargoDeps instead.
|
|
||||||
# cargoDeps = rustPlatform.importCargoLock {
|
|
||||||
# lockFile = ./Cargo.lock; # Not applicable when fetching from GitHub
|
|
||||||
# };
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
installShellFiles
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Add any necessary build inputs here.
|
|
||||||
# Based on the repository, it seems like a standard Rust terminal application.
|
|
||||||
# It might not have external C library dependencies, but if it does, add them here.
|
|
||||||
buildInputs = [
|
|
||||||
# Example: dbus, openssl, etc.
|
|
||||||
];
|
|
||||||
|
|
||||||
# If the project has tests that require network access or other special setup,
|
|
||||||
# you might need to disable them or modify checkFlags.
|
|
||||||
# checkFlags = [
|
|
||||||
# # Add flags to skip problematic tests if necessary
|
|
||||||
# ];
|
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# Install shell completions if the application generates them.
|
|
||||||
# Check if weathr supports a command like `weathr completions bash`.
|
|
||||||
# Based on the README, it doesn't mention shell completion installation.
|
|
||||||
# If it does, you can uncomment and adapt the logic below.
|
|
||||||
# compdir=$(mktemp -d)
|
|
||||||
# $out/bin/weathr completions bash > $compdir/weathr.bash
|
|
||||||
# $out/bin/weathr completions zsh > $compdir/_weathr
|
|
||||||
# $out/bin/weathr completions fish > $compdir/weathr.fish
|
|
||||||
# installShellCompletion --cmd weathr \
|
|
||||||
# --bash $compdir/weathr.bash \
|
|
||||||
# --zsh $compdir/_weathr \
|
|
||||||
# --fish $compdir/weathr.fish
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
rustnet = pkgs.callPackage ../../modules/common/rustnet.nix {};
|
rustnet = pkgs.callPackage ../../modules/common/rustnet.nix {};
|
||||||
weathr = pkgs.callPackafe ../common/weathr.nix {};
|
weathr = pkgs.callPackage ../common/weathr.nix {};
|
||||||
in {
|
in {
|
||||||
programs.neovim = {defaultEditor = true;};
|
programs.neovim = {defaultEditor = true;};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|||||||
Reference in New Issue
Block a user