mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
format
This commit is contained in:
@@ -2,21 +2,23 @@
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
openweathermap-repo = pkgs.fetchFromGitHub {
|
||||
owner = "ip1981";
|
||||
repo = "openweathermap";
|
||||
rev = "9cfef7b14ac5af7109449b54b1cb352b4c76167a";
|
||||
sha256 = "0sm43wicvw2fy7nq65s8vch6jjb5bszqr4ilnhibayamj4jcpw53";
|
||||
};
|
||||
openweathermap = pkgs.haskellPackages.callCabal2nix "openweathermap" openweathermap-repo {};
|
||||
openweathermap = pkgs.haskellPackages.callCabal2nix "openweathermap" openweathermap-repo { };
|
||||
openweathermap-key = lib.strings.fileContents <secrets/openweathermap.key>;
|
||||
in {
|
||||
in
|
||||
{
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
weather = pkgs.writers.writeDashBin "weather" ''
|
||||
${openweathermap}/bin/openweathermap --api-key ${openweathermap-key} "$@"
|
||||
'';
|
||||
};
|
||||
|
||||
environment.systemPackages = [pkgs.weather];
|
||||
environment.systemPackages = [ pkgs.weather ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user