···6464 */6565 foldl = op: nul: list:6666 let6767- len = length list;6867 foldl' = n:6968 if n == -17069 then nul
-1
lib/modules.nix
···670670 { config, options, ... }:671671 let672672 fromOpt = getAttrFromPath from options;673673- toOpt = getAttrFromPath to options;674673 toOf = attrByPath to675674 (abort "Renaming error: option `${showOption to}' does not exist.");676675 in
-4
lib/tests/misc.nix
···380380381381 resRem7 = res6.replace (a: removeAttrs a ["a"]);382382383383- resReplace6 = let x = defaultOverridableDelayableArgs id { a = 7; mergeAttrBy = { a = builtins.add; }; };384384- x2 = x.merge { a = 20; }; # now we have 27385385- in (x2.replace) { a = 10; }; # and override the value by 10386386-387383 # fixed tests (delayed args): (when using them add some comments, please)388384 resFixed1 =389385 let x = defaultOverridableDelayableArgs id ( x: { a = 7; c = x.fixed.b; });
···7788 taskd = "${pkgs.taskserver}/bin/taskd";991010- mkVal = val:1111- if val == true then "true"1212- else if val == false then "false"1313- else if isList val then concatStringsSep ", " val1414- else toString val;1515-1616- mkConfLine = key: val: let1717- result = "${key} = ${mkVal val}";1818- in optionalString (val != null && val != []) result;1919-2010 mkManualPkiOption = desc: mkOption {2111 type = types.nullOr types.path;2212 default = null;
···103103104104 ${flip concatMapStrings105105 (collect (proto: proto ? port && proto ? address && proto ? name) cfg.proto)106106- (proto: let portStr = toString proto.port; in ''106106+ (proto: ''107107 [${proto.name}]108108 enabled = ${boolToString proto.enable}109109 address = ${proto.address}···122122 # DO NOT EDIT -- this file has been generated automatically.123123 ${flip concatMapStrings124124 (collect (tun: tun ? port && tun ? destination) cfg.outTunnels)125125- (tun: let portStr = toString tun.port; in ''125125+ (tun: ''126126 [${tun.name}]127127 type = client128128 destination = ${tun.destination}
···1313 settingsDir = "${homeDir}/.config/transmission-daemon";1414 settingsFile = pkgs.writeText "settings.json" (builtins.toJSON fullSettings);15151616- # Strings must be quoted, ints and bools must not (for settings.json).1717- toOption = x:1818- if isBool x then boolToString x1919- else if isInt x then toString x2020- else toString ''"${x}"'';2121-2216 # for users in group "transmission" to have access to torrents2317 fullSettings = { umask = 2; download-dir = downloadDir; incomplete-dir = incompleteDir; } // cfg.settings;2418
···66with lib;77with import ../../lib/qemu-flags.nix { inherit pkgs; };8899-let1010- kernel = config.boot.kernelPackages.kernel;1111-in1212-139{14101511 # This option is a dummy that if used in conjunction with
-3
nixos/modules/virtualisation/openvswitch.nix
···5151 # Where the communication sockets live5252 runDir = "/var/run/openvswitch";53535454- # Where the config database live (can't be in nix-store)5555- stateDir = "/var/db/openvswitch";5656-5754 # The path to the an initialized version of the database5855 db = pkgs.stdenv.mkDerivation {5956 name = "vswitch.db";
···5858 '';595960606161- channelContents = [ pkgs.rlwrap ];6262-6363-6461 # The test script boots a NixOS VM, installs NixOS on an empty hard6562 # disk, and then reboot from the hard disk. It's parameterized with6663 # a test script fragment `createPartitions', which must create
-2
nixos/tests/pam-oath-login.nix
···1212 # and picking a the first 4:1313 oathSnakeOilPassword1 = "143349";1414 oathSnakeOilPassword2 = "801753";1515- oathSnakeOilPassword3 = "019933";1616- oathSnakeOilPassword4 = "403895";17151816 alicePassword = "foobar";1917 # Generated via: mkpasswd -m sha-512 and passing in "foobar"
+2-2
pkgs/applications/altcoins/mist.nix
···2626 };27272828 mist = stdenv.lib.appendToName "unwrapped" (stdenv.mkDerivation {2929- inherit name version;2929+ inherit name version meta;30303131 src = {3232 i686-linux = fetchurl {···5656 });5757in5858buildFHSUserEnv {5959- inherit name;5959+ inherit name meta;60606161 targetPkgs = pkgs: with pkgs; [6262 mist
-3
pkgs/applications/audio/clementine/default.nix
···44, qca2, pkgconfig, sparsehash, config, makeWrapper, runCommand, gst_plugins }:5566let77- withSpotify = config.clementine.spotify or false;87 withIpod = config.clementine.ipod or false;98 withMTP = config.clementine.mtp or true;109 withCD = config.clementine.cd or true;1110 withCloud = config.clementine.cloud or true;12111312 version = "1.3.1";1414-1515- exeName = "clementine";16131714 src = fetchurl {1815 url = https://github.com/clementine-player/Clementine/archive/1.3.1.tar.gz;
···4747, debug ? false4848}:49495050-let5151- arch =5252- if stdenv.system == "x86_64-linux" then5353- "x86_64"5454- else throw "Flash Player is not supported on this platform";5555-in5650stdenv.mkDerivation rec {5751 name = "flashplayer-standalone-${version}";5852 version = "30.0.0.134";
-1
pkgs/applications/office/mendeley/default.nix
···36363737let3838 arch32 = "i686-linux";3939- arch64 = "x86_64-linux";40394140 arch = if stdenv.system == arch324241 then "i386"
···3636 if !isGhcjs3737 then "haddock"3838 else "haddock-ghcjs";3939- ghcName =4040- if !isGhcjs4141- then "ghc"4242- else "ghcjs";4339 ghcDocLibDir =4440 if !isGhcjs4541 then ghc.doc + ''/share/doc/ghc*/html/libraries''
···77assert release -> keyStore != null && keyAlias != null && keyStorePassword != null && keyAliasPassword != null;8899let1010- platformName = if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then "linux"1111- else if stdenv.system == "x86_64-darwin" then "macosx"1212- else throw "Platform: ${stdenv.system} is not supported!";1313-1410 androidsdkComposition = androidsdk {1511 inherit platformVersions useGoogleAPIs;1612 abiVersions = [];
+1-6
pkgs/development/ocaml-modules/pycaml/default.nix
···2233# This is the original pycaml version with patches from debian.4455-let debian = fetchurl {66- url = "mirror://debian/pool/main/p/pycaml/pycaml_0.82-14.debian.tar.gz";77- sha256 = "a763088ec1fa76c769bf586ed6692e7ac035b0a2bfd48a90a8e7a9539ec0c2f1";88- };99-1010-in stdenv.mkDerivation {55+stdenv.mkDerivation {116 name = "pycaml-0.82-14";127138 srcs = [
···66let77 minorVersion = "3.6";88 patchVersion = "0";99- arch = if stdenv.system == "x86_64-linux" then "amd64"1010- else if stdenv.system == "i686-linux" then "i386"1111- else "";1291310in stdenv.mkDerivation rec {1411 name = "selenium-server-standalone-${version}";
-2
pkgs/games/dwarf-fortress/wrapper/default.nix
···2222 then builtins.getAttr theme themes2323 else theme;24242525- twbtOnlyWithDFHack = assert (enableDFHack || !enableTWBT); true;2626-2725 unBool = b: if b then "YES" else "NO";28262927 # These are in inverse order for first packages to override the next ones.