Compare commits
1 Commits
3d8e0fe114
...
a67eb5a40c
Author | SHA1 | Date |
---|---|---|
coolneng | a67eb5a40c |
|
@ -1 +1,2 @@
|
||||||
*.fastq
|
*.fastq
|
||||||
|
result
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
|
||||||
|
|
||||||
|
with pkgs;
|
||||||
|
|
||||||
|
let
|
||||||
|
srcNoTarget = dir:
|
||||||
|
builtins.filterSource
|
||||||
|
(path: type: type != "directory" || builtins.baseNameOf path != "target")
|
||||||
|
dir;
|
||||||
|
src = srcNoTarget ./.;
|
||||||
|
|
||||||
|
in stdenv.mkDerivation {
|
||||||
|
name = "locigenesis";
|
||||||
|
phases = "installPhase";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp -r ${src}/src $out
|
||||||
|
cp -r ${src}/data/*.rds $out
|
||||||
|
cp ${src}/generation.sh $out
|
||||||
|
'';
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }:
|
||||||
|
|
||||||
|
with pkgs;
|
||||||
|
|
||||||
|
let locigenesis = pkgs.callPackage ./default.nix { };
|
||||||
|
|
||||||
|
in dockerTools.buildImage {
|
||||||
|
name = "akasroua/locigenesis";
|
||||||
|
contents = [ locigenesis ];
|
||||||
|
config.Entrypoint = [ "${locigenesis}/bin/generation.sh" ];
|
||||||
|
}
|
Loading…
Reference in New Issue