Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justinwoo/update-fetch-derivations
Update some fetchFromGitHub usages in a nix source file.
https://github.com/justinwoo/update-fetch-derivations
fetch nix
Last synced: about 1 month ago
JSON representation
Update some fetchFromGitHub usages in a nix source file.
- Host: GitHub
- URL: https://github.com/justinwoo/update-fetch-derivations
- Owner: justinwoo
- Created: 2018-12-26T10:10:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-17T14:43:30.000Z (almost 6 years ago)
- Last Synced: 2024-11-07T03:48:36.637Z (3 months ago)
- Topics: fetch, nix
- Language: Rust
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.com/justinwoo/update-fetch-derivations.svg?branch=master)](https://travis-ci.com/justinwoo/update-fetch-derivations)
# update-fetch-derivations
Update some fetchgit/fetchFromGitHub usages in a nix source file.
## Usage
```
update-fetch-derivations
Update GitHub fetch revisions and hashes for a given nix source file.Example:
update-fetch-derivation fetch-from-github.nix
```## Example:
From ./test:
```diff
> update-fetch-derivations fetch-from-github.nix
Fetching: justinwoo/easy-dhall-nix
Fetching: justinwoo/easy-purescript-nix
updated 2 derivations in fetch-from-github.nix> gid
diff --git a/test/fetch-from-github.nix b/test/fetch-from-github.nix
index 9af00b8..5974894 100644
--- a/test/fetch-from-github.nix
+++ b/test/fetch-from-github.nix
@@ -4,15 +4,15 @@ let
a = import (pkgs.fetchFromGitHub {
owner = "justinwoo";
repo = "easy-dhall-nix";
- rev = "testrev";
- sha256 = "testsha";
+ rev = "9e3b8744db0a9d369675a4b12a955614b8100449";
+ sha256 = "00ww6fhv8lvihjfzjzpd4kgfqx8isk4nalmc79vh9mhfv7ya0m5p";
}) {};b = pkgs.fetchFromGitHub {
owner = "justinwoo";
repo = "easy-purescript-nix";
- rev = "testrev";
- sha256 = "testsha";
+ rev = "d9e92b89b53865e93a56d19b2f1e55dc0c344696";
+ sha256 = "1miphbm0m3i7mrjyyb8s97ka62pwgvql8vry0jqz8zdllfqm0rh2";
};
in {
inherit a;
```