Skip to content

Commit

Permalink
Integrating NixOS/nixpkgs#346043 for static binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Thesola10 committed Oct 17, 2024
1 parent 01e2022 commit f0e1bf3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 41 deletions.
7 changes: 4 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ description = "Put Nix in everything!";

inputs.nixpkgs.url = github:nixos/nixpkgs;
inputs.nixpkgs.url = github:nixos/nixpkgs/staging;
inputs.nix.url = github:nixos/nix/2.17.1;
inputs.fakedir =
{ url = github:nixie-dev/fakedir;
Expand Down
12 changes: 1 addition & 11 deletions static-bins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,7 @@ let
];
systemsPkgs =
map (s:
import nixpkgs ({ localSystem = s; }
// (if s == "x86_64-darwin"
then
{ overlays =
[ (import ./nixpkgs-darwin-static.nix) ];
crossSystem = {
isStatic = true;
system = s;
};
}
else {}))
import nixpkgs ({ localSystem = s; })
) builtSystems;

nixPackage = r: if builtins.hasAttr "${r.system}" nixStatics
Expand Down
26 changes: 0 additions & 26 deletions static-bins/nixpkgs-darwin-static.nix

This file was deleted.

0 comments on commit f0e1bf3

Please sign in to comment.