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, ... }:
let
inherit (depot) pkgs;
mercurial = (pkgs.mercurial.overridePythonAttrs (origAttrs: {
propagatedBuildInputs = [pkgs.python3Packages.hg-evolve];
}));
inherit (depot.nix.pkgs) mercurial;
updateNixpkgs = pkgs.runCommand "update_nixpkgs" {
buildInputs = with pkgs; [ makeWrapper ];
} ''
@ -25,9 +23,11 @@ pkgs.dockerTools.buildImage {
];
};
contents = [
pkgs.cacert updateNixpkgs
(pkgs.runCommand "update_nixpkgs_content" {} ''
copyToRoot = pkgs.buildEnv {
name = "update_nixpkgs-root";
paths = [
pkgs.cacert updateNixpkgs
(pkgs.runCommand "update_nixpkgs_content" {} ''
mkdir $out $out/root $out/root/.ssh $out/etc $out/tmp
chmod 700 $out/root $out/root/.ssh
chmod 1777 $out/tmp
@ -56,6 +56,7 @@ topic =
purge =
share =
EOF
'')
];
'')
];
};
}

View file

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

View file

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

View file

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