Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #49864 from oxij/pkgs/tiny-things

trivial: tiny cleanups and fixes

authored by

Michael Raskin and committed by
GitHub
adf41ed9 6b4be56d

+29 -26
+3 -3
lib/sources.nix
··· 73 73 # Get the commit id of a git repo 74 74 # Example: commitIdFromGitRepo <nixpkgs/.git> 75 75 commitIdFromGitRepo = 76 - let readCommitFromFile = path: file: 76 + let readCommitFromFile = file: path: 77 77 with builtins; 78 78 let fileName = toString path + "/" + file; 79 79 packedRefsName = toString path + "/packed-refs"; ··· 85 85 matchRef = match "^ref: (.*)$" fileContent; 86 86 in if isNull matchRef 87 87 then fileContent 88 - else readCommitFromFile path (lib.head matchRef) 88 + else readCommitFromFile (lib.head matchRef) path 89 89 # Sometimes, the file isn't there at all and has been packed away in the 90 90 # packed-refs file, so we have to grep through it: 91 91 else if lib.pathExists packedRefsName ··· 96 96 then throw ("Could not find " + file + " in " + packedRefsName) 97 97 else lib.head matchRef 98 98 else throw ("Not a .git directory: " + path); 99 - in lib.flip readCommitFromFile "HEAD"; 99 + in readCommitFromFile "HEAD"; 100 100 101 101 pathHasContext = builtins.hasContext or (lib.hasPrefix builtins.storeDir); 102 102
+8 -5
nixos/release.nix
··· 45 45 system.nixos.revision = nixpkgs.rev or nixpkgs.shortRev; 46 46 }; 47 47 48 + makeModules = module: rest: [ configuration versionModule module rest ]; 48 49 49 50 makeIso = 50 51 { module, type, system, ... }: ··· 53 54 54 55 hydraJob ((import lib/eval-config.nix { 55 56 inherit system; 56 - modules = [ configuration module versionModule { isoImage.isoBaseName = "nixos-${type}"; } ]; 57 + modules = makeModules module { 58 + isoImage.isoBaseName = "nixos-${type}"; 59 + }; 57 60 }).config.system.build.isoImage); 58 61 59 62 ··· 64 67 65 68 hydraJob ((import lib/eval-config.nix { 66 69 inherit system; 67 - modules = [ configuration module versionModule ]; 70 + modules = makeModules module {}; 68 71 }).config.system.build.sdImage); 69 72 70 73 ··· 77 80 78 81 config = (import lib/eval-config.nix { 79 82 inherit system; 80 - modules = [ configuration module versionModule ]; 83 + modules = makeModules module {}; 81 84 }).config; 82 85 83 86 tarball = config.system.build.tarball; ··· 97 100 98 101 buildFromConfig = module: sel: forAllSystems (system: hydraJob (sel (import ./lib/eval-config.nix { 99 102 inherit system; 100 - modules = [ configuration module versionModule ] ++ singleton 103 + modules = makeModules module 101 104 ({ ... }: 102 105 { fileSystems."/".device = mkDefault "/dev/sda1"; 103 106 boot.loader.grub.device = mkDefault "/dev/sda"; ··· 108 111 let 109 112 configEvaled = import lib/eval-config.nix { 110 113 inherit system; 111 - modules = [ module versionModule ]; 114 + modules = makeModules module {}; 112 115 }; 113 116 build = configEvaled.config.system.build; 114 117 kernelTarget = configEvaled.pkgs.stdenv.hostPlatform.platform.kernelTarget;
+1 -1
pkgs/applications/audio/espeak-ng/default.nix
··· 27 27 28 28 meta = with stdenv.lib; { 29 29 description = "Open source speech synthesizer that supports over 70 languages, based on eSpeak"; 30 - homepage = https://github.com/espeak-ng/espeak-ng; 30 + homepage = src.meta.homepage; 31 31 license = licenses.gpl3; 32 32 maintainers = with maintainers; [ aske ]; 33 33 platforms = platforms.linux;
+1 -1
pkgs/applications/misc/gnuradio/rds.nix
··· 11 11 src = fetchFromGitHub { 12 12 owner = "bastibl"; 13 13 repo = "gr-rds"; 14 - rev = "$v{version}"; 14 + rev = "v${version}"; 15 15 sha256 = "008284ya464q4h4fd0zvcn6g7bym231p8fl3kdxncz9ks4zsbsxs"; 16 16 }; 17 17
+1 -1
pkgs/applications/networking/browsers/firefox/common.nix
··· 18 18 ## optional libraries 19 19 20 20 , alsaSupport ? stdenv.isLinux, alsaLib 21 - , pulseaudioSupport ? true, libpulseaudio 21 + , pulseaudioSupport ? stdenv.isLinux, libpulseaudio 22 22 , ffmpegSupport ? true, gstreamer, gst-plugins-base 23 23 , gtk3Support ? true, gtk2, gtk3, wrapGAppsHook 24 24 , gssSupport ? true, kerberos
+3 -3
pkgs/development/libraries/mesa/default.nix
··· 25 25 26 26 with stdenv.lib; 27 27 28 - if ! lists.elem stdenv.hostPlatform.system platforms.mesaPlatforms then 28 + if ! elem stdenv.hostPlatform.system platforms.mesaPlatforms then 29 29 throw "unsupported platform for Mesa" 30 30 else 31 31 32 32 let 33 33 defaultGalliumDrivers = 34 - optionals (builtins.elem "drm" eglPlatforms) 34 + optionals (elem "drm" eglPlatforms) 35 35 (if stdenv.isAarch32 36 36 then ["virgl" "nouveau" "freedreno" "vc4" "etnaviv" "imx"] 37 37 else if stdenv.isAarch64 38 38 then ["virgl" "nouveau" "vc4" ] 39 39 else ["virgl" "svga" "i915" "r300" "r600" "radeonsi" "nouveau"]); 40 40 defaultDriDrivers = 41 - optionals (builtins.elem "drm" eglPlatforms) 41 + optionals (elem "drm" eglPlatforms) 42 42 (if (stdenv.isAarch32 || stdenv.isAarch64) 43 43 then ["nouveau"] 44 44 else ["i915" "i965" "nouveau" "radeon" "r200"]);
+1 -1
pkgs/development/libraries/qt-5/5.11/default.nix
··· 33 33 34 34 qtCompatVersion = "5.11"; 35 35 36 - mirror = "http://download.qt.io"; 36 + mirror = "https://download.qt.io"; 37 37 srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; } // { 38 38 # Community port of the now unmaintained upstream qtwebkit. 39 39 qtwebkit = {
+1 -1
pkgs/development/libraries/qt-5/modules/qtbase.nix
··· 18 18 withGtk3 ? false, dconf ? null, gtk3 ? null, 19 19 20 20 # options 21 - libGLSupported ? (!stdenv.isDarwin), 21 + libGLSupported ? !stdenv.isDarwin, 22 22 libGL, 23 23 buildExamples ? false, 24 24 buildTests ? false,
+1 -1
pkgs/games/blackshades/default.nix
··· 4 4 name = "blackshades-svn-110"; 5 5 src = fetchsvn { 6 6 url = svn://svn.icculus.org/blackshades/trunk; 7 - rev = 110; 7 + rev = "110"; 8 8 sha256 = "0kbrh1dympk8scjxr6av24qs2bffz44l8qmw2m5gyqf4g3rxf6ra"; 9 9 }; 10 10
+1 -1
pkgs/games/blackshadeselite/default.nix
··· 4 4 name = "blackshades-elite-svn-29"; 5 5 src = fetchsvn { 6 6 url = svn://svn.gna.org/svn/blackshadeselite/trunk; 7 - rev = 29; 7 + rev = "29"; 8 8 sha256 = "1lkws5pqpgcgdlar11waikp6y41z678457n9jcik7nhn53cjjr1s"; 9 9 }; 10 10
+1 -1
pkgs/games/privateer/default.nix
··· 8 8 src = fetchsvn { 9 9 #url = "mirror://sourceforge/project/privateer/Wing%20Commander%20Privateer/Privateer%20Gemini%20Gold%201.03/PrivateerGold1.03.bz2.bin"; 10 10 url = "https://privateer.svn.sourceforge.net/svnroot/privateer/privgold/trunk/engine"; 11 - rev = 294; 11 + rev = "294"; 12 12 sha256 = "e1759087d4565d3fc95e5c87d0f6ddf36b2cd5befec5695ec56ed5f3cd144c63"; 13 13 }; 14 14
+1 -1
pkgs/games/vdrift/default.nix
··· 3 3 4 4 , data ? fetchsvn { 5 5 url = "svn://svn.code.sf.net/p/vdrift/code/vdrift-data"; 6 - rev = 1386; 6 + rev = "1386"; 7 7 sha256 = "0ka6zir9hg0md5p03dl461jkvbk05ywyw233hnc3ka6shz3vazi1"; 8 8 } 9 9 }:
+3 -3
pkgs/misc/cups/drivers/splix/default.nix
··· 1 1 { stdenv, fetchsvn, fetchurl, cups, cups-filters, jbigkit, zlib }: 2 2 3 3 let 4 - rev = "315"; 5 4 6 5 color-profiles = stdenv.mkDerivation { 7 6 name = "splix-color-profiles-20070625"; ··· 19 18 ''; 20 19 }; 21 20 22 - in stdenv.mkDerivation { 21 + in stdenv.mkDerivation rec { 23 22 name = "splix-svn-${rev}"; 23 + rev = "315"; 24 24 25 25 src = fetchsvn { 26 26 # We build this from svn, because splix hasn't been in released in several years 27 27 # although the community has been adding some new printer models. 28 28 url = "svn://svn.code.sf.net/p/splix/code/splix"; 29 - rev = "r${rev}"; 29 + inherit rev; 30 30 sha256 = "16wbm4xnz35ca3mw2iggf5f4jaxpyna718ia190ka6y4ah932jxl"; 31 31 }; 32 32
+1 -1
pkgs/os-specific/linux/kernel/linux-libre.nix
··· 1 1 { stdenv, lib, fetchsvn, linux 2 2 , scripts ? fetchsvn { 3 3 url = "https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/tags/"; 4 - rev = "r15295"; 4 + rev = "15295"; 5 5 sha256 = "03kqbjy7w9zg6ry86h9sxa33z0rblznhba109lwmjwy0wx7yk1cs"; 6 6 } 7 7 , ...
+1 -1
pkgs/servers/asterisk/default.nix
··· 76 76 77 77 mp3-202 = fetchsvn { 78 78 url = http://svn.digium.com/svn/thirdparty/mp3/trunk; 79 - rev = 202; 79 + rev = "202"; 80 80 sha256 = "1s9idx2miwk178sa731ig9r4fzx4gy1q8xazfqyd7q4lfd70s1cy"; 81 81 }; 82 82
+1 -1
pkgs/tools/graphics/netpbm/default.nix
··· 9 9 10 10 src = fetchsvn { 11 11 url = "https://svn.code.sf.net/p/netpbm/code/advanced"; 12 - rev = 3264; 12 + rev = "3264"; 13 13 sha256 = "17fmyjbxp1l18rma7gb0m8wd9kx2iwhqs8dd6fpalsn2cr8mf8hf"; 14 14 }; 15 15