add minica

This commit is contained in:
Cadey Ratio 2020-02-06 23:33:12 +00:00
parent d30c04fbe7
commit e5f19d3f96
3 changed files with 46 additions and 0 deletions

View File

@ -9,6 +9,9 @@ let
self = { self = {
MoonPlus = callPackage ./pkgs/moonplus { }; MoonPlus = callPackage ./pkgs/moonplus { };
minica = callPackage ./pkgs/minica { };
# x
appsluggr = x.appsluggr; appsluggr = x.appsluggr;
johaus = x.johaus; johaus = x.johaus;
license = x.license; license = x.license;

22
docker/moonplus.nix Normal file
View File

@ -0,0 +1,22 @@
{ system ? builtins.currentSystem }:
let
pkgs = import <nixpkgs> { inherit system; };
callPackage = pkgs.lib.callPackageWith pkgs;
moonplus = callPackage ../pkgs/moonplus { };
dockerImage = pkg:
pkgs.dockerTools.buildImage {
name = pkg.name;
tag = "latest";
contents = [ pkg ];
config = {
Cmd = [ "/bin/${pkg.name}" ];
};
};
in dockerImage moonplus

21
pkgs/minica/default.nix Normal file
View File

@ -0,0 +1,21 @@
{ pkgs ? import <nixpkgs> { } }:
let
version = "1.0.2";
repo = pkgs.fetchFromGitHub {
owner = "jsha";
repo = "minica";
rev = "v${version}";
hash = "sha256:18518wp3dcjhf3mdkg5iwxqr3326n6jwcnqhyibphnb2a58ap7ny";
};
out = pkgs.buildGoModule {
pname = "minica";
version = version;
src = repo;
modSha256 = "sha256:0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
subPackages = [ "." ];
};
in out