diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2024-02-28 18:00:30 +0100 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2024-02-28 18:00:30 +0100 |
commit | 4e8ac826929117f95baeb37e1518773d1169d900 (patch) | |
tree | 8d83639b336ece6422e9f3391655db12f30d6013 /protohackers/0-smoke-test/flake.nix | |
parent | d4fcb8a4a815ce8c888c3e06330e9cff71e3c312 (diff) | |
download | programming-problem-solving-4e8ac826929117f95baeb37e1518773d1169d900.tar.gz |
Random uncommited stuff
Diffstat (limited to 'protohackers/0-smoke-test/flake.nix')
-rw-r--r-- | protohackers/0-smoke-test/flake.nix | 24 |
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="; + }; + }; +} |