fix: fix nix build (#24)
* fix: fix nix build * feat: automatically prefix ANYRUN_PLUGINS with the nix store
This commit is contained in:
@@ -3,23 +3,18 @@
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
naersk = {
|
||||
url = "github:nmattia/naersk";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
naersk,
|
||||
}: let
|
||||
cargoToml = builtins.fromTOML (builtins.readFile ./anyrun/Cargo.toml);
|
||||
supportedSystems = ["x86_64-linux" "aarch64-linux"];
|
||||
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
|
||||
in {
|
||||
overlay = final: prev: {
|
||||
"${cargoToml.package.name}" = final.callPackage ./. {inherit naersk;};
|
||||
"${cargoToml.package.name}" = final.callPackage ./. {};
|
||||
};
|
||||
|
||||
packages = forAllSystems (system: let
|
||||
|
||||
Reference in New Issue
Block a user