Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat termdown at 1.11.0 #23403

Closed

Conversation

clemensmanert
Copy link
Contributor

@clemensmanert clemensmanert commented Mar 2, 2017

Motivation for this change

Init termdown 1.11.0

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@clemensmanert, thanks for your PR! By analyzing the history of the files in this pull request, we identified @FRidh to be a potential reviewer.

name = "termdown-${version}";
version = "1.11.0";

src = pkgs.fetchFromGitHub {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't need src = pkgs.fetchFromGitHub, can simply be src = fetchFromGitHub


propagatedBuildInputs = [ dateutil click pyfiglet ];

meta = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do meta = with stdenv.lib; {

That way you don't have to write stdenv.lib in licenses and platforms

Copy link
Member

@grahamc grahamc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice review, @ndowens. @FRidh can you review for python?

@@ -0,0 +1,27 @@
{ pkgs, stdenv, fetchFromGitHub, buildPythonApplication,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't pass in pkgs, since you've passed in all your dependencies.

@@ -25935,6 +25935,8 @@ in {
};
};

termdown = callPackage ../applications/misc/termdown {};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python applications are not called via python-packages.nix but directly from all-packages.nix.

version = "1.11.0";

src = fetchFromGitHub {
rev = "d1e3504e02ad49013595112cb03fbf175822e58d";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

propagatedBuildInputs = [ dateutil click pyfiglet ];

meta = with stdenv.lib; {
description = "Starts a countdown to or from TIMESPEC";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

@7c6f434c
Copy link
Member

Fixed the style issues and pushed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants