Updating nixpkgs packages since 2018
Go to file
2018-02-26 06:29:42 -08:00
src work from before? 2018-01-11 19:25:40 -08:00
check-result.sh add kill to timeout 2018-02-26 06:18:42 -08:00
hello.nix initial commit 2017-11-02 19:25:57 -07:00
LICENSE initial commit 2017-11-02 19:25:57 -07:00
nix-update.cabal work from before? 2018-01-11 19:25:40 -08:00
package.yaml work from before? 2018-01-11 19:25:40 -08:00
README.md add list of currently interesting files 2018-02-26 06:29:42 -08:00
Setup.hs initial commit 2017-11-02 19:25:57 -07:00
stack.yaml work from before? 2018-01-11 19:25:40 -08:00
up.sh mention maintainers 2018-02-26 08:37:24 +01:00
ups.sh add kill to timeout 2018-02-26 06:18:42 -08:00

nix-update

Currently interesting files ups.sh, up.sh, check-result.sh.

  1. get a list of oudated packages
    git clone https://github.com/ryantm/repology-api.git
    cabal2nix --shell --hpack . > shell.nix && nix-build shell.nix && result/bin/repology-api > packages-to-update.txt
  1. Prepare a nixpkgs git repository where you want to do the updates. It expects origin to be where you want to push your updates. It clobbers any changes in that directory with git reset --hard. USE THIS ON A NEWLY CLONED REPO ONLY FOR THIS PURPOSE.
  2. copy list of ones you want to update into ups.sh ARGUMENTS variable
  3. Be in the directory of your update git repository. run ups.sh if it succeeds, it will make commits and push updates to the origin remote!

old notes

git ls-remote --refs --tags git://github.com/mattermost/mattermost-server.git | grep -v "rc" | tail -1

nix-instantiate -I nixpkgs=/home/ryantm/p/nixpkgs --eval --expr 'let pkgs = import {}; in builtins.elemAt pkgs.mattermost.src.urls 0'

nix-instantiate -I nixpkgs=/home/ryantm/p/nixpkgs --eval --expr 'let pkgs = import { config = {permittedInsecurePackages = [ "autotrace-0.31.1" ];}; }; aV = builtins.attrValues pkgs; in map (v: builtins.elemAt v.src.urls 0) (builtins.filter (builtins.hasAttr "src") (builtins.filter builtins.isAttrs aV))'

wget "https://repology.org/api/v1/metapackages/?inrepo=nix_unstable&outdated=on" wget "https://nixos.org/nixpkgs/packages-unstable.json.gz"