refactor: Move registry server to a subfolder
This commit is contained in:
parent
d699f7f91c
commit
1fa93fe6f6
4 changed files with 18 additions and 29 deletions
|
@ -23,29 +23,11 @@ rec {
|
||||||
# Users will usually not want to use this directly, instead see the
|
# Users will usually not want to use this directly, instead see the
|
||||||
# 'nixery' derivation below, which automatically includes runtime
|
# 'nixery' derivation below, which automatically includes runtime
|
||||||
# data dependencies.
|
# data dependencies.
|
||||||
nixery-server = buildGoPackage {
|
nixery-server = callPackage ./server {};
|
||||||
name = "nixery-server";
|
|
||||||
|
|
||||||
# Technically people should not be building Nixery through 'go get'
|
|
||||||
# or similar (as other required files will not be included), but
|
|
||||||
# buildGoPackage requires a package path.
|
|
||||||
goPackagePath = "github.com/google/nixery";
|
|
||||||
goDeps = ./go-deps.nix;
|
|
||||||
src = ./.;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Container image build serving Nix-backed images";
|
|
||||||
homepage = "https://github.com/google/nixery";
|
|
||||||
license = lib.licenses.asl20;
|
|
||||||
maintainers = [ lib.maintainers.tazjin ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Nix expression (unimported!) which is used by Nixery to build
|
# Nix expression (unimported!) which is used by Nixery to build
|
||||||
# container images.
|
# container images.
|
||||||
nixery-builder = runCommand "build-registry-image.nix" {} ''
|
nixery-builder = ./build-registry-image.nix;
|
||||||
cat ${./build-registry-image.nix} > $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
# nixpkgs currently has an old version of mdBook. A new version is
|
# nixpkgs currently has an old version of mdBook. A new version is
|
||||||
# built here, but eventually the update will be upstreamed
|
# built here, but eventually the update will be upstreamed
|
||||||
|
|
16
tools/nixery/server/default.nix
Normal file
16
tools/nixery/server/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ buildGoPackage, lib }:
|
||||||
|
|
||||||
|
buildGoPackage {
|
||||||
|
name = "nixery-server";
|
||||||
|
goDeps = ./go-deps.nix;
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
|
goPackagePath = "github.com/google/nixery";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Container image builder serving Nix-backed images";
|
||||||
|
homepage = "https://github.com/google/nixery";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = [ lib.maintainers.tazjin ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -81,15 +81,6 @@
|
||||||
sha256 = "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh";
|
sha256 = "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
|
||||||
goPackagePath = "gonum.org/v1/gonum";
|
|
||||||
fetch = {
|
|
||||||
type = "git";
|
|
||||||
url = "https://github.com/gonum/gonum";
|
|
||||||
rev = "ced62fe5104b907b6c16cb7e575c17b2e62ceddd";
|
|
||||||
sha256 = "1b7q6haabnp53igpmvr6a2414yralhbrldixx4kbxxg1apy8jdjg";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
goPackagePath = "google.golang.org/api";
|
goPackagePath = "google.golang.org/api";
|
||||||
fetch = {
|
fetch = {
|
Loading…
Reference in a new issue