build(nix): drop rust-overlay

nixpkgs works well enough and gives us a good buffer in dealing with
compiler regressions
This commit is contained in:
seth 2024-08-07 04:09:28 -04:00 committed by Sefa Eyeoglu
parent 3ca7323414
commit 0b6be71c48
4 changed files with 14 additions and 71 deletions

View file

@ -3,18 +3,12 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
rust-overlay,
}:
let
inherit (nixpkgs) lib;
@ -70,19 +64,8 @@
pkgs = nixpkgsFor.${system};
packages' = self.packages.${system};
mkStatic = pkgs.callPackage ./nix/static.nix {
inherit (packages') refraction;
rust-overlay = rust-overlay.packages.${system};
};
containerize =
refraction:
pkgs.dockerTools.buildLayeredImage {
name = "refraction";
tag = "latest-${refraction.passthru.architecture}";
config.Cmd = [ (lib.getExe refraction) ];
inherit (refraction.passthru) architecture;
};
mkStatic = pkgs.callPackage ./nix/static.nix { };
containerize = pkgs.callPackage ./nix/containerize.nix { };
in
{
refraction = pkgs.callPackage ./nix/package.nix { };