treewide: various warning fixups

This commit is contained in:
Luke Granger-Brown 2022-10-08 21:49:16 +01:00
parent 03d0572cae
commit 068f1e2d9c
4 changed files with 16 additions and 9 deletions

View file

@ -1,9 +1,7 @@
{ depot, lib, ... }: { depot, lib, ... }:
let let
inherit (depot) pkgs; inherit (depot) pkgs;
mercurial = (pkgs.mercurial.overridePythonAttrs (origAttrs: { inherit (depot.nix.pkgs) mercurial;
propagatedBuildInputs = [pkgs.python3Packages.hg-evolve];
}));
updateNixpkgs = pkgs.runCommand "update_nixpkgs" { updateNixpkgs = pkgs.runCommand "update_nixpkgs" {
buildInputs = with pkgs; [ makeWrapper ]; buildInputs = with pkgs; [ makeWrapper ];
} '' } ''
@ -25,7 +23,9 @@ pkgs.dockerTools.buildImage {
]; ];
}; };
contents = [ copyToRoot = pkgs.buildEnv {
name = "update_nixpkgs-root";
paths = [
pkgs.cacert updateNixpkgs pkgs.cacert updateNixpkgs
(pkgs.runCommand "update_nixpkgs_content" {} '' (pkgs.runCommand "update_nixpkgs_content" {} ''
mkdir $out $out/root $out/root/.ssh $out/etc $out/tmp mkdir $out $out/root $out/root/.ssh $out/etc $out/tmp
@ -58,4 +58,5 @@ share =
EOF EOF
'') '')
]; ];
};
} }

View file

@ -5,6 +5,7 @@
{ config, depot, lib, pkgs, ... }: { config, depot, lib, pkgs, ... }:
let let
inherit (depot.ops) secrets; inherit (depot.ops) secrets;
systemConfig = config;
in { in {
imports = [ imports = [
../lib/bvm.nix ../lib/bvm.nix
@ -182,6 +183,7 @@ in {
vim rxvt-unicode-unwrapped.terminfo kitty.terminfo rsync jq vim rxvt-unicode-unwrapped.terminfo kitty.terminfo rsync jq
depot.nix.pkgs.heptapod-runner-mercurial depot.nix.pkgs.heptapod-runner-mercurial
]; ];
system.stateVersion = systemConfig.system.stateVersion;
}; };
}; };

View file

@ -12,6 +12,7 @@ let
propagatedBuildInputs = with ps; [ propagatedBuildInputs = with ps; [
zope_interface zope_interface
pytz pytz
setuptools
]; ];
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {

View file

@ -62,7 +62,10 @@ rec {
in origOut // { in origOut // {
dockerImage = nixpkgs.dockerTools.buildImage { dockerImage = nixpkgs.dockerTools.buildImage {
name = args.name; name = args.name;
contents = dockerData; copyToRoot = nixpkgs.buildEnv {
name = "${args.name}-env";
paths = dockerData;
};
config = { config = {
Entrypoint = [ "${origOut}/bin/${args.name}" ]; Entrypoint = [ "${origOut}/bin/${args.name}" ];
Env = [ Env = [