軽微な修正

This commit is contained in:
SnO2WMaN 2022-06-19 10:42:24 +09:00
parent 2b83bf4d10
commit 2f6d98eca6
2 changed files with 15 additions and 12 deletions

View file

@ -16,8 +16,11 @@
devshell,
...
} @ inputs:
flake-utils.lib.eachSystem
[
rec {
overlays.default = import ./overlay.nix;
overlay = overlays.default;
}
// flake-utils.lib.eachSystem [
"x86_64-linux"
]
(
@ -35,7 +38,7 @@
version = "0.1.0";
src = self;
lockfile = ./lock.json;
importmap = ./import_map.json;
importMap = ./import_map.json;
entrypoint = ./mod.ts;
};
packages.wrapper = pkgs.deno2nix.mkBundledWrapper {
@ -43,7 +46,7 @@
version = "0.1.0";
src = self;
lockfile = ./lock.json;
importmap = ./import_map.json;
importMap = ./import_map.json;
entrypoint = ./mod.ts;
};
packages.executable = pkgs.deno2nix.mkExecutable {
@ -51,7 +54,7 @@
version = "0.1.0";
src = self;
lockfile = ./lock.json;
importmap = ./import_map.json;
importMap = ./import_map.json;
entrypoint = ./mod.ts;
};
packages.default = packages.executable;

View file

@ -36,16 +36,16 @@ in rec {
src,
entrypoint,
lockfile,
importmap ? null,
importMap ? null,
denoFlags ? [],
}:
stdenv.mkDerivation {
inherit name version entrypoint importmap;
inherit name version entrypoint;
denoFlags =
denoFlags
++ (
if importmap != null
then ["--import-map" importmap]
if importMap != null
then ["--import-map" importMap]
else []
);
@ -86,7 +86,7 @@ in rec {
src,
entrypoint,
lockfile,
importmap ? null,
importMap ? null,
denoFlags ? [],
}:
stdenv.mkDerivation {
@ -97,8 +97,8 @@ in rec {
++ ["--cached-only"]
++ ["--output" name]
++ (
if importmap != null
then ["--import-map" importmap]
if importMap != null
then ["--import-map" importMap]
else []
);