diff options
-rw-r--r-- | example/flake.nix | 2 | ||||
-rw-r--r-- | lib/mk-sandbox-system.nix | 4 | ||||
-rw-r--r-- | readme.md | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/example/flake.nix b/example/flake.nix index 7719fab..3ace7bd 100644 --- a/example/flake.nix +++ b/example/flake.nix | |||
@@ -2,7 +2,7 @@ | |||
2 | description = "Example of a Flake using flaky-utils."; | 2 | description = "Example of a Flake using flaky-utils."; |
3 | 3 | ||
4 | inputs = { | 4 | inputs = { |
5 | nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11"; | 5 | nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; |
6 | flake-utils.url = "github:numtide/flake-utils"; | 6 | flake-utils.url = "github:numtide/flake-utils"; |
7 | flaky-utils.url = "git+https://cgit.euxane.net/flaky-utils"; | 7 | flaky-utils.url = "git+https://cgit.euxane.net/flaky-utils"; |
8 | }; | 8 | }; |
diff --git a/lib/mk-sandbox-system.nix b/lib/mk-sandbox-system.nix index 9408be3..68a13a7 100644 --- a/lib/mk-sandbox-system.nix +++ b/lib/mk-sandbox-system.nix | |||
@@ -11,7 +11,7 @@ let | |||
11 | shellLib = flake.lib.shell { inherit pkgs; }; | 11 | shellLib = flake.lib.shell { inherit pkgs; }; |
12 | 12 | ||
13 | print = rec { | 13 | print = rec { |
14 | printSharedDir = name: { source, target }: '' | 14 | printSharedDir = name: { source, target, ... }: '' |
15 | echo -en ${shellLib.fmt.keyword target}": " | 15 | echo -en ${shellLib.fmt.keyword target}": " |
16 | echo ${pkgs.lib.escapeShellArg source} | 16 | echo ${pkgs.lib.escapeShellArg source} |
17 | ''; | 17 | ''; |
@@ -118,7 +118,7 @@ in rec { | |||
118 | 118 | ||
119 | apps.${name} = { | 119 | apps.${name} = { |
120 | type = "app"; | 120 | type = "app"; |
121 | program = toString (pkgs.writeShellScript "sandbox-vm" ('' | 121 | program = pkgs.lib.getExe (pkgs.writeShellScriptBin "sandbox-vm" ('' |
122 | # Save current directory for mounting in VM | 122 | # Save current directory for mounting in VM |
123 | SHARED_CWD=$PWD | 123 | SHARED_CWD=$PWD |
124 | export SHARED_CWD | 124 | export SHARED_CWD |
@@ -18,7 +18,7 @@ Issues and patches: email the author. | |||
18 | 18 | ||
19 | ## Licence and copyright | 19 | ## Licence and copyright |
20 | 20 | ||
21 | Copyright (C) 2023 Euxane TRAN-GIRARD. | 21 | Copyright (C) 2024 Euxane TRAN-GIRARD. |
22 | 22 | ||
23 | This project is distributed under the terms of European Union Public Licence | 23 | This project is distributed under the terms of European Union Public Licence |
24 | version 1.2, a copy of which is provided in `./licence.txt`. | 24 | version 1.2, a copy of which is provided in `./licence.txt`. |