-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
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
kotatsu-dl: init at v 0.5 #375562
base: master
Are you sure you want to change the base?
kotatsu-dl: init at v 0.5 #375562
Conversation
Changes the hash to the right one
src = pkgs.fetchurl { | ||
url = "https://github.com/KotatsuApp/kotatsu-dl/releases/download/v${version}/kotatsu-dl.jar"; | ||
sha256 = "sha256-GI/PLt8wbVs2R78PbQg/9/Rea33j6CFQjuqhYIQGimM="; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to build from source and use fetchFromGithub
as the fetcher.
# Skip the unpackPhase since it's just a JAR file, not an archive | ||
phases = [ "installPhase" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When building from source with the correct fetcher, this will not be needed.
buildInputs = [ pkgs.openjdk ]; | ||
propagatedBuildInputs = [ pkgs.openjdk ]; | ||
|
||
installPhase = '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Start and end every manually-defined main phase with runHook pre<phaseName>
and runHook post<phaseName>
.
So here it would be
installPhase = ''
runHook preInstall
# Installing...
runHook postInstall
''
meta = with pkgs.lib; { | ||
description = "Easy-to-use cli manga downloader with a 1k+ sources supported"; | ||
license = licenses.gpl3; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expand the meta
attrset with additional information. We also need a maintainer. Would you be willing to maintain the package yourself?
For the additional meta
attributes, see the manual for meta attributes such as homepage
, maintainers
, platforms
, longdescription
, etc.
For meta.changelog
, use
changelog = "https://github.com/KotatsuApp/kotatsu-dl/releases/tag/v${version}";
|
||
meta = with pkgs.lib; { | ||
description = "Easy-to-use cli manga downloader with a 1k+ sources supported"; | ||
license = licenses.gpl3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license = licenses.gpl3; | |
license = licenses.gpl3Only; |
Since the licence does not allow using higher versions of GPLv3.
@@ -0,0 +1,41 @@ | |||
{ pkgs }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never use pkgs
in the top-level package inputs. Always directly import all that you need. So stdenv
, fetchFromGithub
, ... It allows for easier overrides of
the package.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.