aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-04-24 18:25:38 -0700
committerFuwn <[email protected]>2021-04-24 18:25:38 -0700
commitcdec3030d42cdba4d2cc31ace080b7c0248fef6c (patch)
tree12e445387214d36c66ccad466fd8d79a06a75ecf /default.nix
parentfmt: Add alt. attributes to images (diff)
downloadwhirl-cdec3030d42cdba4d2cc31ace080b7c0248fef6c.tar.xz
whirl-cdec3030d42cdba4d2cc31ace080b7c0248fef6c.zip
chore: Add Nix and Docker support
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..5691a41
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,20 @@
+ { system ? builtins.currentSystem }:
+
+ let
+ sources = import ./nix/sources.nix;
+ pkgs = import sources.nixpkgs { };
+ whirl = import ./whirl.nix { inherit sources pkgs; };
+
+ name = "Whirlsplash/whirl";
+ tag = "latest";
+
+in pkgs.dockerTools.buildLayeredImage {
+ inherit name tag;
+ contents = [ whirl ];
+
+ config = {
+ Cmd = [ "/bin/whirl" ];
+ Env = [ ];
+ WorkingDir = "/";
+ };
+}