forked from cadey/maj
remove nix for the moment
This commit is contained in:
parent
0217fa2792
commit
d7dcce67ca
13
default.nix
13
default.nix
|
@ -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;
|
||||
}
|
24
docker.nix
24
docker.nix
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue