From 7aacf581bc43da8633989f553f38b1689d5a7724 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 22 Mar 2020 21:22:10 +0100 Subject: Use writeShellScriptBin trivial builder for nix-shell wrapper Thanks to @jobojeha for the suggestion --- pkgs/persistent-nix-shell/default.nix | 10 +++------- 1 file 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) -- cgit v1.2.3