···6464 */
6565 foldl = op: nul: list:
6666 let
6767- len = length list;
6867 foldl' = n:
6968 if n == -1
7069 then nul
-1
lib/modules.nix
···670670 { config, options, ... }:
671671 let
672672 fromOpt = getAttrFromPath from options;
673673- toOpt = getAttrFromPath to options;
674673 toOf = attrByPath to
675674 (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 27
385385- in (x2.replace) { a = 10; }; # and override the value by 10
386386-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; });
···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 x
1919- else if isInt x then toString x
2020- else toString ''"${x}"'';
2121-2216 # for users in group "transmission" to have access to torrents
2317 fullSettings = { umask = 2; download-dir = downloadDir; incomplete-dir = incompleteDir; } // cfg.settings;
2418
···66with lib;
77with import ../../lib/qemu-flags.nix { inherit pkgs; };
8899-let
1010- kernel = config.boot.kernelPackages.kernel;
1111-in
1212-139{
14101511 # This option is a dummy that if used in conjunction with
-3
nixos/modules/virtualisation/openvswitch.nix
···5151 # Where the communication sockets live
5252 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 database
5855 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 hard
6562 # disk, and then reboot from the hard disk. It's parameterized with
6663 # 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 });
5757in
5858buildFHSUserEnv {
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 }:
5566let
77- 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 ? false
4848}:
49495050-let
5151- arch =
5252- if stdenv.system == "x86_64-linux" then
5353- "x86_64"
5454- else throw "Flash Player is not supported on this platform";
5555-in
5650stdenv.mkDerivation rec {
5751 name = "flashplayer-standalone-${version}";
5852 version = "30.0.0.134";
-1
pkgs/applications/office/mendeley/default.nix
···36363737let
3838 arch32 = "i686-linux";
3939- arch64 = "x86_64-linux";
40394140 arch = if stdenv.system == arch32
4241 then "i386"
···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 = [
···66let
77 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 themes
2323 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.