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

Update scripts #36233

Closed
wants to merge 2 commits into from
Closed

Update scripts #36233

wants to merge 2 commits into from

Conversation

NeQuissimus
Copy link
Member

This is a sample of what I am using to update the packages I maintain.
I figured it was time to send them upstream.

I am attaching the script for ammonite as a sample.

a) Is there a better way of doing this?
b) What do you think?
c) The helper script is specific to semantic versioning

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Partial log (click to expand)

Package ‘oraclejre-8u161’ in /var/lib/gc-of-borg/nix-test-rs-2/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-aarch64-community-2/pkgs/development/compilers/oraclejdk/jdk-linux-base.nix:71 has an unfree license (‘unfree’), refusing to evaluate.

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

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

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Partial log (click to expand)

trying https://github.com/lihaoyi/Ammonite/releases/download/1.0.5/2.12-1.0.5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 20 25.9M   20 5447k    0     0  7056k      0  0:00:03 --:--:--  0:00:03 7047k
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   600    0   600    0     0   1470      0 --:--:-- --:--:-- --:--:--  1466

 70 25.9M   70 18.4M    0     0  10.3M      0  0:00:02  0:00:01  0:00:01 10.3M
  0 37.2M    0 34386    0     0  25642      0  0:25:22  0:00:01  0:25:21 25642
100 25.9M  100 25.9M    0     0  10.7M      0  0:00:02  0:00:02 --:--:-- 10.7M


  4 37.2M    4 1529k    0     0   674k      0  0:00:56  0:00:02  0:00:54 1612k
 27 37.2M   27 10.2M    0     0  3199k      0  0:00:11  0:00:03  0:00:08 5405k
 65 37.2M   65 24.2M    0     0  5811k      0  0:00:06  0:00:04  0:00:02 8461k
 97 37.2M   97 36.1M    0     0  7022k      0  0:00:05  0:00:05 --:--:-- 9411k
100 37.2M  100 37.2M    0     0  7129k      0  0:00:05  0:00:05 --:--:-- 9510k
building path(s) ‘/nix/store/c882dflhrz4jdn65nrzmwyak49h0yz6j-ammonite-1.0.5’
installing
/nix/store/c882dflhrz4jdn65nrzmwyak49h0yz6j-ammonite-1.0.5

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Partial log (click to expand)

building '/nix/store/d3m056fz200qqm2vvfn9r1m1msnvph25-2.12-1.0.5.drv'...

trying https://github.com/lihaoyi/Ammonite/releases/download/1.0.5/2.12-1.0.5
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   600    0   600    0     0   1158      0 --:--:-- --:--:-- --:--:--  1156
100 37.2M  100 37.2M    0     0  7077k      0  0:00:05  0:00:05 --:--:--  9.7M
building '/nix/store/ryj1f18d4nczp576b6jxnq8z08q3mgbq-ammonite-1.0.5.drv'...
installing
/nix/store/vl9y5x2pwv4j9xacq5j2m2hxlw2wj3wq-ammonite-1.0.5

@jtojnar
Copy link
Contributor

jtojnar commented Mar 3, 2018

Why not just check for release on the GitHub releases? This is how GNOME does it (FTP server instead of GitHub).

I think there was some talk about fetchFromGitHub having built-in updateScript but I am not sure if it ever got implemented.

Edit: See #33848

@jtojnar
Copy link
Contributor

jtojnar commented Mar 13, 2018

Actually, tp_smapi does precisely that with GitHub tags.

@timokau
Copy link
Member

timokau commented Jul 14, 2018

Is this made obsolete by https://github.com/ryantm/nixpkgs-update?

@NeQuissimus NeQuissimus deleted the update_scripts branch February 14, 2021 01:17
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