summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgs/persistent-nix-shell/default.nix10
1 files changed, 3 insertions, 7 deletions
diff --git a/pkgs/persistent-nix-shell/default.nix b/pkgs/persistent-nix-shell/default.nix
index 5e53ee6..906fc2d 100644
--- a/pkgs/persistent-nix-shell/default.nix
+++ b/pkgs/persistent-nix-shell/default.nix
@@ -1,9 +1,5 @@
{ stdenv, pkgs, ... }:
-pkgs.writeTextFile {
- name = "persistent-nix-shell";
- executable = true;
- destination = "/bin/persistent-nix-shell";
-
- text = builtins.readFile ./persistent-nix-shell.sh;
-}
+pkgs.writeShellScriptBin
+ "persistent-nix-shell"
+ (builtins.readFile ./persistent-nix-shell.sh)