mirror of
https://github.com/vale981/master-thesis
synced 2025-03-10 13:16:38 -04:00
28 lines
832 B
Nix
28 lines
832 B
Nix
{
|
|
inputs = {
|
|
hops.url = "git+ssh://git@gitlab.hrz.tu-chemnitz.de/s4498638--tu-dresden.de/hops.git?ref=main";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, hops, flake-utils }:
|
|
(flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
config = ./stg.py;
|
|
in {
|
|
defaultPackage =
|
|
pkgs.dockerTools.buildImage {
|
|
name = "hello-docker";
|
|
config = {
|
|
Cmd = [ "${pkgs.bash}/bin/bash" "-c"
|
|
''"${hops.defaultPackage.${system}}/bin/sp.py -s ${config} && \
|
|
${hops.defaultPackage.${system}}/bin/hi.py -s "${config} client"''
|
|
];
|
|
};
|
|
};
|
|
}
|
|
));
|
|
}
|