mirror of
https://github.com/NixOS/bundlers.git
synced 2024-09-11 07:05:23 +03:00
Merge pull request #4 from MaeIsBad/master
Fix default bundler not working with nix 2.8
This commit is contained in:
commit
b11f6a6b4d
16
flake.nix
16
flake.nix
@ -27,16 +27,12 @@
|
||||
else (parseDrvName (unsafeDiscardStringContext p.name)).name
|
||||
}";
|
||||
in {
|
||||
|
||||
# Backwards compatibility helper for pre Nix2.6 bundler API
|
||||
defaultBundler = {__functor = s: {...}@arg:
|
||||
(if arg?program && arg?system then
|
||||
nix-bundle.bundlers.nix-bundle arg
|
||||
else with builtins; listToAttrs (map (system: {
|
||||
name = system;
|
||||
value = drv: self.bundlers.${system}.toArx drv;
|
||||
}) supportedSystems));
|
||||
};
|
||||
defaultBundler = builtins.listToAttrs (map (system: {
|
||||
name = system;
|
||||
value = drv: self.bundlers.${system}.toArx drv;
|
||||
}) supportedSystems)
|
||||
# Backwards compatibility helper for pre Nix2.6 bundler API
|
||||
// {__functor = s: nix-bundle.bundlers.nix-bundle;};
|
||||
|
||||
bundlers = let n =
|
||||
(forAllSystems (system: {
|
||||
|
Loading…
Reference in New Issue
Block a user