Add nixpkgs-update-pypi-release
This commit is contained in:
parent
89601785dd
commit
5edd7b48d5
2 changed files with 25 additions and 6 deletions
|
@ -10,14 +10,16 @@ let
|
|||
git
|
||||
getent
|
||||
gitAndTools.hub
|
||||
gnugrep
|
||||
jq
|
||||
tree
|
||||
gist
|
||||
cachix
|
||||
curl
|
||||
];
|
||||
] ++ [ nixpkgs-update ];
|
||||
|
||||
nixpkgs-update-github-releases = "${sources.nixpkgs-update-github-releases}/main.py";
|
||||
nixpkgs-update-pypi-releases = "${sources.nixpkgs-update-pypi-releases}/main.py";
|
||||
|
||||
nixpkgsUpdateServiceConfigCommon = {
|
||||
Type = "oneshot";
|
||||
|
@ -59,13 +61,18 @@ in
|
|||
environment.NIX_PATH = "nixpkgs=${sources.nixpkgs}";
|
||||
|
||||
serviceConfig = nixpkgsUpdateServiceConfigCommon;
|
||||
|
||||
script = ''
|
||||
${nixpkgs-update}/bin/nixpkgs-update delete-done
|
||||
nixpkgs-update delete-done
|
||||
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 --cachix --outpaths
|
||||
nixpkgs-update delete-done
|
||||
${nixpkgs-update-github-releases} > /var/lib/nixpkgs-update/packages-to-update.txt
|
||||
${nixpkgs-update}/bin/nixpkgs-update update-list --cachix --outpaths
|
||||
${nixpkgs-update}/bin/nixpkgs-update delete-done
|
||||
${nixpkgs-update}/bin/nixpkgs-update fetch-repology > /var/lib/nixpkgs-update/packages-to-update.txt
|
||||
${nixpkgs-update}/bin/nixpkgs-update update-list --cachix --outpaths
|
||||
nixpkgs-update update-list --cachix --outpaths
|
||||
nixpkgs-update delete-done
|
||||
nixpkgs-update fetch-repology > /var/lib/nixpkgs-update/packages-to-update.txt
|
||||
nixpkgs-update update-list --cachix --outpaths
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -35,6 +35,18 @@
|
|||
"url": "https://github.com/ryantm/nixpkgs-update-github-releases/archive/e31b003d8edd400d06b718c717c19532585389f9.tar.gz",
|
||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||
},
|
||||
"nixpkgs-update-pypi-releases": {
|
||||
"branch": "master",
|
||||
"description": "Fetches releases from pypi for https://github.com/ryantm/nixpkgs-update",
|
||||
"homepage": null,
|
||||
"owner": "jonringer",
|
||||
"repo": "nixpkgs-update-pypi-releases",
|
||||
"rev": "06107e06d086a1c89f53a563876799e3d7f363b2",
|
||||
"sha256": "1r7zf0a5ybbi808qkjdn38142kwi2mfanrn0qkc0ajscp6v5yihn",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/jonringer/nixpkgs-update-pypi-releases/archive/06107e06d086a1c89f53a563876799e3d7f363b2.tar.gz",
|
||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||
},
|
||||
"simple-hydra": {
|
||||
"branch": "master",
|
||||
"description": "A simple module for enabling Hydra",
|
||||
|
|
Loading…
Add table
Reference in a new issue