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

emem: 0.2.41 -> 0.2.42 #23976

Merged
merged 1 commit into from Mar 18, 2017
Merged

emem: 0.2.41 -> 0.2.42 #23976

merged 1 commit into from Mar 18, 2017

Conversation

ebzzry
Copy link

@ebzzry ebzzry commented Mar 17, 2017

Motivation for this change
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.

@@ -2,14 +2,14 @@

stdenv.mkDerivation rec {
pname = "emem";
version = "0.2.41";
version = "0.2.42";
name = "${pname}-${version}";

inherit jdk;

src = fetchurl {
Copy link
Contributor

Choose a reason for hiding this comment

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

Use fetchFromGitHub instead of fetchurl

Copy link
Author

Choose a reason for hiding this comment

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

I need the JAR file for this to work.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not talking about jdk; talking about chaning fetchurl to fetchFromGitHub

Copy link
Author

Choose a reason for hiding this comment

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

Can fetchFromGitHub download a release file?

Copy link
Contributor

@ndowens ndowens Mar 18, 2017

Choose a reason for hiding this comment

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

yup, easily. you look at the release url, such as https://github.com/ebzzry/emem/archive/v0.2.42.tar.gz at the end it is v0.2.42 ; so your rev would be:
rev = "v${version}";
if it didnt have v before version, rev would be rev = version or rev = "${version}"; whichever

Copy link
Author

Choose a reason for hiding this comment

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

Okay! However, I don’t need the .tar.gz file. It’s the .jar file, specifically, that I need.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah, hmm didn't think about that :) Sorry, well if you didn't know the above method, at least you know now :)

Copy link
Author

Choose a reason for hiding this comment

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

On the other hand, I’m experimenting with a source build! :)

name = "${pname}-${version}";

inherit jdk;

src = fetchurl {
url = "https://github.com/ebzzry/${pname}/releases/download/v${version}/${pname}.jar";
sha256 = "0pg7m4fyrcbm8d5nj96xvvh1cvml501rw34hniqq384waifr2kqs";
sha256 = "0zm3sqgbiaj44nkgkjiifxwwyrcjs42nry6zmbg3dnnpd0v82v8j";
};

buildInputs = [ ];
Copy link
Contributor

Choose a reason for hiding this comment

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

If there is no buildinputs I'd remove the line

Copy link
Author

Choose a reason for hiding this comment

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

Fixed!

@FRidh
Copy link
Member

FRidh commented Mar 18, 2017

Should this go in?

@ebzzry
Copy link
Author

ebzzry commented Mar 18, 2017

Yes, for now! :)

@FRidh FRidh merged commit 553964c into NixOS:master Mar 18, 2017
@ebzzry
Copy link
Author

ebzzry commented Mar 18, 2017

Thanks!

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

4 participants