From ccbd359a8f9089a1e7a9566fdca62e26a2bb447c Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 27 Dec 2022 01:21:34 -0600 Subject: flake: enforce nixpkgs-fmt --- pkgs/mssql-tools.nix | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'pkgs/mssql-tools.nix') diff --git a/pkgs/mssql-tools.nix b/pkgs/mssql-tools.nix index a2de629..9213c16 100644 --- a/pkgs/mssql-tools.nix +++ b/pkgs/mssql-tools.nix @@ -5,7 +5,8 @@ let version = "17.9.1.1-1"; ubuntuRelease = "21.10"; -in stdenv.mkDerivation { +in +stdenv.mkDerivation { pname = "mssql-tools"; inherit version; @@ -13,10 +14,11 @@ in stdenv.mkDerivation { src = if stdenv.hostPlatform.system == "x86_64-linux" then - fetchurl { - url = "https://packages.microsoft.com/ubuntu/${ubuntuRelease}/prod/pool/main/m/mssql-tools/mssql-tools_${version}_amd64.deb"; - sha256 = "0ya9643assr80yh6g0nd3i6iw819frhbb1m421khwplk9iq793kk"; - } + fetchurl + { + url = "https://packages.microsoft.com/ubuntu/${ubuntuRelease}/prod/pool/main/m/mssql-tools/mssql-tools_${version}_amd64.deb"; + sha256 = "0ya9643assr80yh6g0nd3i6iw819frhbb1m421khwplk9iq793kk"; + } else throw "mssql-tools is not supported on ${stdenv.hostPlatform.system}"; @@ -32,14 +34,16 @@ in stdenv.mkDerivation { rm -r $out/opt $out/usr ''; - postFixup = let - rpath = lib.makeLibraryPath [ glibc stdenv.cc.cc unixODBC ]; - in '' - for file in $(find $out/bin -type f); do - patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" - patchelf --set-rpath ${rpath} $file - done - ''; + postFixup = + let + rpath = lib.makeLibraryPath [ glibc stdenv.cc.cc unixODBC ]; + in + '' + for file in $(find $out/bin -type f); do + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$file" + patchelf --set-rpath ${rpath} $file + done + ''; meta = with lib; { license = licenses.unfree; -- cgit v1.2.3