diff options
| author | Fuwn <[email protected]> | 2021-04-26 15:42:39 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-04-26 15:42:39 +0000 |
| commit | 7bd062230b43f8bd9cf2ec0f0db92704c5765f26 (patch) | |
| tree | 78545fde636ec248aa039aa2ec1581b9b9055338 /senpy-api.nix | |
| parent | fmt: Change case (diff) | |
| download | api-7bd062230b43f8bd9cf2ec0f0db92704c5765f26.tar.xz api-7bd062230b43f8bd9cf2ec0f0db92704c5765f26.zip | |
major: :star:
Diffstat (limited to 'senpy-api.nix')
| -rw-r--r-- | senpy-api.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/senpy-api.nix b/senpy-api.nix new file mode 100644 index 0000000..a08a9b2 --- /dev/null +++ b/senpy-api.nix @@ -0,0 +1,17 @@ +{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs { } }: + +let + rust = import ./nix/rust.nix { inherit sources; }; + + naersk = pkgs.callPackage sources.naersk { + rustc = rust; + cargo = rust; + }; + + src = builtins.filterSource + (path: type: type != "directory" || builtins.baseNameOf path != "target") + ./.; +in naersk.buildPackage { + inherit src; + remapPathPrefix = true; +} |