fix: fix nix build (#24)

* fix: fix nix build

* feat: automatically prefix ANYRUN_PLUGINS with the nix store
This commit is contained in:
Michał
2023-05-02 19:51:46 +02:00
committed by GitHub
parent 9fed55e692
commit 599fc1d44d
4 changed files with 18 additions and 76 deletions

View File

@@ -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