add minica
This commit is contained in:
parent
d30c04fbe7
commit
e5f19d3f96
|
@ -9,6 +9,9 @@ let
|
|||
|
||||
self = {
|
||||
MoonPlus = callPackage ./pkgs/moonplus { };
|
||||
minica = callPackage ./pkgs/minica { };
|
||||
|
||||
# x
|
||||
appsluggr = x.appsluggr;
|
||||
johaus = x.johaus;
|
||||
license = x.license;
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue