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

pscircle: init at v1.0.0 #42870

Merged
merged 1 commit into from Jul 6, 2018
Merged

pscircle: init at v1.0.0 #42870

merged 1 commit into from Jul 6, 2018

Conversation

ldesgoui
Copy link
Contributor

@ldesgoui ldesgoui commented Jul 2, 2018

Motivation for this change

https://gitlab.com/mildlyparallel/pscircle compiled from source

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Fits CONTRIBUTING.md.

@srhb
Copy link
Contributor

srhb commented Jul 2, 2018

@GrahamcOfBorg eval

@ryantm
Copy link
Member

ryantm commented Jul 3, 2018

@GrahamcOfBorg eval

name = "pscircle-${version}";
version = "1.0.0";

src = fetchGit {
Copy link
Member

@ryantm ryantm Jul 3, 2018

Choose a reason for hiding this comment

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

If the build does not require any special git information, it is better to use fetchFromGitLab, since that will download the src much more efficiently.

src = fetchGit {
url = "https://gitlab.com/mildlyparallel/pscircle.git";
rev = "3ddc37dd859472a28e2d12b518201db7793f004a";
};
Copy link
Member

Choose a reason for hiding this comment

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

This is failing to evaluate because you are missing the sha256 attribute that would make this a fixed-output derivation. Here is an example: https://github.com/NixOS/nixpkgs/blob/56904d7c423f2b13b37fbd29f39bbb4b52bc7824/pkgs/misc/gnuk/default.nix

You can get the correct sha256 attribute by running nix-prefetch-url -A pscircle.src.

@ldesgoui
Copy link
Contributor Author

ldesgoui commented Jul 3, 2018 via email

url = "https://gitlab.com/mildlyparallel/pscircle.git";
src = fetchFromGitLab {
owner = "mildlyparallel";
repo = "pscircle";
rev = "3ddc37dd859472a28e2d12b518201db7793f004a";
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 rev = "v${version}"; because this will make it easier to update the package

@ryantm
Copy link
Member

ryantm commented Jul 3, 2018

@GrahamcOfBorg build pscircle

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: pscircle

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: pscircle

Partial log (click to expand)

Installing pscircle to /nix/store/rbsqazcipqgkmzmbxvr6m6andd1xlr2l-pscircle-1.0.0/bin/pscircle
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/rbsqazcipqgkmzmbxvr6m6andd1xlr2l-pscircle-1.0.0
shrinking /nix/store/rbsqazcipqgkmzmbxvr6m6andd1xlr2l-pscircle-1.0.0/bin/pscircle
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/rbsqazcipqgkmzmbxvr6m6andd1xlr2l-pscircle-1.0.0/bin
patching script interpreter paths in /nix/store/rbsqazcipqgkmzmbxvr6m6andd1xlr2l-pscircle-1.0.0
checking for references to /build in /nix/store/rbsqazcipqgkmzmbxvr6m6andd1xlr2l-pscircle-1.0.0...
/nix/store/rbsqazcipqgkmzmbxvr6m6andd1xlr2l-pscircle-1.0.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: pscircle

Partial log (click to expand)

Installing pscircle to /nix/store/4876dj8613a25pslfpkiw9bq99jscnm9-pscircle-1.0.0/bin/pscircle
glibPreFixupPhase
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/4876dj8613a25pslfpkiw9bq99jscnm9-pscircle-1.0.0
shrinking /nix/store/4876dj8613a25pslfpkiw9bq99jscnm9-pscircle-1.0.0/bin/pscircle
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/4876dj8613a25pslfpkiw9bq99jscnm9-pscircle-1.0.0/bin
patching script interpreter paths in /nix/store/4876dj8613a25pslfpkiw9bq99jscnm9-pscircle-1.0.0
checking for references to /build in /nix/store/4876dj8613a25pslfpkiw9bq99jscnm9-pscircle-1.0.0...
/nix/store/4876dj8613a25pslfpkiw9bq99jscnm9-pscircle-1.0.0

@ldesgoui
Copy link
Contributor Author

ldesgoui commented Jul 3, 2018

Thanks for indulging with me Ryan, you've been very helpful

@ryantm
Copy link
Member

ryantm commented Jul 3, 2018

Okay, please squash the commits into one commit with the message "pscircle: init at 1.0.0" and then it should be good to go.

@matthewbauer matthewbauer merged commit 0ce00ea into NixOS:master Jul 6, 2018
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

5 participants