summaryrefslogtreecommitdiff
path: root/pkgs/mssql-tools.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-12-27 01:21:34 -0600
committerAlejandro Soto <alejandro@34project.org>2022-12-27 01:21:34 -0600
commitccbd359a8f9089a1e7a9566fdca62e26a2bb447c (patch)
treee248f3a9f848187e80d45baf2bd43ad465733fb0 /pkgs/mssql-tools.nix
parent61d433c8e7cc17d5b921329fca9baf7c3d528ade (diff)
flake: enforce nixpkgs-fmt
Diffstat (limited to '')
-rw-r--r--pkgs/mssql-tools.nix30
1 files changed, 17 insertions, 13 deletions
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;