From 432af05b57a810eb6c799ac840e623b4aedf398d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Maret?= Date: Thu, 26 Dec 2024 22:23:18 +0100 Subject: [PATCH] Use install instead of cp and chmod Co-authored-by: Leah Amelia Chen --- pkgs/by-name/im/imager/package.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/by-name/im/imager/package.nix b/pkgs/by-name/im/imager/package.nix index bfc2dd2c92af2..58d2996ccb97f 100644 --- a/pkgs/by-name/im/imager/package.nix +++ b/pkgs/by-name/im/imager/package.nix @@ -87,8 +87,7 @@ stdenv.mkDerivation (finalAttrs: { mkdir -p $out/bin cp -a ../gildas-exe/* $out mv $out/$GAG_EXEC_SYSTEM $out/libexec - cp admin/wrapper.sh $out/bin/imager - chmod 755 $out/bin/imager + install -Dm755 admin/wrapper.sh $out/bin/imager ''; meta = {