From 031156c41fc8ff9c759177e405fe429dad7ee3be Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Sun, 30 Apr 2017 16:28:19 -0400 Subject: libhdhomerun: init at revision 1efbcb2 --- pkgs/top-level/all-packages.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e56e2bd00cf2..8a023ff523bd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8506,6 +8506,8 @@ with pkgs; libharu = callPackage ../development/libraries/libharu { }; + libhdhomerun = callPackage ../development/libraries/libhdhomerun { }; + libhttpseverywhere = callPackage ../development/libraries/libhttpseverywhere { }; libHX = callPackage ../development/libraries/libHX { }; -- cgit 1.4.1 From 8a978a7be3121cab6b388d6f05a855b2aaa8846d Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Sun, 30 Apr 2017 16:28:50 -0400 Subject: kodi: init pvr-hdhomerun plugin at 2.4.7 --- pkgs/applications/video/kodi/plugins.nix | 36 +++++++++++++++++++++++++++++++- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 36 insertions(+), 1 deletion(-) (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/applications/video/kodi/plugins.nix b/pkgs/applications/video/kodi/plugins.nix index 41298269a184..8228c2c6cd92 100644 --- a/pkgs/applications/video/kodi/plugins.nix +++ b/pkgs/applications/video/kodi/plugins.nix @@ -1,5 +1,6 @@ { stdenv, fetchurl, fetchFromGitHub, fetchpatch, lib -, unzip, cmake, kodi, steam, libcec_platform, tinyxml }: +, unzip, cmake, kodi, steam, libcec_platform, tinyxml +, jsoncpp, libhdhomerun }: let @@ -265,4 +266,37 @@ in ln -s $out/lib/addons/pvr.hts/pvr.hts.so* $out/share/kodi/addons/pvr.hts ''; }; + + pvr-hdhomerun = (mkKodiPlugin rec { + plugin = "pvr-hdhomerun"; + namespace = "pvr.hdhomerun"; + version = "2.4.7"; + + src = fetchFromGitHub { + owner = "kodi-pvr"; + repo = "pvr.hdhomerun"; + rev = "60d89d16dd953d38947e8a6da2f8bb84a0f764ef"; + sha256 = "0dvdv0vk2q12nj0i5h51iaypy3i7jfsxjyxwwpxfy82y8260ragy"; + }; + + meta = with stdenv.lib; { + homepage = https://github.com/kodi-pvr/pvr.hdhomerun; + description = "Kodi's HDHomeRun PVR client addon"; + platforms = platforms.all; + maintainers = with maintainers; [ titanous ]; + }; + }).override { + buildInputs = [ cmake jsoncpp libhdhomerun kodi libcec_platform kodi-platform ]; + + # disables check ensuring install prefix is that of kodi + cmakeFlags = [ "-DOVERRIDE_PATHS=1" ]; + + # kodi checks for plugin .so libs existance in the addon folder (share/...) + # and the non-wrapped kodi lib/... folder before even trying to dlopen + # them. Symlinking .so, as setting LD_LIBRARY_PATH is of no use + installPhase = '' + make install + ln -s $out/lib/addons/pvr.hdhomerun/pvr.hdhomerun.so* $out/share/kodi/addons/pvr.hdhomerun + ''; + }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8a023ff523bd..36a97b05bc4d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16309,6 +16309,7 @@ with pkgs; ++ optional (config.kodi.enableSVTPlay or false) svtplay ++ optional (config.kodi.enableSteamLauncher or false) steam-launcher ++ optional (config.kodi.enablePVRHTS or false) pvr-hts + ++ optional (config.kodi.enablePVRHDHomeRun or false) pvr-hdhomerun ); }; -- cgit 1.4.1 From 6b8da804666f76d2d931a3ffd3f948daa14673fb Mon Sep 17 00:00:00 2001 From: Théo Zimmermann Date: Tue, 16 May 2017 13:22:25 +0200 Subject: coqPackages: default version 8.4pl6 -> 8.6 This fixes incomplete commit 83a50c2. --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c49aeeda5279..e48b420a47a6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17714,7 +17714,7 @@ with pkgs; coqPackages_8_4 = mkCoqPackages_8_4 coqPackages_8_4; coqPackages_8_5 = mkCoqPackages_8_5 coqPackages_8_5; coqPackages_8_6 = mkCoqPackages_8_6 coqPackages_8_6; - coqPackages = coqPackages_8_4; + coqPackages = coqPackages_8_6; cryptoverif = callPackage ../applications/science/logic/cryptoverif { }; -- cgit 1.4.1 From 5f04a61d4fe8fac31dfb4b1d58f599a1067017c6 Mon Sep 17 00:00:00 2001 From: Théo Zimmermann Date: Tue, 16 May 2017 13:36:33 +0200 Subject: coq: default version is the one of coqPackages This clean-up is supposed to avoid the mistake made in 83a50c2 and fixed in 6b8da80 in the future. --- pkgs/top-level/all-packages.nix | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e48b420a47a6..5cb32f28ea0f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17635,20 +17635,13 @@ with pkgs; camlp5 = ocamlPackages_3_12_1.camlp5_transitional; lablgtk = ocamlPackages_3_12_1.lablgtk_2_14; }; - coq_8_4 = callPackage ../applications/science/logic/coq/8.4.nix { - inherit (ocamlPackages_4_02) ocaml findlib lablgtk; - camlp5 = ocamlPackages_4_02.camlp5_transitional; - }; - coq_8_5 = callPackage ../applications/science/logic/coq { - version = "8.5pl3"; - }; - coq_8_6 = callPackage ../applications/science/logic/coq {}; - coq_HEAD = callPackage ../applications/science/logic/coq/HEAD.nix {}; - coq = coq_8_6; mkCoqPackages_8_4 = self: let callPackage = newScope self; in { inherit callPackage; - coq = coq_8_4; + coq = callPackage ../applications/science/logic/coq/8.4.nix { + inherit (ocamlPackages_4_02) ocaml findlib lablgtk; + camlp5 = ocamlPackages_4_02.camlp5_transitional; + }; coqPackages = coqPackages_8_4; contribs = @@ -17680,7 +17673,9 @@ with pkgs; mkCoqPackages_8_5 = self: let callPackage = newScope self; in rec { inherit callPackage; - coq = coq_8_5; + coq = callPackage ../applications/science/logic/coq { + version = "8.5pl3"; + }; coqPackages = coqPackages_8_5; coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {}; @@ -17697,7 +17692,7 @@ with pkgs; mkCoqPackages_8_6 = self: let callPackage = newScope self; in rec { inherit callPackage; - coq = coq_8_6; + coq = callPackage ../applications/science/logic/coq {}; coqPackages = coqPackages_8_6; coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {}; @@ -17715,6 +17710,12 @@ with pkgs; coqPackages_8_5 = mkCoqPackages_8_5 coqPackages_8_5; coqPackages_8_6 = mkCoqPackages_8_6 coqPackages_8_6; coqPackages = coqPackages_8_6; + + coq_8_4 = coqPackages_8_4.coq; + coq_8_5 = coqPackages_8_5.coq; + coq_8_6 = coqPackages_8_6.coq; + coq_HEAD = callPackage ../applications/science/logic/coq/HEAD.nix {}; + coq = coqPackages.coq; cryptoverif = callPackage ../applications/science/logic/cryptoverif { }; -- cgit 1.4.1 From a527a47cd355c06ca9d1f1e13930f394e5148894 Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Sun, 23 Apr 2017 23:12:21 +0200 Subject: iwd: init at unstable-2017-04-21 --- nixos/modules/module-list.nix | 1 + nixos/modules/services/networking/iwd.nix | 34 +++++++++++++++++++++++++++++ pkgs/os-specific/linux/iwd/default.nix | 36 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 4 files changed, 73 insertions(+) create mode 100644 nixos/modules/services/networking/iwd.nix create mode 100644 pkgs/os-specific/linux/iwd/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index d25a61804eb0..c7421733c824 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -430,6 +430,7 @@ ./services/networking/i2p.nix ./services/networking/iodine.nix ./services/networking/ircd-hybrid/default.nix + ./services/networking/iwd.nix ./services/networking/keepalived/default.nix ./services/networking/kippo.nix ./services/networking/kresd.nix diff --git a/nixos/modules/services/networking/iwd.nix b/nixos/modules/services/networking/iwd.nix new file mode 100644 index 000000000000..23787bce9911 --- /dev/null +++ b/nixos/modules/services/networking/iwd.nix @@ -0,0 +1,34 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.networking.wireless.iwd; +in { + options.networking.wireless.iwd.enable = mkEnableOption "iwd"; + + config = mkIf cfg.enable { + assertions = [{ + assertion = !config.networking.wireless.enable; + message = '' + Only one wireless daemon is allowed at the time: networking.wireless.enable and networking.wireless.iwd.enable are mutually exclusive. + ''; + }]; + + # for iwctl + environment.systemPackages = [ pkgs.iwd ]; + + services.dbus.packages = [ pkgs.iwd ]; + + systemd.services.iwd = { + description = "Wireless daemon"; + before = [ "network.target" ]; + wants = [ "network.target" ]; + wantedBy = [ "multi-user.target" ]; + + serviceConfig.ExecStart = "${pkgs.iwd}/bin/iwd"; + }; + }; + + meta.maintainers = with lib.maintainers; [ mic92 ]; +} diff --git a/pkgs/os-specific/linux/iwd/default.nix b/pkgs/os-specific/linux/iwd/default.nix new file mode 100644 index 000000000000..028ce53275cc --- /dev/null +++ b/pkgs/os-specific/linux/iwd/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchgit, autoreconfHook, readline }: + +let + ell = fetchgit { + url = https://git.kernel.org/pub/scm/libs/ell/ell.git; + rev = "58e873d7463f3a7f91e02260585bfa50cbc77668"; + sha256 = "12k1f1iarm29j8k16mhw83xx7r3bama4lp0fchhnj7iwxrpgs4gh"; + }; +in stdenv.mkDerivation rec { + name = "iwd-unstable-2017-04-21"; + + src = fetchgit { + url = https://git.kernel.org/pub/scm/network/wireless/iwd.git; + rev = "f64dea81b8490e5e09888be645a4325419bb269c"; + sha256 = "0maqhx5264ykgmwaf90s2806i1kx2028if34ph2axlirxrhdd3lg"; + }; + + configureFlags = [ + "--with-dbusconfdir=$(out)/etc/" + ]; + + postUnpack = '' + ln -s ${ell} ell + ''; + + nativeBuildInputs = [ autoreconfHook ]; + + buildInputs = [ readline ]; + + meta = with stdenv.lib; { + homepage = https://git.kernel.org/pub/scm/network/wireless/iwd.git; + description = "Wireless daemon for Linux"; + platforms = platforms.linux; + maintainers = [ maintainers.mic92 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f88706b61352..ca7d3b0f4ffe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11714,6 +11714,8 @@ with pkgs; iw = callPackage ../os-specific/linux/iw { }; + iwd = callPackage ../os-specific/linux/iwd { }; + jfbview = callPackage ../os-specific/linux/jfbview { }; jfbpdf = callPackage ../os-specific/linux/jfbview { imageSupport = false; -- cgit 1.4.1 From 0808896e73fccfa24d35addcb33df0905e732d80 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sun, 21 May 2017 14:30:56 -0300 Subject: robotfindskitten: init at 2.7182818.701 --- pkgs/games/robotfindskitten/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/games/robotfindskitten/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/games/robotfindskitten/default.nix b/pkgs/games/robotfindskitten/default.nix new file mode 100644 index 000000000000..14af1e3c7886 --- /dev/null +++ b/pkgs/games/robotfindskitten/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl, pkgconfig, ncurses }: + +with stdenv.lib; +stdenv.mkDerivation rec { + + name = "robotfindskitten-${version}"; + version = "2.7182818.701"; + + src = fetchurl { + url = "mirror://sourceforge/project/rfk/robotfindskitten-POSIX/mayan_apocalypse_edition/${name}.tar.gz"; + sha256 = "06fp6b4li50mzw83j3pkzqspm6dpgxgxw03b60xkxlkgg5qa6jbp"; + }; + + buildInputs = + [ pkgconfig ncurses ]; + + meta = { + description = "Yet another zen simulation; A simple find-the-kitten game"; + homepage = http://robotfindskitten.org/; + license = licenses.gpl2; + maintainers = [ maintainers.AndersonTorres ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 239972e57fa0..da54dd8be130 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17116,6 +17116,8 @@ with pkgs; rogue = callPackage ../games/rogue { }; + robotfindskitten = callPackage ../games/robotfindskitten { }; + saga = callPackage ../applications/gis/saga { }; samplv1 = callPackage ../applications/audio/samplv1 { }; -- cgit 1.4.1 From 8f8465113200d6e729ccb33494902fa34194dca6 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sun, 21 May 2017 18:56:02 -0300 Subject: vms-empire: init at 1.14 --- pkgs/games/vms-empire/default.nix | 42 +++++++++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/games/vms-empire/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/games/vms-empire/default.nix b/pkgs/games/vms-empire/default.nix new file mode 100644 index 000000000000..91f77277d9ec --- /dev/null +++ b/pkgs/games/vms-empire/default.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchurl, ncurses, xmlto }: + +with stdenv.lib; +stdenv.mkDerivation rec{ + + name = "vms-empire-${version}"; + version = "1.14"; + + src = fetchurl{ + url = "http://www.catb.org/~esr/vms-empire/${name}.tar.gz"; + sha256 = "0cymzhivvaahgqz0p11w25a710ls4w0jhyqj789jas5s07nvd890"; + }; + + buildInputs = + [ ncurses xmlto ]; + + patchPhase = '' + sed -i -e 's|^install: empire\.6 uninstall|install: empire.6|' -e 's|usr/||g' Makefile + ''; + + hardeningDisable = [ "format" ]; + + makeFlags = [ "DESTDIR=$(out)" ]; + + meta = { + description = "The ancestor of all expand/explore/exploit/exterminate games"; + longDescription = '' + Empire is a simulation of a full-scale war between two emperors, the + computer and you. Naturally, there is only room for one, so the object of + the game is to destroy the other. The computer plays by the same rules + that you do. This game was ancestral to all later + expand/explore/exploit/exterminate games, including Civilization and + Master of Orion. + ''; + homepage = http://catb.org/~esr/vms-empire/; + license = licenses.gpl2; + maintainers = [ maintainers.AndersonTorres ]; + platforms = platforms.linux; + }; +} + + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 239972e57fa0..39681ea33782 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17276,6 +17276,8 @@ with pkgs; vessel = callPackage_i686 ../games/vessel { }; + vms-empire = callPackage ../games/vms-empire { }; + voxelands = callPackage ../games/voxelands { libpng = libpng12; }; -- cgit 1.4.1 From 2e7ec6fb702be66389405d48693b322565b27c69 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Sun, 21 May 2017 13:39:23 -0400 Subject: lib: Make platform predicates more ergonomic to use `hostPlatform.isDarwin` instead of `lib.system.parse.isDarwin hostPlatform.parsed` --- lib/systems/default.nix | 6 ++++- lib/systems/doubles.nix | 38 +++++++++++++++++--------------- lib/systems/inspect.nix | 36 ++++++++++++++++++++++++++++++ lib/systems/parse.nix | 26 ++++++---------------- pkgs/os-specific/darwin/cctools/port.nix | 8 +++---- pkgs/top-level/all-packages.nix | 2 +- 6 files changed, 72 insertions(+), 44 deletions(-) create mode 100644 lib/systems/inspect.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/lib/systems/default.nix b/lib/systems/default.nix index d956969a18f9..a61e4efc4ef8 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -1,6 +1,9 @@ +let inherit (import ../attrsets.nix) mapAttrs; in + rec { doubles = import ./doubles.nix; parse = import ./parse.nix; + inspect = import ./inspect.nix; platforms = import ./platforms.nix; # Elaborate a `localSystem` or `crossSystem` so that it contains everything @@ -18,6 +21,7 @@ rec { config = parse.tripleFromSystem final.parsed; # Just a guess, based on `system` platform = platforms.selectBySystem final.system; - } // args; + } // mapAttrs (n: v: v final.parsed) inspect.predicates + // args; in final; } diff --git a/lib/systems/doubles.nix b/lib/systems/doubles.nix index 9b17a51531a3..0168eb42f2f7 100644 --- a/lib/systems/doubles.nix +++ b/lib/systems/doubles.nix @@ -1,8 +1,9 @@ -let lists = import ../lists.nix; in -let parse = import ./parse.nix; in -let inherit (import ../attrsets.nix) matchAttrs; in - let + lists = import ../lists.nix; + parse = import ./parse.nix; + inherit (import ./inspect.nix) predicates; + inherit (import ../attrsets.nix) matchAttrs; + all = [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7l-linux" @@ -25,20 +26,21 @@ in rec { allBut = platforms: lists.filter (x: !(builtins.elem x platforms)) all; none = []; - arm = filterDoubles (matchAttrs { cpu = { family = "arm"; bits = 32; }; }); - i686 = filterDoubles parse.isi686; - mips = filterDoubles (matchAttrs { cpu = { family = "mips"; }; }); - x86_64 = filterDoubles parse.isx86_64; - - cygwin = filterDoubles parse.isCygwin; - darwin = filterDoubles parse.isDarwin; - freebsd = filterDoubles (matchAttrs { kernel = parse.kernels.freebsd; }); - gnu = filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnu; }); # Should be better - illumos = filterDoubles (matchAttrs { kernel = parse.kernels.solaris; }); - linux = filterDoubles parse.isLinux; - netbsd = filterDoubles (matchAttrs { kernel = parse.kernels.netbsd; }); - openbsd = filterDoubles (matchAttrs { kernel = parse.kernels.openbsd; }); - unix = filterDoubles parse.isUnix; + arm = filterDoubles predicates.isArm32; + i686 = filterDoubles predicates.isi686; + mips = filterDoubles predicates.isMips; + x86_64 = filterDoubles predicates.isx86_64; + + cygwin = filterDoubles predicates.isCygwin; + darwin = filterDoubles predicates.isDarwin; + freebsd = filterDoubles predicates.isFreeBSD; + # Should be better, but MinGW is unclear, and HURD is bit-rotted. + gnu = filterDoubles (matchAttrs { kernel = parse.kernels.linux; abi = parse.abis.gnu; }); + illumos = filterDoubles predicates.isSunOS; + linux = filterDoubles predicates.isLinux; + netbsd = filterDoubles predicates.isNetBSD; + openbsd = filterDoubles predicates.isOpenBSD; + unix = filterDoubles predicates.isUnix; mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "aarch64-linux"]; } diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix new file mode 100644 index 000000000000..1dcb4af35e6c --- /dev/null +++ b/lib/systems/inspect.nix @@ -0,0 +1,36 @@ +with import ./parse.nix; +with import ../attrsets.nix; + +rec { + patterns = { + "32bit" = { cpu = { bits = 32; }; }; + "64bit" = { cpu = { bits = 64; }; }; + i686 = { cpu = cpuTypes.i686; }; + x86_64 = { cpu = cpuTypes.x86_64; }; + Arm = { cpu = { family = "arm"; }; }; + Mips = { cpu = { family = "mips"; }; }; + BigEndian = { cpu = { significantByte = significantBytes.bigEndian; }; }; + LittleEndian = { cpu = { significantByte = significantBytes.littleEndian; }; }; + + Unix = { kernel = { families = { inherit (kernelFamilies) unix; }; }; }; + BSD = { kernel = { families = { inherit (kernelFamilies) bsd; }; }; }; + + Darwin = { kernel = kernels.darwin; }; + Linux = { kernel = kernels.linux; }; + SunOS = { kernel = kernels.solaris; }; + FreeBSD = { kernel = kernels.freebsd; }; + NetBSD = { kernel = kernels.netbsd; }; + OpenBSD = { kernel = kernels.openbsd; }; + Windows = { kernel = kernels.windows; }; + Cygwin = { kernel = kernels.windows; abi = abis.cygnus; }; + MinGW = { kernel = kernels.windows; abi = abis.gnu; }; + + Arm32 = recursiveUpdate patterns.Arm patterns."32bit"; + Arm64 = recursiveUpdate patterns.Arm patterns."64bit"; + + }; + + predicates = mapAttrs' + (name: value: nameValuePair ("is" + name) (matchAttrs value)) + patterns; +} diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index b9758f44fc19..b94caeb57589 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -8,6 +8,7 @@ with import ../lists.nix; with import ../types.nix; with import ../attrsets.nix; +with (import ./inspect.nix).predicates; let lib = import ../default.nix; @@ -109,19 +110,6 @@ rec { inherit cpu vendor kernel abi; }; - is64Bit = matchAttrs { cpu = { bits = 64; }; }; - is32Bit = matchAttrs { cpu = { bits = 32; }; }; - isi686 = matchAttrs { cpu = cpuTypes.i686; }; - isx86_64 = matchAttrs { cpu = cpuTypes.x86_64; }; - - isDarwin = matchAttrs { kernel = kernels.darwin; }; - isLinux = matchAttrs { kernel = kernels.linux; }; - isUnix = matchAttrs { kernel = { families = { inherit (kernelFamilies) unix; }; }; }; - isWindows = matchAttrs { kernel = kernels.windows; }; - isCygwin = matchAttrs { kernel = kernels.windows; abi = abis.cygnus; }; - isMinGW = matchAttrs { kernel = kernels.windows; abi = abis.gnu; }; - - mkSkeletonFromList = l: { "2" = # We only do 2-part hacks for things Nix already supports if elemAt l 1 == "cygwin" @@ -153,22 +141,22 @@ rec { getKernel = name: kernels.${name} or (throw "Unknown kernel: ${name}"); getAbi = name: abis.${name} or (throw "Unknown ABI: ${name}"); - system = rec { + parsed = rec { cpu = getCpu args.cpu; vendor = /**/ if args ? vendor then getVendor args.vendor - else if isDarwin system then vendors.apple - else if isWindows system then vendors.pc + else if isDarwin parsed then vendors.apple + else if isWindows parsed then vendors.pc else vendors.unknown; kernel = getKernel args.kernel; abi = /**/ if args ? abi then getAbi args.abi - else if isLinux system then abis.gnu - else if isWindows system then abis.gnu + else if isLinux parsed then abis.gnu + else if isWindows parsed then abis.gnu else abis.unknown; }; - in mkSystem system; + in mkSystem parsed; mkSystemFromString = s: mkSystemFromSkeleton (mkSkeletonFromList (lib.splitString "-" s)); diff --git a/pkgs/os-specific/darwin/cctools/port.nix b/pkgs/os-specific/darwin/cctools/port.nix index 14c4c6e99739..222c51603fdd 100644 --- a/pkgs/os-specific/darwin/cctools/port.nix +++ b/pkgs/os-specific/darwin/cctools/port.nix @@ -5,17 +5,15 @@ }: let - inherit (stdenv.lib.systems.parse) isDarwin; - prefix = stdenv.lib.optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-"; in -assert isDarwin targetPlatform.parsed; +assert targetPlatform.isDarwin; # Non-Darwin alternatives -assert (!isDarwin hostPlatform.parsed) -> (maloader != null && xctoolchain != null); +assert (!hostPlatform.isDarwin) -> (maloader != null && xctoolchain != null); let baseParams = rec { @@ -91,7 +89,7 @@ let ''; postInstall = - if isDarwin hostPlatform.parsed + if hostPlatform.isDarwin then '' cat >$out/bin/dsymutil << EOF #!${stdenv.shell} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 32c4f0f95c64..88f4bc04b9f5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6397,7 +6397,7 @@ with pkgs; bin_replace_string = callPackage ../development/tools/misc/bin_replace_string { }; binutils = - if lib.systems.parse.isDarwin targetPlatform.parsed + if targetPlatform.isDarwin then darwin.binutils else binutils-raw; -- cgit 1.4.1 From c5c66060484800ecd97a811157a31e9cdd2241b1 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Sun, 21 May 2017 14:02:19 -0400 Subject: lib: Infer `libc` field of platform if not specified This is especially useful when not cross compiling. It means we can remove the `stdenv.isGlibc` predicate too. Additionally, use this to simplify the logic to choose the appropriate libiconv derivation. --- lib/systems/default.nix | 6 ++++++ pkgs/stdenv/generic/default.nix | 3 --- pkgs/top-level/all-packages.nix | 22 +++++++++++++--------- 3 files changed, 19 insertions(+), 12 deletions(-) (limited to 'pkgs/top-level/all-packages.nix') diff --git a/lib/systems/default.nix b/lib/systems/default.nix index a61e4efc4ef8..c37b6be25232 100644 --- a/lib/systems/default.nix +++ b/lib/systems/default.nix @@ -21,6 +21,12 @@ rec { config = parse.tripleFromSystem final.parsed; # Just a guess, based on `system` platform = platforms.selectBySystem final.system; + libc = + /**/ if final.isDarwin then "libSystem" + else if final.isMinGW then "msvcrt" + else if final.isLinux then "glibc" + # TODO(@Ericson2314) think more about other operating systems + else "native/impure"; } // mapAttrs (n: v: v final.parsed) inspect.predicates // args; in final; diff --git a/pkgs/stdenv/generic/default.nix b/pkgs/stdenv/generic/default.nix index a063a1ed2dc9..e029622dfa49 100644 --- a/pkgs/stdenv/generic/default.nix +++ b/pkgs/stdenv/generic/default.nix @@ -402,9 +402,6 @@ let || system == "aarch64-linux" || system == "mips64el-linux"; isGNU = system == "i686-gnu"; # GNU/Hurd - isGlibc = isGNU # useful for `stdenvNative' - || isLinux - || system == "x86_64-kfreebsd-gnu"; isSunOS = system == "i686-solaris" || system == "x86_64-solaris"; isCygwin = system == "i686-cygwin" diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 88f4bc04b9f5..a74fd79d6e74 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8653,15 +8653,19 @@ with pkgs; libgsf = callPackage ../development/libraries/libgsf { }; - # glibc provides libiconv so systems with glibc don't need to build libiconv - # separately, but we also provide libiconvReal, which will always be a - # standalone libiconv, just in case you want it - libiconv = if stdenv ? cross then - (if stdenv.cross.libc == "glibc" then libcCross - else if stdenv.cross.libc == "libSystem" then darwin.libiconv - else libiconvReal) - else if stdenv.isGlibc then glibcIconv stdenv.cc.libc - else if stdenv.isDarwin then darwin.libiconv + # GNU libc provides libiconv so systems with glibc don't need to build + # libiconv separately. Additionally, Apple forked/repackaged libiconv so we + # use that instead of the vanilla version on that OS. + # + # We also provide `libiconvReal`, which will always be a standalone libiconv, + # just in case you want it regardless of platform. + libiconv = + if hostPlatform.libc == "glibc" + then glibcIconv (if hostPlatform != buildPlatform + then libcCross + else stdenv.cc.libc) + else if hostPlatform.isDarwin + then darwin.libiconv else libiconvReal; glibcIconv = libc: let -- cgit 1.4.1 From 845d1b28bf57d3f1eb016a323cf15808c0fbfd85 Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Mon, 22 May 2017 12:22:03 -0400 Subject: pants{,13-pre}: move from pythonPackages to top level That means it'll build in Hydra and we don't really care which version of Python it builds against. --- .../tools/build-managers/pants/default.nix | 95 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + pkgs/top-level/python-packages.nix | 90 +------------------- 3 files changed, 100 insertions(+), 87 deletions(-) create mode 100644 pkgs/development/tools/build-managers/pants/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/development/tools/build-managers/pants/default.nix b/pkgs/development/tools/build-managers/pants/default.nix new file mode 100644 index 000000000000..575012f27e8f --- /dev/null +++ b/pkgs/development/tools/build-managers/pants/default.nix @@ -0,0 +1,95 @@ +{ stdenv, pythonPackages }: + +with stdenv.lib; +with pythonPackages; + +let + # Get rid of this when pants 1.3.0 is released and make 0.5 the default + pathspec = buildPythonApplication rec { + pname = "pathspec"; + version = "0.3.4"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "0a37yrr2jhlg8aiynxivh2xqani7l9j725qxzrm7cm7m4rfcl1bn"; + }; + + meta = { + description = "Utility library for gitignore-style pattern matching of file paths"; + homepage = "https://github.com/cpburnz/python-path-specification"; + license = licenses.mpl20; + maintainers = with maintainers; [ copumpkin ]; + }; + }; +in { + pants = + pythonPackages.buildPythonPackage rec { + pname = "pantsbuild.pants"; + version = "1.2.1"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1bnzhhd2acwk7ckv56xzg2d9vxacl3k5bh13bsjxymnq3spm962w"; + }; + + prePatch = '' + sed -E -i "s/'([[:alnum:].-]+)[=><][^']*'/'\\1'/g" setup.py + ''; + + # Unnecessary, and causes some really weird behavior around .class files, which + # this package bundles. See https://github.com/NixOS/nixpkgs/issues/22520. + dontStrip = true; + + propagatedBuildInputs = [ + ansicolors beautifulsoup4 cffi coverage docutils fasteners futures + isort lmdb markdown mock packaging pathspec pep8 pex psutil pyflakes + pygments pystache pytestcov pytest pywatchman requests scandir + setproctitle setuptools six thrift wheel twitter-common-dirutil + twitter-common-confluence twitter-common-collections + ]; + + meta = { + description = "A build system for software projects in a variety of languages"; + homepage = "http://www.pantsbuild.org/"; + license = licenses.asl20; + maintainers = with maintainers; [ copumpkin ]; + platforms = platforms.unix; + }; + }; + + pants13-pre = buildPythonApplication rec { + pname = "pantsbuild.pants"; + version = "1.3.0.dev19"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "07gxx8kzkcx3pm2qd5sz2xb3nw9khvbapiqdzgjvzbvai2gsd5qq"; + }; + + prePatch = '' + sed -E -i "s/'([[:alnum:].-]+)[=><][[:digit:]=><.,]*'/'\\1'/g" setup.py + ''; + + # Unnecessary, and causes some really weird behavior around .class files, which + # this package bundles. See https://github.com/NixOS/nixpkgs/issues/22520. + dontStrip = true; + + propagatedBuildInputs = [ + twitter-common-collections setproctitle setuptools six ansicolors + packaging pathspec scandir twitter-common-dirutil psutil requests + pystache pex docutils markdown pygments twitter-common-confluence + fasteners coverage pywatchman futures cffi + ]; + + meta = { + description = "A build system for software projects in a variety of languages"; + homepage = "http://www.pantsbuild.org/"; + license = licenses.asl20; + maintainers = with maintainers; [ copumpkin ]; + platforms = platforms.unix; + }; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f7bc4d31974c..1ddddc960b67 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6937,6 +6937,8 @@ with pkgs; pahole = callPackage ../development/tools/misc/pahole {}; + inherit (callPackages ../development/tools/build-managers/pants {}) pants pants13-pre; + parse-cli-bin = callPackage ../development/tools/parse-cli-bin { }; patchelf = callPackage ../development/tools/misc/patchelf { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7305f9ec9ad..e6bd20ba2b7b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8285,93 +8285,9 @@ in { }; }; - pants = let - # Get rid of this when pants 1.3.0 is released and make 0.5 the default - pathspec = buildPythonPackage rec { - pname = "pathspec"; - version = "0.3.4"; - name = "${pname}-${version}"; - - src = self.fetchPypi { - inherit pname version; - sha256 = "0a37yrr2jhlg8aiynxivh2xqani7l9j725qxzrm7cm7m4rfcl1bn"; - }; - - meta = { - description = "Utility library for gitignore-style pattern matching of file paths"; - homepage = "https://github.com/cpburnz/python-path-specification"; - license = licenses.mpl20; - maintainers = with maintainers; [ copumpkin ]; - }; - }; - in buildPythonPackage rec { - pname = "pantsbuild.pants"; - version = "1.2.1"; - name = "${pname}-${version}"; - - src = self.fetchPypi { - inherit pname version; - sha256 = "1bnzhhd2acwk7ckv56xzg2d9vxacl3k5bh13bsjxymnq3spm962w"; - }; - - prePatch = '' - sed -E -i "s/'([[:alnum:].-]+)[=><][^']*'/'\\1'/g" setup.py - ''; - - # Unnecessary, and causes some really weird behavior around .class files, which - # this package bundles. See https://github.com/NixOS/nixpkgs/issues/22520. - dontStrip = true; - - propagatedBuildInputs = with self; [ - ansicolors beautifulsoup4 cffi coverage docutils fasteners futures - isort lmdb markdown mock packaging pathspec pep8 pex psutil pyflakes - pygments pystache pytestcov pytest pywatchman requests scandir - setproctitle setuptools six thrift wheel twitter-common-dirutil - twitter-common-confluence twitter-common-collections - ]; - - meta = { - description = "A build system for software projects in a variety of languages"; - homepage = "http://www.pantsbuild.org/"; - license = licenses.asl20; - maintainers = with maintainers; [ copumpkin ]; - platforms = platforms.unix; - }; - }; - - pants13-pre = buildPythonPackage rec { - pname = "pantsbuild.pants"; - version = "1.3.0.dev19"; - name = "${pname}-${version}"; - - src = self.fetchPypi { - inherit pname version; - sha256 = "07gxx8kzkcx3pm2qd5sz2xb3nw9khvbapiqdzgjvzbvai2gsd5qq"; - }; - - prePatch = '' - sed -E -i "s/'([[:alnum:].-]+)[=><][[:digit:]=><.,]*'/'\\1'/g" setup.py - ''; - - # Unnecessary, and causes some really weird behavior around .class files, which - # this package bundles. See https://github.com/NixOS/nixpkgs/issues/22520. - dontStrip = true; - - propagatedBuildInputs = with self; [ - twitter-common-collections setproctitle setuptools six ansicolors - packaging pathspec scandir twitter-common-dirutil psutil requests - pystache pex docutils markdown pygments twitter-common-confluence - fasteners coverage pywatchman futures cffi - ]; - - meta = { - description = "A build system for software projects in a variety of languages"; - homepage = "http://www.pantsbuild.org/"; - license = licenses.asl20; - maintainers = with maintainers; [ copumpkin ]; - platforms = platforms.unix; - }; - }; + # These used to be here but were moved to all-packages, but I'll leave them around for a while. + pants = stdenv.lib.warn "Please refer to pants from the top level rather than from pythonPackages. This attribute will disappear by 2017-08-22." pkgs.pants; + pants13-pre = stdenv.lib.warn "Please refer to pants13-pre from the top level rather than from pythonPackages. This attribute will disappear by 2017-08-22." pkgs.pants13-pre; paperwork-backend = buildPythonPackage rec { name = "paperwork-backend-${version}"; -- cgit 1.4.1 From c443033be325f0f39d621d28407ea00af2b45631 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 22 May 2017 16:36:59 -0400 Subject: gdb: Modernize and simplify derivation - `isGNU` to `isHurd`, my sedding did not catch - Simplify cross compilation in general - Be more careful about python - no more `gdbCross` in all-packages --- pkgs/development/tools/misc/gdb/default.nix | 64 +++++++++++++---------------- pkgs/top-level/all-packages.nix | 4 -- pkgs/top-level/release-cross.nix | 2 +- 3 files changed, 29 insertions(+), 41 deletions(-) (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index f39d15bc7be6..d1ac6eba709a 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -1,33 +1,31 @@ { fetchurl, stdenv, ncurses, readline, gmp, mpfr, expat, texinfo, zlib , dejagnu, perl, pkgconfig -, python ? null + +, buildPlatform, hostPlatform, targetPlatform + +, pythonSupport ? hostPlatform == buildPlatform && !hostPlatform.isCygwin, python ? null , guile ? null -, target ? null + # Support all known targets in one gdb binary. , multitarget ? false + # Additional dependencies for GNU/Hurd. , mig ? null, hurd ? null - }: let - - basename = "gdb-7.12.1"; - - # Whether (cross-)building for GNU/Hurd. This is an approximation since - # having `stdenv ? cross' doesn't tell us if we're building `crossDrv' and - # `nativeDrv'. - isGNU = - stdenv.system == "i686-gnu" - || (stdenv ? cross && stdenv.cross.config == "i586-pc-gnu"); - + basename = "gdb-${version}"; + version = "7.12.1"; in -assert isGNU -> mig != null && hurd != null; +assert targetPlatform.isHurd -> mig != null && hurd != null; +assert pythonSupport -> python != null; stdenv.mkDerivation rec { - name = basename + stdenv.lib.optionalString (target != null) - ("-" + target.config); + name = + stdenv.lib.optionalString (targetPlatform != hostPlatform) + (targetPlatform.config + "-") + + basename; src = fetchurl { url = "mirror://gnu/gdb/${basename}.tar.xz"; @@ -35,10 +33,12 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkgconfig texinfo perl ] - ++ stdenv.lib.optional isGNU mig; + # TODO(@Ericson2314) not sure if should be host or target + ++ stdenv.lib.optional targetPlatform.isHurd mig; - buildInputs = [ ncurses readline gmp mpfr expat zlib python guile ] - ++ stdenv.lib.optional isGNU hurd + buildInputs = [ ncurses readline gmp mpfr expat zlib guile ] + ++ stdenv.lib.optional pythonSupport python + ++ stdenv.lib.optional targetPlatform.isHurd hurd ++ stdenv.lib.optional doCheck dejagnu; enableParallelBuilding = true; @@ -46,24 +46,16 @@ stdenv.mkDerivation rec { # darwin build fails with format hardening since v7.12 hardeningDisable = stdenv.lib.optionals stdenv.isDarwin [ "format" ]; - configureFlags = with stdenv.lib; - [ "--with-gmp=${gmp.dev}" "--with-mpfr=${mpfr.dev}" "--with-system-readline" - "--with-system-zlib" "--with-expat" "--with-libexpat-prefix=${expat.dev}" + configureFlags = with stdenv.lib; [ + "--with-gmp=${gmp.dev}" "--with-mpfr=${mpfr.dev}" "--with-system-readline" + "--with-system-zlib" "--with-expat" "--with-libexpat-prefix=${expat.dev}" + ] ++ stdenv.lib.optional hostPlatform.isLinux + # TODO(@Ericson2314): make this conditional on whether host platform is NixOS "--with-separate-debug-dir=/run/current-system/sw/lib/debug" - ] - ++ optional (target != null) "--target=${target.config}" - ++ optional multitarget "--enable-targets=all" - ++ optional (elem stdenv.system platforms.cygwin) "--without-python"; - - crossAttrs = { - # Do not add --with-python here to avoid cross building it. - configureFlags = with stdenv.lib; - [ "--with-gmp=${gmp.crossDrv}" "--with-mpfr=${mpfr.crossDrv}" "--with-system-readline" - "--with-system-zlib" "--with-expat" "--with-libexpat-prefix=${expat.crossDrv}" "--without-python" - ] - ++ optional (target != null) "--target=${target.config}" - ++ optional multitarget "--enable-targets=all"; - }; + ++ stdenv.lib.optional (!pythonSupport) "--without-python" + # TODO(@Ericson2314): This should be done in stdenv, not per-package + ++ stdenv.lib.optional (targetPlatform != hostPlatform) "--target=${target.config}" + ++ stdenv.lib.optional multitarget "--enable-targets=all"; postInstall = '' # Remove Info files already provided by Binutils and other packages. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a74fd79d6e74..173d63553cea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7076,10 +7076,6 @@ with pkgs; gdbGuile = lowPrio (gdb.override { inherit guile; }); - gdbCross = lowPrio (callPackage ../development/tools/misc/gdb { - target = if targetPlatform != buildPlatform then targetPlatform else null; - }); - gdb-multitarget = lowPrio (gdb.override { multitarget = true; }); valgrind = callPackage ../development/tools/analysis/valgrind { diff --git a/pkgs/top-level/release-cross.nix b/pkgs/top-level/release-cross.nix index 1e764ef00727..b4da273cac99 100644 --- a/pkgs/top-level/release-cross.nix +++ b/pkgs/top-level/release-cross.nix @@ -24,7 +24,7 @@ let }; linuxCommon = lib.recursiveUpdate gnuCommon { - buildPackages.gdbCross = nativePlatforms; + buildPackages.gdb = nativePlatforms; bison = nativePlatforms; busybox = nativePlatforms; -- cgit 1.4.1 From 77869222402a0a2e926f770f3d62dd86430cd521 Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Sun, 14 May 2017 09:52:45 +0100 Subject: minisatUnstable: init at 2013-09-25 --- .../science/logic/minisat/unstable.nix | 23 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 24 insertions(+) create mode 100644 pkgs/applications/science/logic/minisat/unstable.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/applications/science/logic/minisat/unstable.nix b/pkgs/applications/science/logic/minisat/unstable.nix new file mode 100644 index 000000000000..f7f5c7a4b78d --- /dev/null +++ b/pkgs/applications/science/logic/minisat/unstable.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchFromGitHub, zlib, cmake }: + +stdenv.mkDerivation rec { + name = "minisat-unstable-2013-09-25"; + + src = fetchFromGitHub { + owner = "niklasso"; + repo = "minisat"; + rev = "37dc6c67e2af26379d88ce349eb9c4c6160e8543"; + sha256 = "091hf3qkm197s5r7xcr3m07xsdwyz2rqk1hc9kj0hn13imz09irq"; + }; + + buildInputs = [ zlib ]; + nativeBuildInputs = [ cmake ]; + + meta = with stdenv.lib; { + description = "Compact and readable SAT solver"; + maintainers = with maintainers; [ Mic92 ]; + platforms = platforms.unix; + license = licenses.mit; + homepage = "http://minisat.se/"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d72af8b24c8b..b620608b7d30 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17848,6 +17848,7 @@ with pkgs; mcrl2 = callPackage ../applications/science/logic/mcrl2 { }; minisat = callPackage ../applications/science/logic/minisat {}; + minisatUnstable = callPackage ../applications/science/logic/minisat/unstable.nix {}; opensmt = callPackage ../applications/science/logic/opensmt { }; -- cgit 1.4.1 From 893c7b611272c4ba2f8ba6b1b339dd845029cac3 Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Sun, 14 May 2017 09:53:30 +0100 Subject: cryptominisat: init at 5.0.1 --- .../science/logic/cryptominisat/default.nix | 31 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/applications/science/logic/cryptominisat/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/applications/science/logic/cryptominisat/default.nix b/pkgs/applications/science/logic/cryptominisat/default.nix new file mode 100644 index 000000000000..26efbc5fe723 --- /dev/null +++ b/pkgs/applications/science/logic/cryptominisat/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, fetchpatch, cmake, python, vim }: + +stdenv.mkDerivation rec { + name = "cryptominisat-${version}"; + version = "5.0.1"; + + src = fetchFromGitHub { + owner = "msoos"; + repo = "cryptominisat"; + rev = version; + sha256 = "0cpw5d9vplxvv3aaplhnga55gz1hy29p7s4pkw1306knkbhlzvkb"; + }; + + # vim for xxd binary + buildInputs = [ python vim ]; + nativeBuildInputs = [ cmake ]; + + patches = [(fetchpatch rec { + name = "fix-exported-library-name.patch"; + url = "https://github.com/msoos/cryptominisat/commit/7a47795cbe5ad5a899731102d297f234bcade077.patch"; + sha256 = "11hf3cfqs4cykn7rlgjglq29lzqfxvlm0f20qasi0kdrz01cr30f"; + })]; + + meta = with stdenv.lib; { + description = "An advanced SAT Solver"; + maintainers = with maintainers; [ mic92 ]; + platforms = platforms.unix; + license = licenses.mit; + homepage = https://github.com/msoos/cryptominisat; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b620608b7d30..43d67504c762 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7438,6 +7438,8 @@ with pkgs; cryptopp = callPackage ../development/libraries/crypto++ { }; + cryptominisat = callPackage ../applications/science/logic/cryptominisat { }; + curlcpp = callPackage ../development/libraries/curlcpp { }; cutee = callPackage ../development/libraries/cutee { }; -- cgit 1.4.1 From c42739a4290da9eed92a9b367b2fd075ec4f5eea Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Mon, 15 May 2017 07:53:00 +0100 Subject: wllvm: init at 1.1.3 --- pkgs/development/tools/wllvm/default.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 14 ++++++++------ 2 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 pkgs/development/tools/wllvm/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/development/tools/wllvm/default.nix b/pkgs/development/tools/wllvm/default.nix new file mode 100644 index 000000000000..19bdb1cd9ef7 --- /dev/null +++ b/pkgs/development/tools/wllvm/default.nix @@ -0,0 +1,20 @@ +{ stdenv, python3Packages }: + +python3Packages.buildPythonApplication rec { + version = "1.1.3"; + pname = "wllvm"; + name = "${pname}-${version}"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "1scv9bwr888x2km8njg0000xkj8pz73c0gjbphhqaj8vy87y25cb"; + }; + + meta = with stdenv.lib; { + homepage = https://github.com/travitch/whole-program-llvm; + description = "A wrapper script to build whole-program LLVM bitcode files"; + license = licenses.mit; + maintainers = with maintainers; [ mic92 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a11f09845c58..95f7718031dc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16345,20 +16345,22 @@ with pkgs; wily = callPackage ../applications/editors/wily { }; + winswitch = callPackage ../tools/X11/winswitch { }; + + wings = callPackage ../applications/graphics/wings { }; + + wireguard = callPackage ../os-specific/linux/wireguard { }; + alsamixer.app = callPackage ../applications/window-managers/windowmaker/dockapps/alsamixer.app.nix { }; + wllvm = callPackage ../development/tools/wllvm { }; + wmcalclock = callPackage ../applications/window-managers/windowmaker/dockapps/wmcalclock.nix { }; wmsm.app = callPackage ../applications/window-managers/windowmaker/dockapps/wmsm.app.nix { }; wmsystemtray = callPackage ../applications/window-managers/windowmaker/dockapps/wmsystemtray.nix { }; - winswitch = callPackage ../tools/X11/winswitch { }; - - wings = callPackage ../applications/graphics/wings { }; - - wireguard = callPackage ../os-specific/linux/wireguard { }; - wmname = callPackage ../applications/misc/wmname { }; wmctrl = callPackage ../tools/X11/wmctrl { }; -- cgit 1.4.1 From 178a5067af5e1b0526388903b9601837f55e850a Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Wed, 26 Apr 2017 22:41:46 +0200 Subject: hledger(-web): move to all-packages with static build Since they are executables they should be at top-level. We build statically to shorten invocation time (at the moment haskell packages have the problem of too large RPATHs). --- pkgs/top-level/all-packages.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 779db161d14a..16b52fa6f675 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14314,6 +14314,9 @@ with pkgs; hipchat = callPackage ../applications/networking/instant-messengers/hipchat { }; + hledger = haskell.lib.justStaticExecutables haskellPackages.hledger; + hledger-web = haskell.lib.justStaticExecutables haskellPackages.hledger-web; + homebank = callPackage ../applications/office/homebank { gtk = gtk3; }; -- cgit 1.4.1 From 95f321480fe5aa1a3c1b13f4a593ee91a95de800 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Wed, 24 May 2017 02:07:23 +0300 Subject: wine: add udev support --- pkgs/misc/emulators/wine/base.nix | 1 + pkgs/misc/emulators/wine/default.nix | 3 ++- pkgs/top-level/all-packages.nix | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/misc/emulators/wine/base.nix b/pkgs/misc/emulators/wine/base.nix index 19026274d56b..13c2dc6da4df 100644 --- a/pkgs/misc/emulators/wine/base.nix +++ b/pkgs/misc/emulators/wine/base.nix @@ -47,6 +47,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (! isNull buildScript) { ++ lib.optional pulseaudioSupport pkgs.libpulseaudio ++ lib.optional xineramaSupport pkgs.xorg.libXinerama ++ lib.optionals gstreamerSupport (with pkgs.gst_all; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-ffmpeg ]) + ++ lib.optional udevSupport pkgs.udev ++ lib.optionals gtkSupport [ pkgs.gtk3 pkgs.glib ] ++ lib.optionals openclSupport [ pkgs.opencl-headers pkgs.ocl-icd ] ++ lib.optionals xmlSupport [ pkgs.libxml2 pkgs.libxslt ] diff --git a/pkgs/misc/emulators/wine/default.nix b/pkgs/misc/emulators/wine/default.nix index deeff3c73437..91fb0da82d8a 100644 --- a/pkgs/misc/emulators/wine/default.nix +++ b/pkgs/misc/emulators/wine/default.nix @@ -38,6 +38,7 @@ gphoto2Support ? false, ldapSupport ? false, pulseaudioSupport ? false, + udevSupport ? false, xineramaSupport ? false, xmlSupport ? false }: @@ -50,7 +51,7 @@ let wine-build = build: release: netapiSupport cursesSupport vaSupport pcapSupport v4lSupport saneSupport gsmSupport gphoto2Support ldapSupport fontconfigSupport alsaSupport pulseaudioSupport xineramaSupport gtkSupport openclSupport xmlSupport tlsSupport - openglSupport gstreamerSupport; + openglSupport gstreamerSupport udevSupport; }; }); diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 16b52fa6f675..07643fa6151d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18666,6 +18666,7 @@ with pkgs; gphoto2Support = true; ldapSupport = true; pulseaudioSupport = true; + udevSupport = true; }); wineStable = self.wine.override { wineRelease = "stable"; }; wineUnstable = lowPrio (self.wine.override { wineRelease = "unstable"; }); -- cgit 1.4.1 From ff15d0c41ed5ac0c8b987adff6724f91a88bc40c Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 24 May 2017 01:40:22 +0300 Subject: esptool-ck: init at 0.4.11 --- pkgs/tools/misc/esptool-ck/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/misc/esptool-ck/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/tools/misc/esptool-ck/default.nix b/pkgs/tools/misc/esptool-ck/default.nix new file mode 100644 index 000000000000..c1678f3907fb --- /dev/null +++ b/pkgs/tools/misc/esptool-ck/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "esptool-ck-${version}"; + version = "0.4.11"; + + src = fetchFromGitHub { + owner = "igrr"; + repo = "esptool-ck"; + rev = "0.4.11"; + sha256 = "086x68jza24xkaap8nici18kj78id2p2lzbasin98wilvpjc8d7f"; + }; + + makeFlags = [ "VERSION=${version}" ]; + + installPhase = '' + mkdir -p $out/bin + cp esptool $out/bin + ''; + + meta = with stdenv.lib; { + description = "ESP8266/ESP32 build helper tool"; + homepage = https://github.com/igrr/esptool-ck; + license = licenses.gpl2; + maintainers = [ maintainers.dezgeg ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 07643fa6151d..5a798282f9d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -949,6 +949,8 @@ with pkgs; envconsul = callPackage ../tools/system/envconsul { }; + esptool-ck = callPackage ../tools/misc/esptool-ck { }; + f3 = callPackage ../tools/filesystems/f3 { }; facter = callPackage ../tools/system/facter { -- cgit 1.4.1 From e6cb889faa1dead8e4320a294e53ea3000c4fd84 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 24 May 2017 02:44:38 +0300 Subject: esptool: init at 1.4 --- pkgs/tools/misc/esptool/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/misc/esptool/default.nix (limited to 'pkgs/top-level/all-packages.nix') diff --git a/pkgs/tools/misc/esptool/default.nix b/pkgs/tools/misc/esptool/default.nix new file mode 100644 index 000000000000..04ba5788cd91 --- /dev/null +++ b/pkgs/tools/misc/esptool/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, python3 }: + +python3.pkgs.buildPythonApplication rec { + name = "esptool-${version}"; + version = "1.3"; + + src = fetchFromGitHub { + owner = "espressif"; + repo = "esptool"; + rev = "v${version}"; + sha256 = "0112fybkz4259gyvhcs18wa6938jp6w7clk66kpd0d1dg70lz1h6"; + }; + + propagatedBuildInputs = with python3.pkgs; [ pyserial ]; + + doCheck = false; # FIXME: requires packaging some new deps + + meta = with stdenv.lib; { + description = "ESP8266 and ESP32 serial bootloader utility"; + homepage = https://github.com/espressif/esptool; + license = licenses.gpl2; + maintainers = [ maintainers.dezgeg ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5a798282f9d1..373e2b76c08e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -949,6 +949,8 @@ with pkgs; envconsul = callPackage ../tools/system/envconsul { }; + esptool = callPackage ../tools/misc/esptool { }; + esptool-ck = callPackage ../tools/misc/esptool-ck { }; f3 = callPackage ../tools/filesystems/f3 { }; -- cgit 1.4.1