update nixpkgs-update

* fail update if updateScript fails
This commit is contained in:
Ryan Mulligan 2020-08-01 09:54:23 -07:00
parent 4c1d7ce55b
commit fb15d7ff83
2 changed files with 13 additions and 11 deletions

View file

@ -10,12 +10,14 @@ let
];
});
nixpkgs-update-bin = "${nixpkgs-update}/bin/nixpkgs-update";
nixpkgsUpdateSystemDependencies = with pkgs; [
nix # for nix-shell used by python packges to update fetchers
gnugrep
cachix
curl
] ++ [ nixpkgs-update ] ++ nixpkgs-update.propagatedBuildInputs;
];
nixpkgs-update-github-releases = "${sources.nixpkgs-update-github-releases}/main.py";
nixpkgs-update-pypi-releases = "${sources.nixpkgs-update-pypi-releases}/main.py";
@ -63,16 +65,16 @@ in
serviceConfig = nixpkgsUpdateServiceConfigCommon;
script = ''
nixpkgs-update delete-done --delete
${nixpkgs-update-bin} delete-done --delete
grep -rl $XDG_CACHE_HOME/nixpkgs -e buildPython | grep default | \
${nixpkgs-update-pypi-releases} > /var/lib/nixpkgs-update/packages-to-update.txt
nixpkgs-update update-list --pr --cve --cachix --outpaths --nixpkgs-review
nixpkgs-update delete-done --delete
${nixpkgs-update-bin} update-list --pr --cve --cachix --outpaths --nixpkgs-review
${nixpkgs-update-bin} delete-done --delete
${nixpkgs-update-github-releases} > /var/lib/nixpkgs-update/packages-to-update.txt
nixpkgs-update update-list --pr --cve --cachix --outpaths --nixpkgs-review
nixpkgs-update delete-done --delete
nixpkgs-update fetch-repology > /var/lib/nixpkgs-update/packages-to-update.txt
nixpkgs-update update-list --pr --cve --cachix --outpaths --nixpkgs-review
${nixpkgs-update-bin} update-list --pr --cve --cachix --outpaths --nixpkgs-review
${nixpkgs-update-bin} delete-done --delete
${nixpkgs-update-bin} fetch-repology > /var/lib/nixpkgs-update/packages-to-update.txt
${nixpkgs-update-bin} update-list --pr --cve --cachix --outpaths --nixpkgs-review
'';
};

View file

@ -29,10 +29,10 @@
"homepage": "",
"owner": "ryantm",
"repo": "nixpkgs-update",
"rev": "c0b71bededaa61cd1ad3a2c2f1f45e00d462a531",
"sha256": "08gyk3ic6j4j4818l2waqxzgjc5zjnvn7m9hbdfp5hbxznfp2wl7",
"rev": "f07e4069ccecb8d60f61331888edd4947e3461b2",
"sha256": "1zk2aiawsws2pqfh73xjilxy1ah9aj74sv65s0xjpl2rf84biqs5",
"type": "tarball",
"url": "https://github.com/ryantm/nixpkgs-update/archive/c0b71bededaa61cd1ad3a2c2f1f45e00d462a531.tar.gz",
"url": "https://github.com/ryantm/nixpkgs-update/archive/f07e4069ccecb8d60f61331888edd4947e3461b2.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs-update-github-releases": {