Remove unused nix expressions

This commit is contained in:
Valentin Brandl 2020-03-20 17:46:54 +01:00
parent f3c138b7d4
commit 9ed5a5b257
No known key found for this signature in database
GPG Key ID: 30D341DD34118D7D
3 changed files with 0 additions and 72 deletions

View File

@ -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
'';
}

View File

@ -1,24 +0,0 @@
# { system ? builtins.currentSystem }:
let
# pkgs = import <nixpkgs> { inherit system; };
pkgs = import <nixpkgs> { };
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

View File

@ -1,21 +0,0 @@
let
pkgs = import <nixpkgs> { };
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