From 9ed5a5b2577136df48d415e28ff09c362f58bec4 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Fri, 20 Mar 2020 17:46:54 +0100 Subject: [PATCH] Remove unused nix expressions --- default.nix.bak | 27 --------------------------- docker.nix | 24 ------------------------ docker.nix.bak | 21 --------------------- 3 files changed, 72 deletions(-) delete mode 100644 default.nix.bak delete mode 100644 docker.nix delete mode 100644 docker.nix.bak 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