-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
325: feature: Add pkgs fetch manager nvfetcher r=GTrunSec a=GTrunSec Regarding motivation in #299 Any question here? Example: - overlay ``` inherit (prev.sources.<PackageName>) pname version src; ``` - pkgs ``` stdenv.mkDerivation rec { inherit (sources.<PackageName>) pname version src; ``` Co-authored-by: David Arnold <[email protected]> Co-authored-by: GTrunSec <[email protected]> Co-authored-by: David Arnold <[email protected]> Co-authored-by: Pacman99 <[email protected]>
- Loading branch information
Showing
15 changed files
with
210 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: Upstream notice (Issues or Changes) | ||
about: Create an upstream notice to help our research | ||
title: '[ <put the upstream project> ]: <topic>' | ||
labels: 'upstream' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Link | ||
<!-- just place a link to the upstream issue, or PR --> | ||
|
||
|
||
## Context | ||
<!-- We want to make this as cheap for you as possible. | ||
Context is not required but helpful --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ doc/index.html | |
vm | ||
iso | ||
doi | ||
|
||
pkgs/_sources/.shake* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# nvfetcher | ||
[NvFetcher][nvf] is a workflow companion for updating nix sources. | ||
|
||
You can specify an origin source and an update configuration, and | ||
nvfetcher can for example track updates to a specific branch and | ||
automatically update your nix sources configuration on each run | ||
to the tip of that branch. | ||
|
||
All package source declaration is done in [sources.toml][sources.toml]. | ||
|
||
From within the devshell of this repo, run `nvfetcher`, a wrapped | ||
version of `nvfetcher` that knows where to find and place its files | ||
and commit the results. | ||
|
||
## Usage | ||
|
||
Statically fetching (not tracking) a particular tag from a github repo: | ||
```toml | ||
[manix] | ||
src.manual = "v0.6.3" | ||
fetch.github = "mlvzk/manix" | ||
``` | ||
|
||
Tracking the latest github _release_ from a github repo: | ||
```toml | ||
[manix] | ||
src.github = "mlvzk/manix" # responsible for tracking | ||
fetch.github = "mlvzk/manix" # responsible for fetching | ||
``` | ||
|
||
Tracking the latest commit of a git repository and fetch from a git repo: | ||
```toml | ||
[manix] | ||
src.git = "https://github.com/mlvzk/manix.git" # responsible for tracking | ||
fetch.git = "https://github.com/mlvzk/manix.git" # responsible for fetching | ||
``` | ||
|
||
> ##### _Note:_ | ||
> Please refer to the [NvFetcher Readme][nvf-readme] for more options. | ||
[nvf: https://github.com/berberman/nvfetcher | ||
[nvf-readme]: https://github.com/berberman/nvfetcher#readme | ||
[sources.toml]: https://github.com/divnix/devos/tree/core/pkgs/sources.toml |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
final: prev: { | ||
manix = prev.manix.overrideAttrs (o: rec{ | ||
inherit (prev.sources.manix) pname version src; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ channels: final: prev: { | |
dhall | ||
discord | ||
element-desktop | ||
manix | ||
rage | ||
nixpkgs-fmt | ||
qutebrowser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file was generated by nvfetcher, please do not modify it manually. | ||
{ fetchgit, fetchurl }: | ||
{ | ||
manix = { | ||
pname = "manix"; | ||
version = "v0.6.3"; | ||
src = fetchgit { | ||
url = "https://github.com/mlvzk/manix"; | ||
rev = "v0.6.3"; | ||
fetchSubmodules = false; | ||
deepClone = false; | ||
leaveDotGit = false; | ||
sha256 = "1b7xi8c2drbwzfz70czddc4j33s7g1alirv12dwl91hbqxifx8qs"; | ||
}; | ||
|
||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
final: prev: { } | ||
final: prev: { | ||
# keep sources this first | ||
sources = prev.callPackage (import ./sources.nix) { }; | ||
# then, call packages with `final.callPackage` | ||
} |
Oops, something went wrong.