remove nix for the moment

This commit is contained in:
Cadey Ratio 2020-07-27 18:17:26 -04:00
parent 0217fa2792
commit d7dcce67ca
3 changed files with 0 additions and 4529 deletions

4492
Cargo.nix

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +0,0 @@
{ pkgs ? import <nixpkgs> { } }:
let
cargo_nix = pkgs.callPackage ./Cargo.nix {
defaultCrateOverrides = pkgs.defaultCrateOverrides // {
ncurses = attrs: { buildInputs = with pkgs; [ ncurses pkg-config ]; };
};
};
in {
majc = cargo_nix.workspaceMembers."majc".build;
majsite = cargo_nix.workspaceMembers."majsite".build;
}

View File

@ -1,24 +0,0 @@
{ system ? builtins.currentSystem }:
let
pkgs = import <nixpkgs> { };
callPackage = pkgs.lib.callPackageWith pkgs;
crates = callPackage ./default.nix { };
dockerImage = pkg:
pkgs.dockerTools.buildLayeredImage {
name = "xena/${pkg.name}";
tag = "latest";
contents = [ pkg ];
config = {
Cmd = [ "/bin/${pkg.name}" ];
WorkingDir = "/";
};
};
in {
majc = dockerImage crates.majc;
majsite = dockerImage crates.majsite;
}