lol

rates: refactor (#361423)

authored by

Fabian Affolter and committed by
GitHub
9bde0b12 a8e7c2e8

+42 -34
+42
pkgs/by-name/ra/rates/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + darwin, 5 + fetchFromGitHub, 6 + rustPlatform, 7 + versionCheckHook, 8 + }: 9 + 10 + rustPlatform.buildRustPackage rec { 11 + pname = "rates"; 12 + version = "0.7.0"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "lunush"; 16 + repo = "rates"; 17 + rev = "refs/tags/${version}"; 18 + hash = "sha256-zw2YLTrvqbGKR8Dg5W+kJTDKIfro+MNyjHXfZMXZhaw="; 19 + }; 20 + 21 + cargoHash = "sha256-5EcTeMfa1GNp1q60qSgEi/I3298hXUD1Vc1K55XGW4I="; 22 + 23 + buildInputs = lib.optional stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ]; 24 + 25 + nativeInstallCheckInputs = [ versionCheckHook ]; 26 + 27 + doInstallCheck = true; 28 + 29 + versionCheckProgramArg = [ "--version" ]; 30 + 31 + meta = with lib; { 32 + description = "CLI tool that brings currency exchange rates right into your terminal"; 33 + homepage = "https://github.com/lunush/rates"; 34 + changelog = "https://github.com/lunush/rates/releases/tag/${version}"; 35 + license = with licenses; [ 36 + asl20 37 + mit 38 + ]; 39 + maintainers = with maintainers; [ fab ]; 40 + mainProgram = "rates"; 41 + }; 42 + }
-30
pkgs/tools/misc/rates/default.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchFromGitHub 4 - , rustPlatform 5 - , Security 6 - }: 7 - 8 - rustPlatform.buildRustPackage rec { 9 - pname = "rates"; 10 - version = "0.7.0"; 11 - 12 - src = fetchFromGitHub { 13 - owner = "lunush"; 14 - repo = pname; 15 - rev = version; 16 - sha256 = "sha256-zw2YLTrvqbGKR8Dg5W+kJTDKIfro+MNyjHXfZMXZhaw="; 17 - }; 18 - 19 - cargoHash = "sha256-5EcTeMfa1GNp1q60qSgEi/I3298hXUD1Vc1K55XGW4I="; 20 - 21 - buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security; 22 - 23 - meta = with lib; { 24 - description = "CLI tool that brings currency exchange rates right into your terminal"; 25 - homepage = "https://github.com/lunush/rates"; 26 - license = with licenses; [ asl20 /* or */ mit ]; 27 - maintainers = with maintainers; [ fab ]; 28 - mainProgram = "rates"; 29 - }; 30 - }
-4
pkgs/top-level/all-packages.nix
··· 18449 18449 18450 18450 qzdl = libsForQt5.callPackage ../games/qzdl { }; 18451 18451 18452 - rates = callPackage ../tools/misc/rates { 18453 - inherit (darwin.apple_sdk.frameworks) Security; 18454 - }; 18455 - 18456 18452 rbspy = darwin.apple_sdk_11_0.callPackage ../development/tools/rbspy { }; 18457 18453 18458 18454 pick-colour-picker = python3Packages.callPackage ../applications/graphics/pick-colour-picker {