summaryrefslogtreecommitdiff
path: root/protohackers/0-smoke-test/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'protohackers/0-smoke-test/flake.nix')
-rw-r--r--protohackers/0-smoke-test/flake.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/protohackers/0-smoke-test/flake.nix b/protohackers/0-smoke-test/flake.nix
new file mode 100644
index 0000000..76a6f25
--- /dev/null
+++ b/protohackers/0-smoke-test/flake.nix
@@ -0,0 +1,24 @@
+{
+ description = "Protohackers 0: Smoke test";
+
+ outputs = { self, nixpkgs }:
+ let
+ system = "x86_64-linux";
+ pkgs = import nixpkgs { inherit system; };
+ in rec
+ {
+ packages.x86_64-linux.docker-image = pkgs.dockerTools.buildImage {
+ name = "smoke-test";
+ config = {
+ Cmd = [ "${packages.x86_64-linux.smoke-test}/bin/0-smoke-test" ];
+ };
+ };
+ packages.x86_64-linux.binary = pkgs.buildGoModule {
+ pname = "smoke-test";
+ version = "0.0.1";
+ src = self;
+
+ vendorSha256 = "pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
+ };
+ };
+}