diff --git a/default.nix.bak b/default.nix.bak deleted file mode 100644 index 08251b4..0000000 --- a/default.nix.bak +++ /dev/null @@ -1,27 +0,0 @@ -{ sources ? import ./nix/sources.nix -, pkgs ? import sources.nixpkgs { } -, callPackage ? pkgs.callPackage -}: - -let - cargoNix = callPackage ./Cargo.nix { - # defaultCrateOverrides = pkgs.defaultCrateOverrides // { - # libgit2-sys = attrs: { - # buildInputs = [ pkgs.openssl ]; - # }; - # }; - }; - - hoc = cargoNix.rootCrate.build; -in -pkgs.symlinkJoin { - name = hoc.name; - version = hoc.crateVersion; - paths = [ hoc ]; - - # buildInputs = [ pkgs.openssl pkgs.cacert ]; - - postBuild = '' - rm -rf $out/bin/hoc.d - ''; -} diff --git a/docker.nix b/docker.nix deleted file mode 100644 index d8af2d8..0000000 --- a/docker.nix +++ /dev/null @@ -1,24 +0,0 @@ -# { system ? builtins.currentSystem }: - -let - # pkgs = import { inherit system; }; - pkgs = import { }; - - callPackage = pkgs.lib.callPackageWith pkgs; - - hoc = callPackage ./default.nix { }; - - dockerImage = pkg: - pkgs.dockerTools.buildImage { - name = "vbrandl/hits-of-code"; - tag = hoc.version; - - contents = [ pkg ]; - - config = { - Cmd = [ "/bin/hoc" ]; - WorkingDir = "/"; - }; - }; - -in dockerImage hoc diff --git a/docker.nix.bak b/docker.nix.bak deleted file mode 100644 index 3923e92..0000000 --- a/docker.nix.bak +++ /dev/null @@ -1,21 +0,0 @@ -let - pkgs = import { }; - - callPackage = pkgs.lib.callPackageWith pkgs; - - hoc = callPackage ./default.nix { }; - - dockerImage = pkg: - pkgs.dockerTools.buildImage { - name = "vbrandl/hits-of-code"; - tag = hoc.version; - - contents = [ pkg ]; - - config = { - Cmd = [ "/bin/hoc" ]; - WorkingDir = "/"; - }; - }; - -in dockerImage hoc