···542542 # If copytoram is enabled: skip mounting the ISO and copy its content to a tmpfs.
543543 if [ -n "$copytoram" ] && [ "$device" = /dev/root ] && [ "$mountPoint" = /iso ]; then
544544 fsType=$(blkid -o value -s TYPE "$device")
545545- fsSize=$(blockdev --getsize64 "$device")
545545+ fsSize=$(blockdev --getsize64 "$device" || stat -Lc '%s' "$device")
546546547547 mkdir -p /tmp-iso
548548 mount -t "$fsType" /dev/root /tmp-iso
···15151616 doCheck = false;
17171818- buildFlagsArray = [ "-ldflags= -s -w -X=main.Version=${version}" ];
1818+ ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
19192020 meta = with lib; {
2121 description = "Manage your charm account on the CLI";
+5-5
pkgs/applications/misc/dstask/default.nix
···2424 # The other variables are set so that the output of dstask version shows the
2525 # git ref and the release version from github.
2626 # Ref <https://github.com/NixOS/nixpkgs/pull/87383#discussion_r432097657>
2727- buildFlagsArray = [ ''
2828- -ldflags=-w -s
2929- -X "github.com/naggie/dstask.VERSION=${version}"
3030- -X "github.com/naggie/dstask.GIT_COMMIT=v${version}"
3131- '' ];
2727+ ldflags = [
2828+ "-w" "-s"
2929+ "-X github.com/naggie/dstask.VERSION=${version}"
3030+ "-X github.com/naggie/dstask.GIT_COMMIT=v${version}"
3131+ ];
32323333 subPackages = [ "cmd/dstask.go" ];
3434
···17171818 subPackages = [ "cmd/tilt" ];
19192020- buildFlagsArray = [ "-ldflags=-X main.version=${version}" ];
2020+ ldflags = [ "-X main.version=${version}" ];
21212222 meta = with lib; {
2323 description = "Local development tool to manage your developer instance when your team deploys to Kubernetes in production";
···15151616 doCheck = false;
17171818- buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
1818+ ldflags = [ "-s" "-w" "-X main.Version=${version}" ];
19192020 meta = with lib; {
2121 description = "Minifiers for web formats";
+1-1
pkgs/os-specific/darwin/smimesign/default.nix
···13131414 vendorSha256 = "1cldxykm9qj5rvyfafam45y5xj4f19700s2f9w7ndhxgfp9vahvz";
15151616- buildFlagsArray = "-ldflags=-X main.versionString=v${version}";
1616+ ldflags = [ "-X main.versionString=v${version}" ];
17171818 meta = with lib; {
1919 description = "An S/MIME signing utility for macOS and Windows that is compatible with Git";
···1414 vendorSha256 = "sha256-kclpoZ33JOciP2IUCQZB5idA7rgbWxPPFNwZU+pEJFU=";
15151616 # Taken from https://github.com/oauth2-proxy/oauth2-proxy/blob/master/Makefile
1717- buildFlagsArray = ("-ldflags=-X main.VERSION=${version}");
1717+ ldflags = [ "-X main.VERSION=${version}" ];
18181919 meta = with lib; {
2020 description = "A reverse proxy that provides authentication with Google, Github, or other providers";
+1-1
pkgs/servers/pg_featureserv/default.nix
···13131414 vendorSha256 = "1jqrkx850ghmpnfjhqky93r8fq7q63m5ivs0lzljzbvn7ya75f2r";
15151616- buildFlagsArray = [ "-ldflags=-s -w -X github.com/CrunchyData/pg_featureserv/conf.setVersion=${version}" ];
1616+ ldflags = [ "-s" "-w" "-X github.com/CrunchyData/pg_featureserv/conf.setVersion=${version}" ];
17171818 meta = with lib; {
1919 description = "Lightweight RESTful Geospatial Feature Server for PostGIS in Go";
···1919 # Tests need docker
2020 doCheck = false;
21212222- buildFlagsArray = [
2323- # In the future, we might need to switch to `main.Version`, considering:
2424- # https://github.com/aler9/rtsp-simple-server/issues/503
2525- "-ldflags=-X github.com/aler9/rtsp-simple-server/internal/core.version=v${version}"
2222+ # In the future, we might need to switch to `main.Version`, considering:
2323+ # https://github.com/aler9/rtsp-simple-server/issues/503
2424+ ldflags = [
2525+ "-X github.com/aler9/rtsp-simple-server/internal/core.version=v${version}"
2626 ];
27272828 meta = with lib; {