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
pscircle: init at v1.0.0 #42870
Conversation
@GrahamcOfBorg eval |
@GrahamcOfBorg eval |
name = "pscircle-${version}"; | ||
version = "1.0.0"; | ||
|
||
src = fetchGit { |
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.
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"; | ||
}; |
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.
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
.
Cheers, will fix ASAP
…On Tue, Jul 3, 2018, 04:26 Ryan Mulligan ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In pkgs/os-specific/linux/pscircle/default.nix
<#42870 (comment)>:
> @@ -0,0 +1,27 @@
+{ stdenv, meson, pkgconfig, ninja, cairo
+}:
+
+stdenv.mkDerivation rec {
+ name = "pscircle-${version}";
+ version = "1.0.0";
+
+ src = fetchGit {
+ url = "https://gitlab.com/mildlyparallel/pscircle.git";
+ rev = "3ddc37dd859472a28e2d12b518201db7793f004a";
+ };
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#42870 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACW65jlAlVKMBHR2Lb3bUYSzShpNIRWBks5uCtZkgaJpZM4U_OGE>
.
|
url = "https://gitlab.com/mildlyparallel/pscircle.git"; | ||
src = fetchFromGitLab { | ||
owner = "mildlyparallel"; | ||
repo = "pscircle"; | ||
rev = "3ddc37dd859472a28e2d12b518201db7793f004a"; |
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.
please use rev = "v${version}";
because this will make it easier to update the package
@GrahamcOfBorg build pscircle |
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)
|
Success on x86_64-linux (full log) Attempted: pscircle Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: pscircle Partial log (click to expand)
|
Thanks for indulging with me Ryan, you've been very helpful |
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. |
Motivation for this change
https://gitlab.com/mildlyparallel/pscircle compiled from source
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)