Skip to content

top-level/platforms.nix: Reformat and clean up whitespace #24804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2017

Conversation

Ericson2314
Copy link
Member

Motivation for this change

Cleanliness

Things done

Need to confirm no mass rebuilds on hydra.nixos.org are caused by this.

  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@mention-bot
Copy link

@Ericson2314, thanks for your PR! By analyzing the history of the files in this pull request, we identified @viric, @dezgeg and @rickynils to be potential reviewers.

@Ericson2314
Copy link
Member Author

CC @abbradar you were the last person to touch this?

@Ericson2314
Copy link
Member Author

Ericson2314 commented Apr 10, 2017

Very crude diff of how things evaluate:

# run before and after this PR to make what is diffed
# n.b. this is a fish script, I think just replace `\\\\` with `\\` for bourne-like shell.
printf ":p import pkgs/top-level/platforms.nix\n:q" | nix-repl | sed -E 's_(;|\\\\n)_\n_g' > platforms.txt
diff --git a/home/john/Code/git/nixpkgs-base/platforms.txt b/home/john/Code/git/nixpkgs/platforms.txt
index 3127bc42c7..9cbb47bdbf 100644
--- a/home/john/Code/git/nixpkgs-base/platforms.txt
+++ b/home/john/Code/git/nixpkgs/platforms.txt
@@ -222,7 +222,7 @@ FUSE_FS m
 # systemd uses cgroups
 CGROUPS y
 
-# Latencytop 
+# Latencytop
 LATENCYTOP y
 
 # Ubi for the mtd
@@ -360,7 +360,7 @@ FUSE_FS m
 # nixos mounts some cgroup
 CGROUPS y
 
-# Latencytop 
+# Latencytop
 LATENCYTOP y
 "
  kernelHeadersBaseConfig = "bcm2835_defconfig"
@@ -374,77 +374,77 @@ LATENCYTOP y
  kernelAutoModules = false
  kernelBaseConfig = "bcm2709_defconfig"
  kernelDTB = true
- kernelExtraConfig = "        BLK_DEV_RAM y
-        BLK_DEV_INITRD y
-        BLK_DEV_CRYPTOLOOP m
-        BLK_DEV_DM m
-        DM_CRYPT m
-        MD y
-        REISERFS_FS m
-        BTRFS_FS y
-        XFS_FS m
-        JFS_FS y
-        EXT4_FS y
-
-        IP_PNP y
-        IP_PNP_DHCP y
-        NFS_FS y
-        ROOT_NFS y
-        TUN m
-        NFS_V4 y
-        NFS_V4_1 y
-        NFS_FSCACHE y
-        NFSD m
-        NFSD_V2_ACL y
-        NFSD_V3 y
-        NFSD_V3_ACL y
-        NFSD_V4 y
-        NETFILTER y
-        IP_NF_IPTABLES y
-        IP_NF_FILTER y
-        IP_NF_MATCH_ADDRTYPE y
-        IP_NF_TARGET_LOG y
-        IP_NF_MANGLE y
-        IPV6 m
-        VLAN_8021Q m
-
-        CIFS y
-        CIFS_XATTR y
-        CIFS_POSIX y
-        CIFS_FSCACHE y
-        CIFS_ACL y
-
-        ZRAM m
-
-        # Disable OABI to have seccomp_filter (required for systemd)
-        # https://github.com/raspberrypi/firmware/issues/651
-        OABI_COMPAT n
-
-        # Fail to build
-        DRM n
-        SCSI_ADVANSYS n
-        USB_ISP1362_HCD n
-        SND_SOC n
-        SND_ALI5451 n
-        FB_SAVAGE n
-        SCSI_NSP32 n
-        ATA_SFF n
-        SUNGEM n
-        IRDA n
-        ATM_HE n
-        SCSI_ACARD n
-        BLK_DEV_CMD640_ENHANCED n
-
-        FUSE_FS m
-
-        # nixos mounts some cgroup
-        CGROUPS y
-
-        # Latencytop 
-        LATENCYTOP y
-
-        # Disable the common config Xen, it doesn't build on ARM
-\tXEN? n
+ kernelExtraConfig = "BLK_DEV_RAM y
+BLK_DEV_INITRD y
+BLK_DEV_CRYPTOLOOP m
+BLK_DEV_DM m
+DM_CRYPT m
+MD y
+REISERFS_FS m
+BTRFS_FS y
+XFS_FS m
+JFS_FS y
+EXT4_FS y
+
+IP_PNP y
+IP_PNP_DHCP y
+NFS_FS y
+ROOT_NFS y
+TUN m
+NFS_V4 y
+NFS_V4_1 y
+NFS_FSCACHE y
+NFSD m
+NFSD_V2_ACL y
+NFSD_V3 y
+NFSD_V3_ACL y
+NFSD_V4 y
+NETFILTER y
+IP_NF_IPTABLES y
+IP_NF_FILTER y
+IP_NF_MATCH_ADDRTYPE y
+IP_NF_TARGET_LOG y
+IP_NF_MANGLE y
+IPV6 m
+VLAN_8021Q m
+
+CIFS y
+CIFS_XATTR y
+CIFS_POSIX y
+CIFS_FSCACHE y
+CIFS_ACL y
+
+ZRAM m
+
+# Disable OABI to have seccomp_filter (required for systemd)
+# https://github.com/raspberrypi/firmware/issues/651
+OABI_COMPAT n
+
+# Fail to build
+DRM n
+SCSI_ADVANSYS n
+USB_ISP1362_HCD n
+SND_SOC n
+SND_ALI5451 n
+FB_SAVAGE n
+SCSI_NSP32 n
+ATA_SFF n
+SUNGEM n
+IRDA n
+ATM_HE n
+SCSI_ACARD n
+BLK_DEV_CMD640_ENHANCED n
+
+FUSE_FS m
+
+# nixos mounts some cgroup
+CGROUPS y
+
+# Latencytop
+LATENCYTOP y
+
+# Disable the common config Xen, it doesn't build on ARM
+XEN? n
 "
  kernelHeadersBaseConfig = "multi_v7_defconfig"
  kernelMajor = "2.6"
@@ -539,7 +539,7 @@ FUSE_FS m
 # systemd uses cgroups
 CGROUPS y
 
-# Latencytop 
+# Latencytop
 LATENCYTOP y
 
 # Ubi for the mtd

Verified

This commit was signed with the committer’s verified signature.
mogorman Matthew O'Gorman
@Ericson2314 Ericson2314 force-pushed the platform-whitespace branch from f90cf2d to f3055a3 Compare April 10, 2017 19:40
@Ericson2314 Ericson2314 merged commit 2b85b38 into NixOS:master Apr 10, 2017
@Ericson2314 Ericson2314 deleted the platform-whitespace branch April 10, 2017 20:30
@Ericson2314
Copy link
Member Author

Thanks @dezgeg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants