lojban tools

This commit is contained in:
Cadey Ratio 2020-02-06 23:57:09 +00:00
parent e5f19d3f96
commit 0b41d79609
4 changed files with 68 additions and 1 deletions

View File

@ -11,9 +11,12 @@ let
MoonPlus = callPackage ./pkgs/moonplus { };
minica = callPackage ./pkgs/minica { };
# lojban
johaus = callPackage ./pkgs/johaus { };
jvozba = callPackage ./pkgs/jvozba { };
# x
appsluggr = x.appsluggr;
johaus = x.johaus;
license = x.license;
mainsanow = x.mainsanow;
prefix = x.prefix;

22
docker/minica.nix Normal file
View File

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

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

@ -0,0 +1,21 @@
{ pkgs ? import <nixpkgs> { } }:
let
version = "1.1.0";
repo = pkgs.fetchFromGitHub {
owner = "Xe";
repo = "johaus";
rev = "v${version}";
hash = "sha256:0nwcfv40mhiyp2zzzsxg0j7717asdmhshg40dbnkwmqwhiqikdnb";
};
out = pkgs.buildGoModule {
pname = "johaus";
version = version;
src = repo;
modSha256 = "sha256:1s3yj3b5zs9cqss2p2qdsk5yxmwna53nnk62zf78j6whan2kqags";
subPackages = [ "." ];
};
in out

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

@ -0,0 +1,21 @@
{ pkgs ? import <nixpkgs> { } }:
let
version = "0.1.1";
repo = pkgs.fetchFromGitHub {
owner = "Xe";
repo = "jvozba";
rev = "v${version}";
hash = "sha256:07zra87h0lgi4r3hsh8q08pzrxdnvlfa1zm8yj0vv4iysrk3y3x2";
};
out = pkgs.buildGoModule {
pname = "jvozba";
version = version;
src = repo;
modSha256 = "sha256:0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5";
subPackages = [ "cmd/..." ];
};
in out