treewide: remove global with lib; in pkgs/{audio,blockchain,editors}

+145 -198
+8 -10
pkgs/applications/audio/asunder/default.nix
··· 9 #, aacSupport ? false, TODO: neroAacEnc 10 }: 11 12 - with lib; 13 - 14 stdenv.mkDerivation rec { 15 version = "2.9.7"; 16 pname = "asunder"; ··· 23 buildInputs = [ gtk2 libcddb ]; 24 25 runtimeDeps = 26 - optional mp3Support lame ++ 27 - optional oggSupport vorbis-tools ++ 28 - optional flacSupport flac ++ 29 - optional opusSupport opusTools ++ 30 - optional wavpackSupport wavpack ++ 31 - optional monkeysAudioSupport monkeysAudio ++ 32 [ cdparanoia ]; 33 34 postInstall = '' 35 wrapProgram "$out/bin/asunder" \ 36 - --prefix PATH : "${makeBinPath runtimeDeps}" 37 ''; 38 39 - meta = { 40 description = "A graphical Audio CD ripper and encoder for Linux"; 41 homepage = "http://littlesvr.ca/asunder/index.php"; 42 license = licenses.gpl2;
··· 9 #, aacSupport ? false, TODO: neroAacEnc 10 }: 11 12 stdenv.mkDerivation rec { 13 version = "2.9.7"; 14 pname = "asunder"; ··· 21 buildInputs = [ gtk2 libcddb ]; 22 23 runtimeDeps = 24 + lib.optional mp3Support lame ++ 25 + lib.optional oggSupport vorbis-tools ++ 26 + lib.optional flacSupport flac ++ 27 + lib.optional opusSupport opusTools ++ 28 + lib.optional wavpackSupport wavpack ++ 29 + lib.optional monkeysAudioSupport monkeysAudio ++ 30 [ cdparanoia ]; 31 32 postInstall = '' 33 wrapProgram "$out/bin/asunder" \ 34 + --prefix PATH : "${lib.makeBinPath runtimeDeps}" 35 ''; 36 37 + meta = with lib; { 38 description = "A graphical Audio CD ripper and encoder for Linux"; 39 homepage = "http://littlesvr.ca/asunder/index.php"; 40 license = licenses.gpl2;
+4 -6
pkgs/applications/audio/carla/default.nix
··· 5 withGtk2 ? true, gtk2 ? null, 6 withGtk3 ? true, gtk3 ? null }: 7 8 - with lib; 9 - 10 assert withFrontend -> python3Packages ? pyqt5; 11 assert withQt -> qtbase != null; 12 assert withQt -> wrapQtAppsHook != null; ··· 30 31 pythonPath = with python3Packages; [ 32 rdflib pyliblo 33 - ] ++ optional withFrontend pyqt5; 34 35 buildInputs = [ 36 file liblo alsa-lib fluidsynth jack2 libpulseaudio libsndfile 37 - ] ++ optional withQt qtbase 38 - ++ optional withGtk2 gtk2 39 - ++ optional withGtk3 gtk3; 40 41 propagatedBuildInputs = pythonPath; 42
··· 5 withGtk2 ? true, gtk2 ? null, 6 withGtk3 ? true, gtk3 ? null }: 7 8 assert withFrontend -> python3Packages ? pyqt5; 9 assert withQt -> qtbase != null; 10 assert withQt -> wrapQtAppsHook != null; ··· 28 29 pythonPath = with python3Packages; [ 30 rdflib pyliblo 31 + ] ++ lib.optional withFrontend pyqt5; 32 33 buildInputs = [ 34 file liblo alsa-lib fluidsynth jack2 libpulseaudio libsndfile 35 + ] ++ lib.optional withQt qtbase 36 + ++ lib.optional withGtk2 gtk2 37 + ++ lib.optional withGtk3 gtk3; 38 39 propagatedBuildInputs = pythonPath; 40
+3 -5
pkgs/applications/audio/cmus/default.nix
··· 39 #, vtxSupport ? true, libayemu ? null 40 }: 41 42 - with lib; 43 - 44 assert samplerateSupport -> jackSupport; 45 46 # vorbis and tremor are mutually exclusive ··· 113 114 patches = [ ./option-debugging.patch ]; 115 116 - configurePhase = "./configure " + concatStringsSep " " ([ 117 "prefix=$out" 118 "CONFIG_WAV=y" 119 - ] ++ concatMap (a: a.flags) opts); 120 121 nativeBuildInputs = [ pkg-config ]; 122 buildInputs = [ ncurses ] 123 ++ lib.optional stdenv.cc.isClang clangGCC 124 ++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio AudioUnit VideoToolbox ] 125 - ++ flatten (concatMap (a: a.deps) opts); 126 127 makeFlags = [ "LD=$(CC)" ]; 128
··· 39 #, vtxSupport ? true, libayemu ? null 40 }: 41 42 assert samplerateSupport -> jackSupport; 43 44 # vorbis and tremor are mutually exclusive ··· 111 112 patches = [ ./option-debugging.patch ]; 113 114 + configurePhase = "./configure " + lib.concatStringsSep " " ([ 115 "prefix=$out" 116 "CONFIG_WAV=y" 117 + ] ++ lib.concatMap (a: a.flags) opts); 118 119 nativeBuildInputs = [ pkg-config ]; 120 buildInputs = [ ncurses ] 121 ++ lib.optional stdenv.cc.isClang clangGCC 122 ++ lib.optionals stdenv.isDarwin [ libiconv CoreAudio AudioUnit VideoToolbox ] 123 + ++ lib.flatten (lib.concatMap (a: a.deps) opts); 124 125 makeFlags = [ "LD=$(CC)" ]; 126
+3 -5
pkgs/applications/audio/crip/default.nix
··· 16 , which 17 }: 18 19 - with lib; 20 - 21 stdenv.mkDerivation rec { 22 pname = "crip"; 23 version = "3.9"; ··· 29 buildInputs = [ perlPackages.perl perlPackages.CDDB_get ]; 30 nativeBuildInputs = [ makeWrapper ]; 31 32 - toolDeps = makeBinPath [ 33 cdparanoia 34 coreutils 35 eject ··· 46 installPhase = '' 47 mkdir -p $out/bin/ 48 49 - for script in ${escapeShellArgs scripts}; do 50 cp $script $out/bin/ 51 52 substituteInPlace $out/bin/$script \ ··· 63 description = "Terminal-based ripper/encoder/tagger tool for creating Ogg Vorbis/FLAC files"; 64 license = lib.licenses.gpl1Only; 65 platforms = lib.platforms.linux; 66 - maintainers = [ maintainers.endgame ]; 67 }; 68 }
··· 16 , which 17 }: 18 19 stdenv.mkDerivation rec { 20 pname = "crip"; 21 version = "3.9"; ··· 27 buildInputs = [ perlPackages.perl perlPackages.CDDB_get ]; 28 nativeBuildInputs = [ makeWrapper ]; 29 30 + toolDeps = lib.makeBinPath [ 31 cdparanoia 32 coreutils 33 eject ··· 44 installPhase = '' 45 mkdir -p $out/bin/ 46 47 + for script in ${lib.escapeShellArgs scripts}; do 48 cp $script $out/bin/ 49 50 substituteInPlace $out/bin/$script \ ··· 61 description = "Terminal-based ripper/encoder/tagger tool for creating Ogg Vorbis/FLAC files"; 62 license = lib.licenses.gpl1Only; 63 platforms = lib.platforms.linux; 64 + maintainers = [ lib.maintainers.endgame ]; 65 }; 66 }
+7 -9
pkgs/applications/audio/fmit/default.nix
··· 7 assert jackSupport -> libjack2 != null; 8 assert portaudioSupport -> portaudio != null; 9 10 - with lib; 11 - 12 mkDerivation rec { 13 pname = "fmit"; 14 version = "1.2.14"; ··· 22 23 nativeBuildInputs = [ qmake itstool wrapQtAppsHook ]; 24 buildInputs = [ fftw qtbase qtmultimedia ] 25 - ++ optionals alsaSupport [ alsa-lib ] 26 - ++ optionals jackSupport [ libjack2 ] 27 - ++ optionals portaudioSupport [ portaudio ]; 28 29 postPatch = '' 30 substituteInPlace fmit.pro --replace '$$FMITVERSIONGITPRO' '${version}' ··· 32 33 preConfigure = '' 34 qmakeFlags="$qmakeFlags \ 35 - CONFIG+=${optionalString alsaSupport "acs_alsa"} \ 36 - CONFIG+=${optionalString jackSupport "acs_jack"} \ 37 - CONFIG+=${optionalString portaudioSupport "acs_portaudio"} \ 38 PREFIXSHORTCUT=$out" 39 ''; 40 41 - meta = { 42 description = "Free Musical Instrument Tuner"; 43 longDescription = '' 44 FMIT is a graphical utility for tuning musical instruments, with error
··· 7 assert jackSupport -> libjack2 != null; 8 assert portaudioSupport -> portaudio != null; 9 10 mkDerivation rec { 11 pname = "fmit"; 12 version = "1.2.14"; ··· 20 21 nativeBuildInputs = [ qmake itstool wrapQtAppsHook ]; 22 buildInputs = [ fftw qtbase qtmultimedia ] 23 + ++ lib.optionals alsaSupport [ alsa-lib ] 24 + ++ lib.optionals jackSupport [ libjack2 ] 25 + ++ lib.optionals portaudioSupport [ portaudio ]; 26 27 postPatch = '' 28 substituteInPlace fmit.pro --replace '$$FMITVERSIONGITPRO' '${version}' ··· 30 31 preConfigure = '' 32 qmakeFlags="$qmakeFlags \ 33 + CONFIG+=${lib.optionalString alsaSupport "acs_alsa"} \ 34 + CONFIG+=${lib.optionalString jackSupport "acs_jack"} \ 35 + CONFIG+=${lib.optionalString portaudioSupport "acs_portaudio"} \ 36 PREFIXSHORTCUT=$out" 37 ''; 38 39 + meta = with lib; { 40 description = "Free Musical Instrument Tuner"; 41 longDescription = '' 42 FMIT is a graphical utility for tuning musical instruments, with error
+7 -8
pkgs/applications/audio/goattracker/default.nix
··· 8 , isStereo ? false 9 }: 10 11 - with lib; 12 let 13 - pname = "goattracker" + optionalString isStereo "-stereo"; 14 desktopItem = makeDesktopItem { 15 name = pname; 16 - desktopName = "GoatTracker 2" + optionalString isStereo " Stereo"; 17 genericName = "Music Tracker"; 18 exec = if isStereo 19 then "gt2stereo" ··· 30 else "2.76"; # normal 31 32 src = fetchurl { 33 - url = "mirror://sourceforge/goattracker2/GoatTracker_${version}${optionalString isStereo "_Stereo"}.zip"; 34 sha256 = if isStereo 35 then "1hiig2d152sv9kazwz33i56x1c54h5sh21ipkqnp6qlnwj8x1ksy" # stereo 36 else "0d7a3han4jw4bwiba3j87racswaajgl3pj4sb5lawdqdxicv3dn1"; # normal ··· 63 64 meta = { 65 description = "A crossplatform music editor for creating Commodore 64 music. Uses reSID library by Dag Lem and supports alternatively HardSID & CatWeasel devices" 66 - + optionalString isStereo " - Stereo version"; 67 homepage = "https://cadaver.github.io/tools.html"; 68 downloadPage = "https://sourceforge.net/projects/goattracker2/"; 69 - license = licenses.gpl2Plus; 70 - maintainers = with maintainers; [ fgaz ]; 71 - platforms = platforms.all; 72 }; 73 }
··· 8 , isStereo ? false 9 }: 10 11 let 12 + pname = "goattracker" + lib.optionalString isStereo "-stereo"; 13 desktopItem = makeDesktopItem { 14 name = pname; 15 + desktopName = "GoatTracker 2" + lib.optionalString isStereo " Stereo"; 16 genericName = "Music Tracker"; 17 exec = if isStereo 18 then "gt2stereo" ··· 29 else "2.76"; # normal 30 31 src = fetchurl { 32 + url = "mirror://sourceforge/goattracker2/GoatTracker_${version}${lib.optionalString isStereo "_Stereo"}.zip"; 33 sha256 = if isStereo 34 then "1hiig2d152sv9kazwz33i56x1c54h5sh21ipkqnp6qlnwj8x1ksy" # stereo 35 else "0d7a3han4jw4bwiba3j87racswaajgl3pj4sb5lawdqdxicv3dn1"; # normal ··· 62 63 meta = { 64 description = "A crossplatform music editor for creating Commodore 64 music. Uses reSID library by Dag Lem and supports alternatively HardSID & CatWeasel devices" 65 + + lib.optionalString isStereo " - Stereo version"; 66 homepage = "https://cadaver.github.io/tools.html"; 67 downloadPage = "https://sourceforge.net/projects/goattracker2/"; 68 + license = lib.licenses.gpl2Plus; 69 + maintainers = with lib.maintainers; [ fgaz ]; 70 + platforms = lib.platforms.all; 71 }; 72 }
+2 -4
pkgs/applications/audio/musescore/darwin.nix
··· 5 appName = "MuseScore ${builtins.head versionComponents}"; 6 in 7 8 - with lib; 9 - 10 stdenv.mkDerivation rec { 11 pname = "musescore-darwin"; 12 - version = concatStringsSep "." versionComponents; 13 14 # The disk image contains the .app and a symlink to /Applications. 15 sourceRoot = "${appName}.app"; 16 17 src = fetchurl { 18 - url = "https://github.com/musescore/MuseScore/releases/download/v${concatStringsSep "." (take 3 versionComponents)}/MuseScore-${version}.dmg"; 19 sha256 = "sha256-lHckfhTTrDzaGwlbnZ5w0O1gMPbRmrmgATIGMY517l0="; 20 }; 21
··· 5 appName = "MuseScore ${builtins.head versionComponents}"; 6 in 7 8 stdenv.mkDerivation rec { 9 pname = "musescore-darwin"; 10 + version = lib.concatStringsSep "." versionComponents; 11 12 # The disk image contains the .app and a symlink to /Applications. 13 sourceRoot = "${appName}.app"; 14 15 src = fetchurl { 16 + url = "https://github.com/musescore/MuseScore/releases/download/v${lib.concatStringsSep "." (lib.take 3 versionComponents)}/MuseScore-${version}.dmg"; 17 sha256 = "sha256-lHckfhTTrDzaGwlbnZ5w0O1gMPbRmrmgATIGMY517l0="; 18 }; 19
+2 -4
pkgs/applications/audio/ncmpc/default.nix
··· 12 , pcreSupport ? false, pcre ? null 13 }: 14 15 - with lib; 16 - 17 assert pcreSupport -> pcre != null; 18 19 stdenv.mkDerivation rec { ··· 28 }; 29 30 buildInputs = [ glib ncurses libmpdclient boost ] 31 - ++ optional pcreSupport pcre; 32 nativeBuildInputs = [ meson ninja pkg-config gettext ]; 33 34 mesonFlags = [ 35 "-Dlirc=disabled" 36 "-Ddocumentation=disabled" 37 - ] ++ optional (!pcreSupport) "-Dregex=disabled"; 38 39 meta = with lib; { 40 description = "Curses-based interface for MPD (music player daemon)";
··· 12 , pcreSupport ? false, pcre ? null 13 }: 14 15 assert pcreSupport -> pcre != null; 16 17 stdenv.mkDerivation rec { ··· 26 }; 27 28 buildInputs = [ glib ncurses libmpdclient boost ] 29 + ++ lib.optional pcreSupport pcre; 30 nativeBuildInputs = [ meson ninja pkg-config gettext ]; 31 32 mesonFlags = [ 33 "-Dlirc=disabled" 34 "-Ddocumentation=disabled" 35 + ] ++ lib.optional (!pcreSupport) "-Dregex=disabled"; 36 37 meta = with lib; { 38 description = "Curses-based interface for MPD (music player daemon)";
+2 -4
pkgs/applications/audio/renoise/default.nix
··· 1 { lib, stdenv, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsa-lib 2 , mpg123, releasePath ? null }: 3 4 - with lib; 5 - 6 # To use the full release version: 7 # 1) Sign into https://backstage.renoise.com and download the release version to some stable location. 8 # 2) Override the releasePath attribute to point to the location of the newly downloaded bundle. 9 # Note: Renoise creates an individual build for each license which screws somewhat with the 10 # use of functions like requireFile as the hash will be different for every user. 11 let 12 - urlVersion = replaceStrings [ "." ] [ "_" ]; 13 in 14 15 stdenv.mkDerivation rec { ··· 80 description = "Modern tracker-based DAW"; 81 homepage = "https://www.renoise.com/"; 82 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 83 - license = licenses.unfree; 84 maintainers = []; 85 platforms = [ "x86_64-linux" ]; 86 };
··· 1 { lib, stdenv, fetchurl, libX11, libXext, libXcursor, libXrandr, libjack2, alsa-lib 2 , mpg123, releasePath ? null }: 3 4 # To use the full release version: 5 # 1) Sign into https://backstage.renoise.com and download the release version to some stable location. 6 # 2) Override the releasePath attribute to point to the location of the newly downloaded bundle. 7 # Note: Renoise creates an individual build for each license which screws somewhat with the 8 # use of functions like requireFile as the hash will be different for every user. 9 let 10 + urlVersion = lib.replaceStrings [ "." ] [ "_" ]; 11 in 12 13 stdenv.mkDerivation rec { ··· 78 description = "Modern tracker-based DAW"; 79 homepage = "https://www.renoise.com/"; 80 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 81 + license = lib.licenses.unfree; 82 maintainers = []; 83 platforms = [ "x86_64-linux" ]; 84 };
+11 -12
pkgs/applications/blockchains/bitcoin-knots/default.nix
··· 23 , withWallet ? true 24 }: 25 26 - with lib; 27 stdenv.mkDerivation rec { 28 pname = if withGui then "bitcoin-knots" else "bitcoind-knots"; 29 version = "23.0.knots20220529"; ··· 35 36 nativeBuildInputs = 37 [ autoreconfHook pkg-config ] 38 - ++ optionals stdenv.isLinux [ util-linux ] 39 - ++ optionals stdenv.isDarwin [ hexdump ] 40 - ++ optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ] 41 - ++ optionals withGui [ wrapQtAppsHook ]; 42 43 buildInputs = [ boost libevent miniupnpc zeromq zlib ] 44 - ++ optionals withWallet [ db48 sqlite ] 45 - ++ optionals withGui [ qrencode qtbase qttools ]; 46 47 configureFlags = [ 48 "--with-boost-libdir=${boost.out}/lib" 49 "--disable-bench" 50 - ] ++ optionals (!doCheck) [ 51 "--disable-tests" 52 "--disable-gui-tests" 53 - ] ++ optionals (!withWallet) [ 54 "--disable-wallet" 55 - ] ++ optionals withGui [ 56 "--with-gui=qt5" 57 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 58 ]; ··· 65 [ "LC_ALL=en_US.UTF-8" ] 66 # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. 67 # See also https://github.com/NixOS/nixpkgs/issues/24256 68 - ++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; 69 70 enableParallelBuilding = true; 71 ··· 73 smoke-test = nixosTests.bitcoind-knots; 74 }; 75 76 - meta = { 77 description = "A derivative of Bitcoin Core with a collection of improvements"; 78 homepage = "https://bitcoinknots.org/"; 79 maintainers = with maintainers; [ prusnak mmahut ];
··· 23 , withWallet ? true 24 }: 25 26 stdenv.mkDerivation rec { 27 pname = if withGui then "bitcoin-knots" else "bitcoind-knots"; 28 version = "23.0.knots20220529"; ··· 34 35 nativeBuildInputs = 36 [ autoreconfHook pkg-config ] 37 + ++ lib.optionals stdenv.isLinux [ util-linux ] 38 + ++ lib.optionals stdenv.isDarwin [ hexdump ] 39 + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ] 40 + ++ lib.optionals withGui [ wrapQtAppsHook ]; 41 42 buildInputs = [ boost libevent miniupnpc zeromq zlib ] 43 + ++ lib.optionals withWallet [ db48 sqlite ] 44 + ++ lib.optionals withGui [ qrencode qtbase qttools ]; 45 46 configureFlags = [ 47 "--with-boost-libdir=${boost.out}/lib" 48 "--disable-bench" 49 + ] ++ lib.optionals (!doCheck) [ 50 "--disable-tests" 51 "--disable-gui-tests" 52 + ] ++ lib.optionals (!withWallet) [ 53 "--disable-wallet" 54 + ] ++ lib.optionals withGui [ 55 "--with-gui=qt5" 56 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 57 ]; ··· 64 [ "LC_ALL=en_US.UTF-8" ] 65 # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. 66 # See also https://github.com/NixOS/nixpkgs/issues/24256 67 + ++ lib.optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; 68 69 enableParallelBuilding = true; 70 ··· 72 smoke-test = nixosTests.bitcoind-knots; 73 }; 74 75 + meta = with lib; { 76 description = "A derivative of Bitcoin Core with a collection of improvements"; 77 homepage = "https://bitcoinknots.org/"; 78 maintainers = with maintainers; [ prusnak mmahut ];
+6 -8
pkgs/applications/blockchains/bitcoin-unlimited/default.nix
··· 3 , withGui, wrapQtAppsHook ? null, qtbase ? null, qttools ? null 4 , Foundation, ApplicationServices, AppKit }: 5 6 - with lib; 7 - 8 stdenv.mkDerivation rec { 9 - pname = "bitcoin" + optionalString (!withGui) "d" + "-unlimited"; 10 version = "1.10.0.0"; 11 12 src = fetchFromGitLab { ··· 17 }; 18 19 nativeBuildInputs = [ pkg-config autoreconfHook python3 ] 20 - ++ optionals withGui [ wrapQtAppsHook qttools ]; 21 buildInputs = [ openssl db48 boost zlib 22 miniupnpc util-linux protobuf libevent ] 23 - ++ optionals withGui [ qtbase qttools qrencode ] 24 - ++ optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ]; 25 26 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] 27 - ++ optionals withGui [ "--with-gui=qt5" 28 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 29 ]; 30 enableParallelBuilding = true; 31 32 - meta = { 33 description = "Peer-to-peer electronic cash system (Unlimited client)"; 34 longDescription= '' 35 Bitcoin is a free open source peer-to-peer electronic cash system that is
··· 3 , withGui, wrapQtAppsHook ? null, qtbase ? null, qttools ? null 4 , Foundation, ApplicationServices, AppKit }: 5 6 stdenv.mkDerivation rec { 7 + pname = "bitcoin" + lib.optionalString (!withGui) "d" + "-unlimited"; 8 version = "1.10.0.0"; 9 10 src = fetchFromGitLab { ··· 15 }; 16 17 nativeBuildInputs = [ pkg-config autoreconfHook python3 ] 18 + ++ lib.optionals withGui [ wrapQtAppsHook qttools ]; 19 buildInputs = [ openssl db48 boost zlib 20 miniupnpc util-linux protobuf libevent ] 21 + ++ lib.optionals withGui [ qtbase qttools qrencode ] 22 + ++ lib.optionals stdenv.isDarwin [ Foundation ApplicationServices AppKit ]; 23 24 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] 25 + ++ lib.optionals withGui [ "--with-gui=qt5" 26 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 27 ]; 28 enableParallelBuilding = true; 29 30 + meta = with lib; { 31 description = "Peer-to-peer electronic cash system (Unlimited client)"; 32 longDescription= '' 33 Bitcoin is a free open source peer-to-peer electronic cash system that is
+12 -13
pkgs/applications/blockchains/bitcoin/default.nix
··· 23 , withWallet ? true 24 }: 25 26 - with lib; 27 let 28 desktop = fetchurl { 29 # c2e5f3e is the last commit when the debian/bitcoin-qt.desktop file was changed ··· 45 46 nativeBuildInputs = 47 [ autoreconfHook pkg-config ] 48 - ++ optionals stdenv.isLinux [ util-linux ] 49 - ++ optionals stdenv.isDarwin [ hexdump ] 50 - ++ optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ] 51 - ++ optionals withGui [ wrapQtAppsHook ]; 52 53 buildInputs = [ boost libevent miniupnpc zeromq zlib ] 54 - ++ optionals withWallet [ db48 sqlite ] 55 - ++ optionals withGui [ qrencode qtbase qttools ]; 56 57 - postInstall = optionalString withGui '' 58 install -Dm644 ${desktop} $out/share/applications/bitcoin-qt.desktop 59 substituteInPlace $out/share/applications/bitcoin-qt.desktop --replace "Icon=bitcoin128" "Icon=bitcoin" 60 install -Dm644 share/pixmaps/bitcoin256.png $out/share/pixmaps/bitcoin.png ··· 63 configureFlags = [ 64 "--with-boost-libdir=${boost.out}/lib" 65 "--disable-bench" 66 - ] ++ optionals (!doCheck) [ 67 "--disable-tests" 68 "--disable-gui-tests" 69 - ] ++ optionals (!withWallet) [ 70 "--disable-wallet" 71 - ] ++ optionals withGui [ 72 "--with-gui=qt5" 73 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 74 ]; ··· 81 [ "LC_ALL=en_US.UTF-8" ] 82 # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. 83 # See also https://github.com/NixOS/nixpkgs/issues/24256 84 - ++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; 85 86 enableParallelBuilding = true; 87 ··· 89 smoke-test = nixosTests.bitcoind; 90 }; 91 92 - meta = { 93 description = "Peer-to-peer electronic cash system"; 94 longDescription = '' 95 Bitcoin is a free open source peer-to-peer electronic cash system that is
··· 23 , withWallet ? true 24 }: 25 26 let 27 desktop = fetchurl { 28 # c2e5f3e is the last commit when the debian/bitcoin-qt.desktop file was changed ··· 44 45 nativeBuildInputs = 46 [ autoreconfHook pkg-config ] 47 + ++ lib.optionals stdenv.isLinux [ util-linux ] 48 + ++ lib.optionals stdenv.isDarwin [ hexdump ] 49 + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ] 50 + ++ lib.optionals withGui [ wrapQtAppsHook ]; 51 52 buildInputs = [ boost libevent miniupnpc zeromq zlib ] 53 + ++ lib.optionals withWallet [ db48 sqlite ] 54 + ++ lib.optionals withGui [ qrencode qtbase qttools ]; 55 56 + postInstall = lib.optionalString withGui '' 57 install -Dm644 ${desktop} $out/share/applications/bitcoin-qt.desktop 58 substituteInPlace $out/share/applications/bitcoin-qt.desktop --replace "Icon=bitcoin128" "Icon=bitcoin" 59 install -Dm644 share/pixmaps/bitcoin256.png $out/share/pixmaps/bitcoin.png ··· 62 configureFlags = [ 63 "--with-boost-libdir=${boost.out}/lib" 64 "--disable-bench" 65 + ] ++ lib.optionals (!doCheck) [ 66 "--disable-tests" 67 "--disable-gui-tests" 68 + ] ++ lib.optionals (!withWallet) [ 69 "--disable-wallet" 70 + ] ++ lib.optionals withGui [ 71 "--with-gui=qt5" 72 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 73 ]; ··· 80 [ "LC_ALL=en_US.UTF-8" ] 81 # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. 82 # See also https://github.com/NixOS/nixpkgs/issues/24256 83 + ++ lib.optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; 84 85 enableParallelBuilding = true; 86 ··· 88 smoke-test = nixosTests.bitcoind; 89 }; 90 91 + meta = with lib; { 92 description = "Peer-to-peer electronic cash system"; 93 longDescription = '' 94 Bitcoin is a free open source peer-to-peer electronic cash system that is
+1 -2
pkgs/applications/blockchains/btcdeb/default.nix
··· 5 , openssl 6 }: 7 8 - with lib; 9 stdenv.mkDerivation rec { 10 pname = "btcdeb"; 11 version = "unstable-2022-04-03"; ··· 20 nativeBuildInputs = [ pkg-config autoreconfHook ]; 21 buildInputs = [ openssl ]; 22 23 - meta = { 24 description = "Bitcoin Script Debugger"; 25 homepage = "https://github.com/bitcoin-core/btcdeb"; 26 license = licenses.mit;
··· 5 , openssl 6 }: 7 8 stdenv.mkDerivation rec { 9 pname = "btcdeb"; 10 version = "unstable-2022-04-03"; ··· 19 nativeBuildInputs = [ pkg-config autoreconfHook ]; 20 buildInputs = [ openssl ]; 21 22 + meta = with lib; { 23 description = "Bitcoin Script Debugger"; 24 homepage = "https://github.com/bitcoin-core/btcdeb"; 25 license = licenses.mit;
+5 -7
pkgs/applications/blockchains/digibyte/default.nix
··· 15 , wrapQtAppsHook ? null 16 }: 17 18 - with lib; 19 - 20 stdenv.mkDerivation rec { 21 pname = "digibyte"; 22 version = "7.17.3"; 23 24 - name = pname + toString (optional (!withGui) "d") + "-" + version; 25 26 src = fetchFromGitHub { 27 owner = "digibyte-core"; ··· 34 autoreconfHook 35 pkg-config 36 hexdump 37 - ] ++ optionals withGui [ 38 wrapQtAppsHook 39 ]; 40 ··· 44 libevent 45 db4 46 zeromq 47 - ] ++ optionals withGui [ 48 qtbase 49 qttools 50 protobuf ··· 54 55 configureFlags = [ 56 "--with-boost-libdir=${boost.out}/lib" 57 - ] ++ optionals withGui [ 58 "--with-gui=qt5" 59 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 60 ]; 61 62 - meta = { 63 description = "DigiByte (DGB) is a rapidly growing decentralized, global blockchain"; 64 homepage = "https://digibyte.io/"; 65 license = licenses.mit;
··· 15 , wrapQtAppsHook ? null 16 }: 17 18 stdenv.mkDerivation rec { 19 pname = "digibyte"; 20 version = "7.17.3"; 21 22 + name = pname + toString (lib.optional (!withGui) "d") + "-" + version; 23 24 src = fetchFromGitHub { 25 owner = "digibyte-core"; ··· 32 autoreconfHook 33 pkg-config 34 hexdump 35 + ] ++ lib.optionals withGui [ 36 wrapQtAppsHook 37 ]; 38 ··· 42 libevent 43 db4 44 zeromq 45 + ] ++ lib.optionals withGui [ 46 qtbase 47 qttools 48 protobuf ··· 52 53 configureFlags = [ 54 "--with-boost-libdir=${boost.out}/lib" 55 + ] ++ lib.optionals withGui [ 56 "--with-gui=qt5" 57 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 58 ]; 59 60 + meta = with lib; { 61 description = "DigiByte (DGB) is a rapidly growing decentralized, global blockchain"; 62 homepage = "https://digibyte.io/"; 63 license = licenses.mit;
+15 -16
pkgs/applications/blockchains/dogecoin/default.nix
··· 6 , withGui, withUpnp ? true, withUtils ? true, withWallet ? true 7 , withZmq ? true, zeromq, util-linux ? null, Cocoa ? null }: 8 9 - with lib; 10 stdenv.mkDerivation rec { 11 - pname = "dogecoin" + optionalString (!withGui) "d"; 12 version = "1.14.6"; 13 14 src = fetchFromGitHub { ··· 18 sha256 = "sha256-PmbmmA2Mq07dwB3cI7A9c/ewtu0I+sWvQT39Yekm/sU="; 19 }; 20 21 - preConfigure = optionalString withGui '' 22 - export LRELEASE=${getDev qttools}/bin/lrelease 23 ''; 24 25 nativeBuildInputs = [ pkg-config autoreconfHook util-linux ] 26 - ++ optionals withGui [ wrapQtAppsHook qttools ]; 27 28 buildInputs = [ openssl protobuf boost zlib libevent ] 29 - ++ optionals withGui [ qtbase qrencode ] 30 - ++ optionals withUpnp [ miniupnpc ] 31 - ++ optionals withWallet [ db5 ] 32 - ++ optionals withZmq [ zeromq ] 33 - ++ optionals stdenv.isDarwin [ Cocoa ]; 34 35 configureFlags = [ 36 "--with-incompatible-bdb" 37 "--with-boost-libdir=${boost.out}/lib" 38 - ] ++ optionals (!withGui) [ "--with-gui=no" ] 39 - ++ optionals (!withUpnp) [ "--without-miniupnpc" ] 40 - ++ optionals (!withUtils) [ "--without-utils" ] 41 - ++ optionals (!withWallet) [ "--disable-wallet" ] 42 - ++ optionals (!withZmq) [ "--disable-zmq" ]; 43 44 enableParallelBuilding = true; 45 46 - meta = { 47 description = "Wow, such coin, much shiba, very rich"; 48 longDescription = '' 49 Dogecoin is a decentralized, peer-to-peer digital currency that
··· 6 , withGui, withUpnp ? true, withUtils ? true, withWallet ? true 7 , withZmq ? true, zeromq, util-linux ? null, Cocoa ? null }: 8 9 stdenv.mkDerivation rec { 10 + pname = "dogecoin" + lib.optionalString (!withGui) "d"; 11 version = "1.14.6"; 12 13 src = fetchFromGitHub { ··· 17 sha256 = "sha256-PmbmmA2Mq07dwB3cI7A9c/ewtu0I+sWvQT39Yekm/sU="; 18 }; 19 20 + preConfigure = lib.optionalString withGui '' 21 + export LRELEASE=${lib.getDev qttools}/bin/lrelease 22 ''; 23 24 nativeBuildInputs = [ pkg-config autoreconfHook util-linux ] 25 + ++ lib.optionals withGui [ wrapQtAppsHook qttools ]; 26 27 buildInputs = [ openssl protobuf boost zlib libevent ] 28 + ++ lib.optionals withGui [ qtbase qrencode ] 29 + ++ lib.optionals withUpnp [ miniupnpc ] 30 + ++ lib.optionals withWallet [ db5 ] 31 + ++ lib.optionals withZmq [ zeromq ] 32 + ++ lib.optionals stdenv.isDarwin [ Cocoa ]; 33 34 configureFlags = [ 35 "--with-incompatible-bdb" 36 "--with-boost-libdir=${boost.out}/lib" 37 + ] ++ lib.optionals (!withGui) [ "--with-gui=no" ] 38 + ++ lib.optionals (!withUpnp) [ "--without-miniupnpc" ] 39 + ++ lib.optionals (!withUtils) [ "--without-utils" ] 40 + ++ lib.optionals (!withWallet) [ "--disable-wallet" ] 41 + ++ lib.optionals (!withZmq) [ "--disable-zmq" ]; 42 43 enableParallelBuilding = true; 44 45 + meta = with lib; { 46 description = "Wow, such coin, much shiba, very rich"; 47 longDescription = '' 48 Dogecoin is a decentralized, peer-to-peer digital currency that
+11 -12
pkgs/applications/blockchains/elements/default.nix
··· 22 , withWallet ? true 23 }: 24 25 - with lib; 26 stdenv.mkDerivation rec { 27 pname = if withGui then "elements" else "elementsd"; 28 version = "22.0.2"; ··· 36 37 nativeBuildInputs = 38 [ autoreconfHook pkg-config ] 39 - ++ optionals stdenv.isLinux [ util-linux ] 40 - ++ optionals stdenv.isDarwin [ hexdump ] 41 - ++ optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ] 42 - ++ optionals withGui [ wrapQtAppsHook ]; 43 44 buildInputs = [ boost libevent miniupnpc zeromq zlib ] 45 - ++ optionals withWallet [ db48 sqlite ] 46 - ++ optionals withGui [ qrencode qtbase qttools ]; 47 48 configureFlags = [ 49 "--with-boost-libdir=${boost.out}/lib" 50 "--disable-bench" 51 - ] ++ optionals (!doCheck) [ 52 "--disable-tests" 53 "--disable-gui-tests" 54 - ] ++ optionals (!withWallet) [ 55 "--disable-wallet" 56 - ] ++ optionals withGui [ 57 "--with-gui=qt5" 58 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 59 ]; ··· 70 [ "LC_ALL=en_US.UTF-8" ] 71 # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. 72 # See also https://github.com/NixOS/nixpkgs/issues/24256 73 - ++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; 74 75 enableParallelBuilding = true; 76 77 - meta = { 78 description = "Open Source implementation of advanced blockchain features extending the Bitcoin protocol"; 79 longDescription= '' 80 The Elements blockchain platform is a collection of feature experiments and extensions to the
··· 22 , withWallet ? true 23 }: 24 25 stdenv.mkDerivation rec { 26 pname = if withGui then "elements" else "elementsd"; 27 version = "22.0.2"; ··· 35 36 nativeBuildInputs = 37 [ autoreconfHook pkg-config ] 38 + ++ lib.optionals stdenv.isLinux [ util-linux ] 39 + ++ lib.optionals stdenv.isDarwin [ hexdump ] 40 + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ] 41 + ++ lib.optionals withGui [ wrapQtAppsHook ]; 42 43 buildInputs = [ boost libevent miniupnpc zeromq zlib ] 44 + ++ lib.optionals withWallet [ db48 sqlite ] 45 + ++ lib.optionals withGui [ qrencode qtbase qttools ]; 46 47 configureFlags = [ 48 "--with-boost-libdir=${boost.out}/lib" 49 "--disable-bench" 50 + ] ++ lib.optionals (!doCheck) [ 51 "--disable-tests" 52 "--disable-gui-tests" 53 + ] ++ lib.optionals (!withWallet) [ 54 "--disable-wallet" 55 + ] ++ lib.optionals withGui [ 56 "--with-gui=qt5" 57 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 58 ]; ··· 69 [ "LC_ALL=en_US.UTF-8" ] 70 # QT_PLUGIN_PATH needs to be set when executing QT, which is needed when testing Bitcoin's GUI. 71 # See also https://github.com/NixOS/nixpkgs/issues/24256 72 + ++ lib.optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; 73 74 enableParallelBuilding = true; 75 76 + meta = with lib; { 77 description = "Open Source implementation of advanced blockchain features extending the Bitcoin protocol"; 78 longDescription= '' 79 The Elements blockchain platform is a collection of feature experiments and extensions to the
+5 -7
pkgs/applications/blockchains/litecoin/default.nix
··· 9 , fmt 10 }: 11 12 - with lib; 13 - 14 mkDerivation rec { 15 - pname = "litecoin" + optionalString (!withGui) "d"; 16 version = "0.21.2.1"; 17 18 src = fetchFromGitHub { ··· 25 nativeBuildInputs = [ pkg-config autoreconfHook ]; 26 buildInputs = [ openssl db48 boost zlib zeromq fmt 27 miniupnpc glib protobuf util-linux libevent ] 28 - ++ optionals stdenv.isDarwin [ AppKit ] 29 - ++ optionals withGui [ qtbase qttools qrencode ]; 30 31 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] 32 - ++ optionals withGui [ 33 "--with-gui=qt5" 34 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" ]; 35 ··· 40 ./src/test/test_litecoin 41 ''; 42 43 - meta = { 44 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; 45 description = "A lite version of Bitcoin using scrypt as a proof-of-work algorithm"; 46 longDescription= ''
··· 9 , fmt 10 }: 11 12 mkDerivation rec { 13 + pname = "litecoin" + lib.optionalString (!withGui) "d"; 14 version = "0.21.2.1"; 15 16 src = fetchFromGitHub { ··· 23 nativeBuildInputs = [ pkg-config autoreconfHook ]; 24 buildInputs = [ openssl db48 boost zlib zeromq fmt 25 miniupnpc glib protobuf util-linux libevent ] 26 + ++ lib.optionals stdenv.isDarwin [ AppKit ] 27 + ++ lib.optionals withGui [ qtbase qttools qrencode ]; 28 29 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] 30 + ++ lib.optionals withGui [ 31 "--with-gui=qt5" 32 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" ]; 33 ··· 38 ./src/test/test_litecoin 39 ''; 40 41 + meta = with lib; { 42 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; 43 description = "A lite version of Bitcoin using scrypt as a proof-of-work algorithm"; 44 longDescription= ''
+2 -4
pkgs/applications/blockchains/particl-core/default.nix
··· 14 , python3 15 }: 16 17 - with lib; 18 - 19 stdenv.mkDerivation rec { 20 pname = "particl-core"; 21 version = "23.0.3.0"; ··· 33 configureFlags = [ 34 "--disable-bench" 35 "--with-boost-libdir=${boost.out}/lib" 36 - ] ++ optionals (!doCheck) [ 37 "--enable-tests=no" 38 ]; 39 ··· 42 preCheck = "patchShebangs test"; 43 enableParallelBuilding = true; 44 45 - meta = { 46 broken = (stdenv.isLinux && stdenv.isAarch64); 47 description = "Privacy-Focused Marketplace & Decentralized Application Platform"; 48 longDescription = ''
··· 14 , python3 15 }: 16 17 stdenv.mkDerivation rec { 18 pname = "particl-core"; 19 version = "23.0.3.0"; ··· 31 configureFlags = [ 32 "--disable-bench" 33 "--with-boost-libdir=${boost.out}/lib" 34 + ] ++ lib.optionals (!doCheck) [ 35 "--enable-tests=no" 36 ]; 37 ··· 40 preCheck = "patchShebangs test"; 41 enableParallelBuilding = true; 42 43 + meta = with lib; { 44 broken = (stdenv.isLinux && stdenv.isAarch64); 45 description = "Privacy-Focused Marketplace & Decentralized Application Platform"; 46 longDescription = ''
+5 -7
pkgs/applications/blockchains/vertcoin/default.nix
··· 16 , wrapQtAppsHook ? null 17 }: 18 19 - with lib; 20 - 21 stdenv.mkDerivation rec { 22 pname = "vertcoin"; 23 version = "0.18.0"; 24 25 - name = pname + toString (optional (!withGui) "d") + "-" + version; 26 27 src = fetchFromGitHub { 28 owner = pname + "-project"; ··· 35 autoreconfHook 36 pkg-config 37 hexdump 38 - ] ++ optionals withGui [ 39 wrapQtAppsHook 40 ]; 41 ··· 46 db4 47 zeromq 48 gmp 49 - ] ++ optionals withGui [ 50 qtbase 51 qttools 52 protobuf ··· 56 57 configureFlags = [ 58 "--with-boost-libdir=${boost.out}/lib" 59 - ] ++ optionals withGui [ 60 "--with-gui=qt5" 61 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 62 ]; 63 64 - meta = { 65 description = "A digital currency with mining decentralisation and ASIC resistance as a key focus"; 66 homepage = "https://vertcoin.org/"; 67 license = licenses.mit;
··· 16 , wrapQtAppsHook ? null 17 }: 18 19 stdenv.mkDerivation rec { 20 pname = "vertcoin"; 21 version = "0.18.0"; 22 23 + name = pname + toString (lib.optional (!withGui) "d") + "-" + version; 24 25 src = fetchFromGitHub { 26 owner = pname + "-project"; ··· 33 autoreconfHook 34 pkg-config 35 hexdump 36 + ] ++ lib.optionals withGui [ 37 wrapQtAppsHook 38 ]; 39 ··· 44 db4 45 zeromq 46 gmp 47 + ] ++ lib.optionals withGui [ 48 qtbase 49 qttools 50 protobuf ··· 54 55 configureFlags = [ 56 "--with-boost-libdir=${boost.out}/lib" 57 + ] ++ lib.optionals withGui [ 58 "--with-gui=qt5" 59 "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 60 ]; 61 62 + meta = with lib; { 63 description = "A digital currency with mining decentralisation and ASIC resistance as a key focus"; 64 homepage = "https://vertcoin.org/"; 65 license = licenses.mit;
+1 -2
pkgs/applications/blockchains/wownero/default.nix
··· 2 , readline, libsodium, rapidjson 3 }: 4 5 - with lib; 6 stdenv.mkDerivation rec { 7 pname = "wownero"; 8 version = "0.8.0.1"; ··· 41 "-DMANUAL_SUBMODULES=ON" 42 ]; 43 44 - meta = { 45 description = '' 46 A privacy-centric memecoin that was fairly launched on April 1, 2018 with 47 no pre-mine, stealth-mine or ICO
··· 2 , readline, libsodium, rapidjson 3 }: 4 5 stdenv.mkDerivation rec { 6 pname = "wownero"; 7 version = "0.8.0.1"; ··· 40 "-DMANUAL_SUBMODULES=ON" 41 ]; 42 43 + meta = with lib; { 44 description = '' 45 A privacy-centric memecoin that was fairly launched on April 1, 2018 with 46 no pre-mine, stealth-mine or ICO
+3 -5
pkgs/applications/display-managers/lightdm/default.nix
··· 30 , yelp-tools 31 }: 32 33 - with lib; 34 - 35 stdenv.mkDerivation rec { 36 pname = "lightdm"; 37 version = "1.32.0"; ··· 69 libxklavier 70 pam 71 polkit 72 - ] ++ optional withQt5 qtbase; 73 74 patches = [ 75 # Adds option to disable writing dmrc files ··· 96 "--sysconfdir=/etc" 97 "--disable-tests" 98 "--disable-dmrc" 99 - ] ++ optional withQt5 "--enable-liblightdm-qt5"; 100 101 installFlags = [ 102 "sysconfdir=${placeholder "out"}/etc" ··· 120 }; 121 122 123 - meta = { 124 homepage = "https://github.com/canonical/lightdm"; 125 description = "A cross-desktop display manager"; 126 platforms = platforms.linux;
··· 30 , yelp-tools 31 }: 32 33 stdenv.mkDerivation rec { 34 pname = "lightdm"; 35 version = "1.32.0"; ··· 67 libxklavier 68 pam 69 polkit 70 + ] ++ lib.optional withQt5 qtbase; 71 72 patches = [ 73 # Adds option to disable writing dmrc files ··· 94 "--sysconfdir=/etc" 95 "--disable-tests" 96 "--disable-dmrc" 97 + ] ++ lib.optional withQt5 "--enable-liblightdm-qt5"; 98 99 installFlags = [ 100 "sysconfdir=${placeholder "out"}/etc" ··· 118 }; 119 120 121 + meta = with lib; { 122 homepage = "https://github.com/canonical/lightdm"; 123 description = "A cross-desktop display manager"; 124 platforms = platforms.linux;
+6 -8
pkgs/applications/editors/codeblocks/default.nix
··· 2 , contribPlugins ? false, hunspell, gamin, boost, wrapGAppsHook 3 }: 4 5 - with lib; 6 - 7 stdenv.mkDerivation rec { 8 name = "${pname}-${lib.optionalString contribPlugins "full-"}${version}"; 9 version = "20.03"; ··· 16 17 nativeBuildInputs = [ pkg-config file zip wrapGAppsHook ]; 18 buildInputs = [ wxGTK31 gtk3 ] 19 - ++ optionals contribPlugins [ hunspell gamin boost ]; 20 enableParallelBuilding = true; 21 patches = [ 22 ./writable-projects.patch ··· 56 }) 57 ]; 58 preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file"; 59 - postConfigure = optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc.bin}/bin/ldconfig"; 60 - configureFlags = [ "--enable-pch=no" ] ++ optionals contribPlugins [ 61 - ("--with-contrib-plugins" + optionalString stdenv.isDarwin "=all,-FileManager,-NassiShneiderman") 62 "--with-boost-libdir=${boost}/lib" 63 ]; 64 - postInstall = optionalString stdenv.isDarwin '' 65 ln -s $out/lib/codeblocks/plugins $out/share/codeblocks/plugins 66 ''; 67 68 - meta = { 69 maintainers = [ maintainers.linquize ]; 70 platforms = platforms.all; 71 description = "The open source, cross platform, free C, C++ and Fortran IDE";
··· 2 , contribPlugins ? false, hunspell, gamin, boost, wrapGAppsHook 3 }: 4 5 stdenv.mkDerivation rec { 6 name = "${pname}-${lib.optionalString contribPlugins "full-"}${version}"; 7 version = "20.03"; ··· 14 15 nativeBuildInputs = [ pkg-config file zip wrapGAppsHook ]; 16 buildInputs = [ wxGTK31 gtk3 ] 17 + ++ lib.optionals contribPlugins [ hunspell gamin boost ]; 18 enableParallelBuilding = true; 19 patches = [ 20 ./writable-projects.patch ··· 54 }) 55 ]; 56 preConfigure = "substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file"; 57 + postConfigure = lib.optionalString stdenv.isLinux "substituteInPlace libtool --replace ldconfig ${stdenv.cc.libc.bin}/bin/ldconfig"; 58 + configureFlags = [ "--enable-pch=no" ] ++ lib.optionals contribPlugins [ 59 + ("--with-contrib-plugins" + lib.optionalString stdenv.isDarwin "=all,-FileManager,-NassiShneiderman") 60 "--with-boost-libdir=${boost}/lib" 61 ]; 62 + postInstall = lib.optionalString stdenv.isDarwin '' 63 ln -s $out/lib/codeblocks/plugins $out/share/codeblocks/plugins 64 ''; 65 66 + meta = with lib; { 67 maintainers = [ maintainers.linquize ]; 68 platforms = platforms.all; 69 description = "The open source, cross platform, free C, C++ and Fortran IDE";
+1 -3
pkgs/applications/editors/howl/default.nix
··· 1 { lib, stdenv, fetchurl, makeWrapper, pkg-config, gtk3, librsvg }: 2 3 - with lib; 4 - 5 stdenv.mkDerivation rec { 6 pname = "howl"; 7 version = "0.6"; ··· 27 --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" 28 ''; 29 30 - meta = { 31 homepage = "https://howl.io/"; 32 description = "A general purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface"; 33 license = licenses.mit;
··· 1 { lib, stdenv, fetchurl, makeWrapper, pkg-config, gtk3, librsvg }: 2 3 stdenv.mkDerivation rec { 4 pname = "howl"; 5 version = "0.6"; ··· 25 --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" 26 ''; 27 28 + meta = with lib; { 29 homepage = "https://howl.io/"; 30 description = "A general purpose, fast and lightweight editor with a keyboard-centric minimalistic user interface"; 31 license = licenses.mit;
+5 -7
pkgs/applications/editors/jetbrains/default.nix
··· 11 , vmopts ? null 12 }: 13 14 - with lib; 15 - 16 let 17 platforms = lib.platforms.linux ++ [ "x86_64-darwin" "aarch64-darwin" ]; 18 ideaPlatforms = [ "x86_64-darwin" "i686-darwin" "i686-linux" "x86_64-linux" "aarch64-darwin" ]; 19 20 inherit (stdenv.hostPlatform) system; 21 22 - versions = builtins.fromJSON (readFile (./versions.json)); 23 versionKey = if stdenv.isLinux then "linux" else system; 24 products = versions.${versionKey} or (throw "Unsupported system: ${system}"); 25 ··· 42 maintainers = with maintainers; [ edwtjo mic92 ]; 43 }; 44 }).overrideAttrs (attrs: { 45 - nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ optionals (stdenv.isLinux) [ 46 autoPatchelfHook 47 patchelf 48 ]; 49 - buildInputs = (attrs.buildInputs or []) ++ optionals (stdenv.isLinux) [ 50 python3 51 stdenv.cc.cc 52 libdbusmenu ··· 54 expat 55 ]; 56 dontAutoPatchelf = true; 57 - postFixup = (attrs.postFixup or "") + optionalString (stdenv.isLinux) '' 58 ( 59 cd $out/clion 60 # bundled cmake does not find libc ··· 217 ''; 218 maintainers = with maintainers; [ ]; 219 }; 220 - }).overrideAttrs (finalAttrs: previousAttrs: optionalAttrs cythonSpeedup { 221 buildInputs = with python3.pkgs; [ python3 setuptools ]; 222 preInstall = '' 223 echo "compiling cython debug speedups"
··· 11 , vmopts ? null 12 }: 13 14 let 15 platforms = lib.platforms.linux ++ [ "x86_64-darwin" "aarch64-darwin" ]; 16 ideaPlatforms = [ "x86_64-darwin" "i686-darwin" "i686-linux" "x86_64-linux" "aarch64-darwin" ]; 17 18 inherit (stdenv.hostPlatform) system; 19 20 + versions = builtins.fromJSON (lib.readFile (./versions.json)); 21 versionKey = if stdenv.isLinux then "linux" else system; 22 products = versions.${versionKey} or (throw "Unsupported system: ${system}"); 23 ··· 40 maintainers = with maintainers; [ edwtjo mic92 ]; 41 }; 42 }).overrideAttrs (attrs: { 43 + nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ lib.optionals (stdenv.isLinux) [ 44 autoPatchelfHook 45 patchelf 46 ]; 47 + buildInputs = (attrs.buildInputs or []) ++ lib.optionals (stdenv.isLinux) [ 48 python3 49 stdenv.cc.cc 50 libdbusmenu ··· 52 expat 53 ]; 54 dontAutoPatchelf = true; 55 + postFixup = (attrs.postFixup or "") + lib.optionalString (stdenv.isLinux) '' 56 ( 57 cd $out/clion 58 # bundled cmake does not find libc ··· 215 ''; 216 maintainers = with maintainers; [ ]; 217 }; 218 + }).overrideAttrs (finalAttrs: previousAttrs: lib.optionalAttrs cythonSpeedup { 219 buildInputs = with python3.pkgs; [ python3 setuptools ]; 220 preInstall = '' 221 echo "compiling cython debug speedups"
+3 -5
pkgs/applications/editors/jetbrains/linux.nix
··· 5 6 { pname, product, productShort ? product, version, src, wmClass, jdk, meta, extraLdPath ? [], extraWrapperArgs ? [] }@args: 7 8 - with lib; 9 - 10 - let loName = toLower productShort; 11 - hiName = toUpper productShort; 12 vmoptsName = loName 13 + lib.optionalString stdenv.hostPlatform.is64bit "64" 14 + ".vmoptions"; ··· 29 startupWMClass = wmClass; 30 }; 31 32 - vmoptsFile = optionalString (vmopts != null) (writeText vmoptsName vmopts); 33 34 nativeBuildInputs = [ makeWrapper patchelf unzip ]; 35
··· 5 6 { pname, product, productShort ? product, version, src, wmClass, jdk, meta, extraLdPath ? [], extraWrapperArgs ? [] }@args: 7 8 + let loName = lib.toLower productShort; 9 + hiName = lib.toUpper productShort; 10 vmoptsName = loName 11 + lib.optionalString stdenv.hostPlatform.is64bit "64" 12 + ".vmoptions"; ··· 27 startupWMClass = wmClass; 28 }; 29 30 + vmoptsFile = lib.optionalString (vmopts != null) (writeText vmoptsName vmopts); 31 32 nativeBuildInputs = [ makeWrapper patchelf unzip ]; 33
+1 -3
pkgs/applications/editors/jucipp/default.nix
··· 3 libXdmcp, libxkbcommon, libpthreadstubs, wrapGAppsHook, aspellDicts, gtkmm3, 4 coreutils, glibc, dbus, openssl, libxml2, gnumake, ctags }: 5 6 - with lib; 7 - 8 stdenv.mkDerivation rec { 9 pname = "juicipp"; 10 version = "1.2.3"; 11 12 - meta = { 13 homepage = "https://github.com/cppit/jucipp"; 14 description = "A lightweight, platform independent C++-IDE with support for C++11, C++14, and experimental C++17 features depending on libclang version"; 15 license = licenses.mit;
··· 3 libXdmcp, libxkbcommon, libpthreadstubs, wrapGAppsHook, aspellDicts, gtkmm3, 4 coreutils, glibc, dbus, openssl, libxml2, gnumake, ctags }: 5 6 stdenv.mkDerivation rec { 7 pname = "juicipp"; 8 version = "1.2.3"; 9 10 + meta = with lib; { 11 homepage = "https://github.com/cppit/jucipp"; 12 description = "A lightweight, platform independent C++-IDE with support for C++11, C++14, and experimental C++17 features depending on libclang version"; 13 license = licenses.mit;
+1 -3
pkgs/applications/editors/kakoune/default.nix
··· 1 { lib, stdenv, fetchFromGitHub }: 2 3 - with lib; 4 - 5 stdenv.mkDerivation rec { 6 pname = "kakoune-unwrapped"; 7 version = "2022.10.31"; ··· 33 ln -s --relative "$autoload_target" autoload 34 ''; 35 36 - meta = { 37 homepage = "http://kakoune.org/"; 38 description = "A vim inspired text editor"; 39 license = licenses.publicDomain;
··· 1 { lib, stdenv, fetchFromGitHub }: 2 3 stdenv.mkDerivation rec { 4 pname = "kakoune-unwrapped"; 5 version = "2022.10.31"; ··· 31 ln -s --relative "$autoload_target" autoload 32 ''; 33 34 + meta = with lib; { 35 homepage = "http://kakoune.org/"; 36 description = "A vim inspired text editor"; 37 license = licenses.publicDomain;
+2 -4
pkgs/applications/editors/nano/default.nix
··· 4 5 assert enableNls -> (gettext != null); 6 7 - with lib; 8 - 9 let 10 nixSyntaxHighlight = fetchFromGitHub { 11 owner = "seitz"; ··· 23 sha256 = "V7p1Hpt1GfD23e5QUgLjh8dd3kQMH3qhuTEMw4FAaDY="; 24 }; 25 26 - nativeBuildInputs = [ texinfo ] ++ optional enableNls gettext; 27 buildInputs = [ ncurses ]; 28 29 outputs = [ "out" "info" ]; ··· 71 ''; 72 }; 73 74 - meta = { 75 homepage = "https://www.nano-editor.org/"; 76 description = "A small, user-friendly console text editor"; 77 license = licenses.gpl3Plus;
··· 4 5 assert enableNls -> (gettext != null); 6 7 let 8 nixSyntaxHighlight = fetchFromGitHub { 9 owner = "seitz"; ··· 21 sha256 = "V7p1Hpt1GfD23e5QUgLjh8dd3kQMH3qhuTEMw4FAaDY="; 22 }; 23 24 + nativeBuildInputs = [ texinfo ] ++ lib.optional enableNls gettext; 25 buildInputs = [ ncurses ]; 26 27 outputs = [ "out" "info" ]; ··· 69 ''; 70 }; 71 72 + meta = with lib; { 73 homepage = "https://www.nano-editor.org/"; 74 description = "A small, user-friendly console text editor"; 75 license = licenses.gpl3Plus;
+8 -10
pkgs/applications/editors/neovim/wrapper.nix
··· 5 , python3Packages 6 , callPackage 7 }: 8 - with lib; 9 - 10 neovim: 11 12 let ··· 32 }@args: 33 let 34 35 - wrapperArgsStr = if isString wrapperArgs then wrapperArgs else lib.escapeShellArgs wrapperArgs; 36 37 # If configure != {}, we can't generate the rplugin.vim file with e.g 38 # NVIM_SYSTEM_RPLUGIN_MANIFEST *and* NVIM_RPLUGIN_MANIFEST env vars set in ··· 43 finalMakeWrapperArgs = 44 [ "${neovim}/bin/nvim" "${placeholder "out"}/bin/nvim" ] 45 ++ [ "--set" "NVIM_SYSTEM_RPLUGIN_MANIFEST" "${placeholder "out"}/rplugin.vim" ] 46 - ++ optionals wrapRc [ "--add-flags" "-u ${writeText "init.vim" neovimRcContent}" ] 47 ; 48 in 49 assert withPython2 -> throw "Python2 support has been removed from the neovim wrapper, please remove withPython2 and python2Env."; ··· 57 substitute ${neovim}/share/applications/nvim.desktop $out/share/applications/nvim.desktop \ 58 --replace 'Name=Neovim' 'Name=Neovim wrapper' 59 '' 60 - + optionalString withPython3 '' 61 makeWrapper ${python3Env.interpreter} $out/bin/nvim-python3 --unset PYTHONPATH 62 '' 63 - + optionalString (rubyEnv != null) '' 64 ln -s ${rubyEnv}/bin/neovim-ruby-host $out/bin/nvim-ruby 65 '' 66 - + optionalString withNodeJs '' 67 ln -s ${nodePackages.neovim}/bin/neovim-node-host $out/bin/nvim-node 68 '' 69 - + optionalString vimAlias '' 70 ln -s $out/bin/nvim $out/bin/vim 71 '' 72 - + optionalString viAlias '' 73 ln -s $out/bin/nvim $out/bin/vi 74 '' 75 - + optionalString (manifestRc != null) (let 76 manifestWrapperArgs = 77 [ "${neovim}/bin/nvim" "${placeholder "out"}/bin/nvim-wrapper" ]; 78 in ''
··· 5 , python3Packages 6 , callPackage 7 }: 8 neovim: 9 10 let ··· 30 }@args: 31 let 32 33 + wrapperArgsStr = if lib.isString wrapperArgs then wrapperArgs else lib.escapeShellArgs wrapperArgs; 34 35 # If configure != {}, we can't generate the rplugin.vim file with e.g 36 # NVIM_SYSTEM_RPLUGIN_MANIFEST *and* NVIM_RPLUGIN_MANIFEST env vars set in ··· 41 finalMakeWrapperArgs = 42 [ "${neovim}/bin/nvim" "${placeholder "out"}/bin/nvim" ] 43 ++ [ "--set" "NVIM_SYSTEM_RPLUGIN_MANIFEST" "${placeholder "out"}/rplugin.vim" ] 44 + ++ lib.optionals wrapRc [ "--add-flags" "-u ${writeText "init.vim" neovimRcContent}" ] 45 ; 46 in 47 assert withPython2 -> throw "Python2 support has been removed from the neovim wrapper, please remove withPython2 and python2Env."; ··· 55 substitute ${neovim}/share/applications/nvim.desktop $out/share/applications/nvim.desktop \ 56 --replace 'Name=Neovim' 'Name=Neovim wrapper' 57 '' 58 + + lib.optionalString withPython3 '' 59 makeWrapper ${python3Env.interpreter} $out/bin/nvim-python3 --unset PYTHONPATH 60 '' 61 + + lib.optionalString (rubyEnv != null) '' 62 ln -s ${rubyEnv}/bin/neovim-ruby-host $out/bin/nvim-ruby 63 '' 64 + + lib.optionalString withNodeJs '' 65 ln -s ${nodePackages.neovim}/bin/neovim-node-host $out/bin/nvim-node 66 '' 67 + + lib.optionalString vimAlias '' 68 ln -s $out/bin/nvim $out/bin/vim 69 '' 70 + + lib.optionalString viAlias '' 71 ln -s $out/bin/nvim $out/bin/vi 72 '' 73 + + lib.optionalString (manifestRc != null) (let 74 manifestWrapperArgs = 75 [ "${neovim}/bin/nvim" "${placeholder "out"}/bin/nvim-wrapper" ]; 76 in ''
+1 -1
pkgs/applications/editors/rstudio/default.nix
··· 206 homepage = "https://www.rstudio.com/"; 207 license = licenses.agpl3Only; 208 maintainers = with maintainers; [ ciil cfhammill ]; 209 - mainProgram = "rstudio" + optionalString server "-server"; 210 platforms = platforms.linux; 211 }; 212
··· 206 homepage = "https://www.rstudio.com/"; 207 license = licenses.agpl3Only; 208 maintainers = with maintainers; [ ciil cfhammill ]; 209 + mainProgram = "rstudio" + lib.optionalString server "-server"; 210 platforms = platforms.linux; 211 }; 212
+2 -4
pkgs/applications/editors/vscode/extensions/ms-vsliveshare-vsliveshare/default.nix
··· 7 , desktop-file-utils, xprop, xsel 8 }: 9 10 - with lib; 11 - 12 let 13 # https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#install-prerequisites-manually 14 libs = [ ··· 118 # which will break when copying over the files. 119 mv dotnet_modules/vsls-agent{,-wrapped} 120 makeWrapper $PWD/dotnet_modules/vsls-agent{-wrapped,} \ 121 - --prefix LD_LIBRARY_PATH : "${makeLibraryPath libs}" \ 122 --set LD_PRELOAD $PWD/dotnet_modules/noop-syslog.so \ 123 --set DOTNET_ROOT ${dotnet-sdk_3} 124 ''; 125 126 - meta = { 127 description = "Live Share lets you achieve greater confidence at speed by streamlining collaborative editing, debugging, and more in real-time during development"; 128 homepage = "https://aka.ms/vsls-docs"; 129 license = licenses.unfree;
··· 7 , desktop-file-utils, xprop, xsel 8 }: 9 10 let 11 # https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#install-prerequisites-manually 12 libs = [ ··· 116 # which will break when copying over the files. 117 mv dotnet_modules/vsls-agent{,-wrapped} 118 makeWrapper $PWD/dotnet_modules/vsls-agent{-wrapped,} \ 119 + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath libs}" \ 120 --set LD_PRELOAD $PWD/dotnet_modules/noop-syslog.so \ 121 --set DOTNET_ROOT ${dotnet-sdk_3} 122 ''; 123 124 + meta = with lib; { 125 description = "Live Share lets you achieve greater confidence at speed by streamlining collaborative editing, debugging, and more in real-time during development"; 126 homepage = "https://aka.ms/vsls-docs"; 127 license = licenses.unfree;