diff options
author | Vincent Ambo <mail@tazj.in> | 2022-05-29T11·48+0200 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-05-29T12·30+0000 |
commit | 0d4cf119bc1ed44dde3805401605eddf3f9fff56 (patch) | |
tree | da8b134af728b6e33680705d55fe57187d709e96 /nix/nix-1p/default.nix | |
parent | 9f6215f6e03cfeecf720487b5d549e51b68f2029 (diff) |
feat(nix-1p): Export subtree to GitHub r/4189
We needed a derivation for that, but this can also be used in the Nixery docs building process (which includes nix-1p). Change-Id: If97cf785a33d703af975da3b41de9b69566dfa81 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5789 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'nix/nix-1p/default.nix')
-rw-r--r-- | nix/nix-1p/default.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nix/nix-1p/default.nix b/nix/nix-1p/default.nix new file mode 100644 index 000000000000..cd1af92d83cc --- /dev/null +++ b/nix/nix-1p/default.nix @@ -0,0 +1,15 @@ +# The canonical source location of nix-1p is //nix/nix-1p in the TVL +# depot: https://code.tvl.fyi/about/nix/nix-1p +# +# This file configures TVL CI to mirror the subtree to GitHub. +{ depot ? { }, pkgs ? import <nixpkgs> { }, ... }: + +(pkgs.runCommandLocal "nix-1p.md" { } '' + cp ${./README.md} $out +'').overrideAttrs (_: { + meta.ci.extraSteps.github = depot.tools.releases.filteredGitPush { + filter = ":/nix/nix-1p"; + remote = "git@github.com:tazjin/nix-1p.git"; + ref = "refs/heads/master"; + }; +}) |