Skip to content

Commit

Permalink
meh, remote nix build is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
smillida committed Mar 9, 2022
1 parent b9fdce4 commit 1d018fc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
dist-newstyle/
result
sjur.nix

nix/tvbox.sh
nix/ping.sh
nix/remotebuild.sh
2 changes: 1 addition & 1 deletion nix/docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let
nixpkgs = import ./nixpkgs.nix;
artifactName = "signature-visualizer";
extraFiles = ../assets;

# builds a base image to extend with a stack-built binary
in with nixpkgs; dockerTools.buildLayeredImage {
name = artifactName;
Expand Down
25 changes: 25 additions & 0 deletions nix/hoogle-docker.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
let
system = "x86_64-linux";
nixpkgs = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/6c309ef9ae51fd4ebdcb3b19ab6acea5ba66983e.tar.gz";
}) { inherit system; };
artifact = with nixpkgs; haskell.packages.ghc8107.ghcWithPackages (pkgs: with pkgs; [ hoogle hoogle-index ]) ;

# builds a base image to extend with a stack-built binary
in with nixpkgs; dockerTools.buildLayeredImage {
name = "hoogle-docker";
tag = "latest";
created = "now";
# runtime system deps and binary tools in the docker image goes here
# contents = [
# hello
# ];

config = {
Env = [
"TZ=Europe/Oslo"
"PATH=${bash}/bin:${busybox}/bin:${curl}/bin"
];
# Cmd = [ "${artifact}/bin/signature-visualizer-webserver" ];
};
}

0 comments on commit 1d018fc

Please sign in to comment.