Compare commits
7 Commits
c40a2ac98b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| edb6e6fac1 | |||
| c06ca8a6cd | |||
| 469d8d7fce | |||
| da935b4ccf | |||
| b68ff35b8e | |||
| 6fcc233103 | |||
| 3c2fe7775b |
6
flake.lock
generated
6
flake.lock
generated
@@ -2,11 +2,11 @@
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1770197578,
|
||||
"narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
|
||||
"lastModified": 1771008912,
|
||||
"narHash": "sha256-gf2AmWVTs8lEq7z/3ZAsgnZDhWIckkb+ZnAo5RzSxJg=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
|
||||
"rev": "a82ccc39b39b621151d6732718e3e250109076fa",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -16,16 +16,16 @@
|
||||
../../modules/de/gnome.nix
|
||||
../../modules/common/pipewire.nix
|
||||
../../modules/userapps/kondo_timer.nix
|
||||
../../modules/userapps/gaming.nix
|
||||
#../../modules/userapps/gaming.nix
|
||||
../../modules/common/nix.nix
|
||||
../../modules/common/networking.nix
|
||||
../../modules/common/shell.nix
|
||||
../../modules/common/security.nix
|
||||
../../modules/common/wine.nix
|
||||
#../../modules/common/wine.nix
|
||||
../../modules/common/libvirt.nix
|
||||
../../modules/common/keyd.nix
|
||||
../../modules/common/unbound-cloud.nix
|
||||
../../modules/common/yggdrasil.nix
|
||||
#../../modules/common/yggdrasil.nix
|
||||
];
|
||||
networking.hostName = "puter";
|
||||
# This will be overridden by system/default.nix
|
||||
|
||||
39
modules/common/weathr.nix
Normal file
39
modules/common/weathr.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "weathr";
|
||||
version = "1.3.0"; # Use the latest version from the repository
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "veirt";
|
||||
repo = "weathr";
|
||||
rev = "v${version}"; # Tags are in the format "v1.3.0"
|
||||
hash = "sha256-JwI5a+O5Nu39Nr0st5yBLTM5kPLC8UIGAoBMqxnOOl4="; # Replace with the actual hash after the first build attempt
|
||||
};
|
||||
|
||||
# Use this for the initial build to let Nix tell you the correct hash
|
||||
cargoHash = "sha256-Yj1WxpOLL8GiVpCebPZQgdw+L9g+4CNY7n2z8PJQz4k=";
|
||||
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
#postInstall = ''
|
||||
#'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A terminal weather app with ASCII animations driven by real-time weather data";
|
||||
homepage = "https://github.com/veirt/weathr";
|
||||
#changelog = "https://github.com/veirt/weathr/blob/v${version}/CHANGELOG.md"; # Check if a CHANGELOG.md exists
|
||||
license = licenses.gpl3Only;
|
||||
# maintainers = with maintainers; [ ]; # Add your handle if you plan to upstream
|
||||
mainProgram = "weathr";
|
||||
};
|
||||
}
|
||||
@@ -12,6 +12,7 @@
|
||||
ungoogled-chromium
|
||||
tor-browser
|
||||
librewolf
|
||||
qutebrowser
|
||||
transmission_4-gtk
|
||||
bitwarden-desktop
|
||||
];
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
...
|
||||
}: let
|
||||
rustnet = pkgs.callPackage ../../modules/common/rustnet.nix {};
|
||||
weathr = pkgs.callPackage ../common/weathr.nix {};
|
||||
in {
|
||||
programs.neovim = {defaultEditor = true;};
|
||||
environment.systemPackages = with pkgs; [
|
||||
@@ -30,5 +31,6 @@ in {
|
||||
nh
|
||||
tty-clock
|
||||
rustnet
|
||||
weathr
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user