Commit Graph

70 Commits

Author SHA1 Message Date
Dr Perceptron
946f5dd980
flex: backwards-compatible executable alias lex 2022-01-16 16:07:09 +11:00
Sergei Trofimovich
6c74a8a08f flex: use fetchuril instead of fetchpatch to avoid extra depends
Weekly `gcc` snapshots don't come with pre-generated `flex` lexers
and thus require `flex` dependency. Attempt to use them as is fails as:

    error: anonymous function at pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'meta'
       at pkgs/build-support/fetchpatch/default.nix:18:1:
           17| in
           18| fetchurl ({
             | ^
           19|   postFetch = ''
    (use '--show-trace' to show detailed location information)

This happens due to a circulare dependency between fetchpatch dependencies
and flex.

The change uses simpler `fetchurl` to ease use of `flex` in `gcc`.

This allows me to use existing `gcc` `.nix` files for weekly `gcc`
snapshots by only adding extra `flex` dependency.
2021-12-03 07:56:28 +00:00
Alyssa Ross
4e1852096f
Merge remote-tracking branch 'nixpkgs/staging-next' into staging
Conflicts:
	pkgs/development/tools/parsing/flex/2.6.1.nix
2021-11-14 14:17:46 +00:00
Sandro Jäckel
792680167b
flex: delete unreferenced file 2021-11-13 19:45:02 +01:00
Felix Buehler
345d71ffd0 pkgs/development: rename name to pname&version 2021-11-10 14:03:21 +01:00
Sebastián Mancilla
8f94a33b38 treewide: ensure pre/post phase hooks are strings
Some derivations use lib.optional or lib.optionals when setting pre/post
phase hooks. Ensure the proper lib.optionalString is used.
2021-08-20 19:08:42 -04:00
Andrew Childs
9ad03b1ed9 flex: fix cross compilation 2021-05-17 00:27:00 +09:00
Ben Siraphob
c522fec274 pkgs/development/tools: stdenv.lib -> lib 2021-01-23 20:30:03 +07:00
Profpatsch
4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
volth
08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Vladimír Čunát
14aa936ec5
Merge branch 'staging-next' into staging 2018-08-17 20:53:27 +02:00
Vladimír Čunát
cbabebcc2e
Merge branch 'master' into staging-next
Hydra: ?compare=1473892
2018-08-17 13:45:21 +02:00
Markus Kowalewski
f9a1aef084
flex: add license 2018-08-16 21:51:07 +02:00
Jan Malakhovski
65b4ff488b flex_2_5_35: make tests run, but disable 2018-08-11 09:35:29 +00:00
Jan Malakhovski
d3b15144a7 flex, flex_2_6_1: fix tests 2018-08-11 09:35:22 +00:00
John Ericson
25348b27c5 flex: Clean up to use less bash 2018-08-02 15:12:45 -04:00
John Ericson
1833a04aed flex: Don't use crossAttrs 2018-07-24 19:40:46 -04:00
Will Dietz
cafe25224f flex: review feedback
* top-level attributes, not crossAttrs
* use depsBuildBuild
2018-01-22 18:44:42 -06:00
Will Dietz
67be78f129 flex: patch around attempt to regen manpage, fix cross 2018-01-22 16:51:31 -06:00
Ben Gamari
715fcb4266 flex: Don't disable static while cross-compiling flex
linux-pam appears to rely on this while cross-compiling.

(cherry picked from commit 4009dd163ac30cd25833bf7eb19b5e26e75c474f)
2018-01-22 16:51:30 -06:00
Ben Gamari
e6f9e82ee4 flex: Use native dependencies where applicable
Flex needs both a C compiler for the build environment, as well as a native m4.

(cherry picked from commit 81827c0084c1a69e41894a4d38b0c0b267eaff34)
2018-01-22 16:51:30 -06:00
Vladimír Čunát
3562c2cfa7
flex: add notes about the glibc-2.26 patch 2017-11-06 19:25:14 +01:00
Vladimír Čunát
6535f0bca6
flex: fix with glibc-2.26
It caused segfaults, e.g. when building doxygen.
2017-11-06 19:20:21 +01:00
John Ericson
252b36a28d misc pkgs: Recategorize some dependencies 2017-09-05 11:37:10 -04:00
Frederik Rietdijk
740d76371e Merge commit 'ba68231273bea4cba01413fd2a0e56d68db9234c' into HEAD 2017-07-31 09:12:15 +02:00
Vladimír Čunát
25c762f2bc
flex-2.5.35: switch source URL 2017-07-30 09:46:13 +02:00
Franz Pletz
5e08c4a2cd
flex: 2.6.3 -> 2.6.4 2017-07-29 19:51:15 +02:00
volth
d50437ba3e
flex_2_5_35: fix 404 2017-07-29 19:01:07 +02:00
Vladimír Čunát
cf1d3677d3
flex: bring back 2.6.1 as an option
Some breakages after flex update aren't so easy to fix,
and I can't really afford to spend much time on it ATM.
2017-01-06 16:17:46 +01:00
Vladimír Čunát
6bded45883
flex: 2.6.1 -> 2.6.3
This resolves some warnings and errors introduced in 2.6.x.
2016-12-30 23:17:08 +01:00
Graham Christensen
feec685636
flex: 2.6.0 -> 2.6.1 2016-09-23 21:42:08 -04:00
Tuomas Tynkkynen
21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00
Adam Boseley
e3068d7309 flex: disable tests when cross compiling
When cross compiling we can't run the test executables
on the build machine
2015-12-23 21:05:32 +10:00
William A. Kennington III
22bf2d0bf3 flex: 2.5.39 -> 2.6.0 2015-11-18 17:50:27 -08:00
Rok Garbas
9e99a66c24 cygwin: make flex building on cygwin 2015-06-05 00:39:29 +02:00
Evgeny Egorochkin
08cb717c98 add meta.branch 2014-11-03 13:09:48 +02:00
John Wiegley
bc08fa99f1 Fix flex for building on darwin systems 2014-04-15 05:04:27 -05:00
Peter Simons
f741be954c Offer consistently named attributes for the two available flex versions. 2014-04-11 10:06:18 +02:00
Aristid Breitkreuz
5d12cbf1c2 add back old version of flex for grub2 2014-04-09 20:42:08 +02:00
Peter Simons
44e8fe67d0 flex: update from 2.5.35 to 2.5.39 2014-04-09 12:41:10 +02:00
Eelco Dolstra
320498d529 flex: Clean up expression 2014-01-07 14:24:59 +01:00
Peter Simons
6451264e63 Drop obsolete versions of flex: we only used the latest one, 2.5.35. 2013-09-09 10:39:56 +02:00
Eelco Dolstra
ab3eeabfed Rename buildNativeInputs -> nativeBuildInputs
Likewise for propagatedBuildNativeInputs, etc.  "buildNativeInputs"
sounds like an imperative rather than a noun phrase.
2012-12-28 19:20:09 +01:00
Michael Raskin
ca92853163 Make cross-buildable
svn path=/nixpkgs/trunk/; revision=30238
2011-11-04 21:31:07 +00:00
Michael Raskin
78070477bf Given that this version is the dependency of OpenSSH, fix cross-build.
svn path=/nixpkgs/trunk/; revision=30226
2011-11-04 16:55:47 +00:00
Michael Raskin
a3ea4c135b Newer flex.
svn path=/nixpkgs/trunk/; revision=11213
2008-03-20 09:50:15 +00:00
Ludovic Courtès
3e7da32582 Flex 2.5.34.
svn path=/nixpkgs/trunk/; revision=10713
2008-02-16 19:12:55 +00:00
Michael Raskin
4290be9a99 Various fixes to lessen reliance on nix.cs.uu.nl for tarballs; version bumps for unavailabel tarballs; ATI driver builds now
svn path=/nixpkgs/trunk/; revision=9952
2007-12-18 22:56:12 +00:00