Remove unused nix expressions
This commit is contained in:
parent
f3c138b7d4
commit
9ed5a5b257
@ -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
|
||||
'';
|
||||
}
|
24
docker.nix
24
docker.nix
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user