From 4e8ac826929117f95baeb37e1518773d1169d900 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Wed, 28 Feb 2024 18:00:30 +0100 Subject: Random uncommited stuff --- protohackers/0-smoke-test/flake.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 protohackers/0-smoke-test/flake.nix (limited to 'protohackers/0-smoke-test/flake.nix') 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="; + }; + }; +} -- cgit v1.2.3