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

luckybackup: init at 0.5.0 #76682

Merged
merged 1 commit into from Jan 22, 2020
Merged

luckybackup: init at 0.5.0 #76682

merged 1 commit into from Jan 22, 2020

Conversation

AndersonTorres
Copy link
Member

@AndersonTorres AndersonTorres commented Dec 30, 2019

Motivation for this change

New package

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

sha256 = "0nwjsk1j33pm8882jbj8h6nxn6n5ab9dxqpqkay65pfbhcjay0g8";
};

buildInputs = with stdenv.lib;
Copy link
Member

Choose a reason for hiding this comment

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

That shouldn't be needed here, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. I will update my "templates"!

@@ -2926,6 +2926,11 @@ in

epubcheck = callPackage ../tools/text/epubcheck { };

luckybackup = callPackage ../tools/backup/luckybackup {
inherit (qt5) qmake;
Copy link
Member

Choose a reason for hiding this comment

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

Please use libsForQt5.callPackage here. That makes it way easier to add further qt5 deps in the future if needed :)

Copy link
Member Author

Choose a reason for hiding this comment

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

It still needs to declare qmake, right?

pkgs/tools/backup/luckybackup/default.nix Outdated Show resolved Hide resolved
pkgs/tools/backup/luckybackup/default.nix Outdated Show resolved Hide resolved
Copy link
Member

@aanderse aanderse left a comment

Choose a reason for hiding this comment

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

Looking good. Just a few small things.

sha256 = "0nwjsk1j33pm8882jbj8h6nxn6n5ab9dxqpqkay65pfbhcjay0g8";
};

buildInputs = [ pkgconfig libtool rsync ssh ];
Copy link
Member

@aanderse aanderse Jan 11, 2020

Choose a reason for hiding this comment

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

Please move pkgconfig and libtool to nativeBuildInputs.


prePatch = ''
for File in luckybackup.pro menu/luckybackup-pkexec \
menu/luckybackup-su.desktop menu/luckybackup.desktop \
Copy link
Member

Choose a reason for hiding this comment

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

Please be consistent with spacing. I think 4 spaces from the prior line would be appropriate here.

platforms = platforms.linux;
};
}
# TODO: test in Darwin
Copy link
Member

Choose a reason for hiding this comment

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

Please remove. If you need + want someone to test this we can ping some people and see if they will.

Copy link
Member Author

Choose a reason for hiding this comment

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

@aanderse ping!

Copy link
Member

@aanderse aanderse left a comment

Choose a reason for hiding this comment

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

Thanks for pinging me. Github didn't e-mail me about your push so I had no idea.

This is looking great! Just drop the one flag, I'll test this, and merge.

Thanks!

pkgs/tools/backup/luckybackup/default.nix Outdated Show resolved Hide resolved
@AndersonTorres
Copy link
Member Author

Done!

@AndersonTorres AndersonTorres merged commit 37381f6 into NixOS:master Jan 22, 2020
@AndersonTorres AndersonTorres deleted the update/luckybackup branch November 30, 2020 19:57
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

3 participants