Commit Graph

292332 Commits

Author SHA1 Message Date
Tobias Bergkvist
a1e62262bc Replace concat3 with asprintf in set_env_prefix and set_env_suffix. 2021-12-01 23:27:26 +01:00
Tobias Bergkvist
3997e9de67 Switch from malloc to calloc in addFlags 2021-12-01 23:07:30 +01:00
Tobias Bergkvist
97d62a90f5 Switch from exit(1) to abort() in assert_success 2021-12-01 22:56:18 +01:00
Tobias Bergkvist
4e55d34535 Add assertValidEnvName and check that variable name is valid during code generation. Add assert_success, and assert that setenv/unsetenv succeeds to crash if they don't 2021-12-01 22:49:20 +01:00
Tobias Bergkvist
3a014be2f2 Assert that malloc does not return a NULL pointer for better error messages + to satisfy static analysis tools. 2021-11-09 02:56:32 +01:00
Doron Behar
eb048d8fe2 Rephrase makeWrapper setup-hook 2021-10-20 08:59:29 +03:00
Tobias Bergkvist
a95a7a22be Switch from buildInputs to nativeBuildInpuits in makeGoldenTest 2021-10-19 18:35:42 +02:00
Tobias Bergkvist
7cca19a46a
Set strictDeps = true in makeGoldenTest
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2021-10-19 09:25:24 -07:00
Doron Behar
6517e5b10f Improve explenations for wrap*Program 2021-10-19 17:33:02 +03:00
Tobias Bergkvist
1218b82bce Move assertExecutable from makeCWrapper to makeBinaryWrapper to ensure that makeCWrapper is a pure function 2021-10-19 14:37:05 +02:00
Doron Behar
ba86a1916b makeBinaryWrapper: Document 2021-10-19 05:30:42 -07:00
Doron Behar
c310cb0d94 makeBinaryWrapper: add wrapProgramBinary (like wrapProgram) 2021-10-19 05:30:42 -07:00
Doron Behar
a45c5db391 makeBinaryWrapper: Assert $1 is executable 2021-10-19 05:30:42 -07:00
Tobias Bergkvist
4b833cc141 EditorConfig: Switch from tabs to spaces 2021-10-04 22:38:14 +02:00
Tobias Bergkvist
b7d36b8d59 Add golden tests for make-binary-wrapper.
To run tests after cloning on linux, use the following:
nix-build pkgs/top-level/release.nix -A tests.make-binary-wrapper.x86_64-linux
2021-10-04 22:35:09 +02:00
Tobias Bergkvist
adef70ce7c Specify uses_prefix, uses_suffix and uses_concat3 as local vars. Make sure errors in makeCWrapper are located next to the line with the issue. 2021-10-04 14:29:22 +02:00
Tobias Bergkvist
3df841bb99 Make error messages more consistent 2021-10-01 18:57:26 +02:00
Tobias Bergkvist
d930fecc3c Return an #error macro if the wrong number of arguments are supplied 2021-10-01 18:51:19 +02:00
Tobias Bergkvist
ac99a6ff98 Add makeBinaryWrapper to pkgs/top-level/all-packages.nix 2021-10-01 18:19:53 +02:00
Tobias Bergkvist
b62216a211 Fix shellcheck warnings. Use single quotes for printf format strings. Switch to strncpy in concat3. Use multiline strings to print C functions. Switch from if/elif to case. 2021-10-01 17:43:23 +02:00
Tobias Bergkvist
b58c857bfb Switch to using strlen in concat3Fn. Make sure uses-variables are local to improve purity of makeCWrapper. Refactor 2021-08-26 14:36:30 +02:00
Tobias Bergkvist
dcba4171d4 Add support for --add-flags, --prefix and --suffix 2021-08-23 23:44:57 +02:00
Tobias Bergkvist
1d64281401 Remove line at the bottom of make-binary-wrapper that executes makeBinaryWrapper "$@" 2021-06-01 01:25:22 +02:00
Tobias Bergkvist
8d2964a8e6 Rename make-c-wrapper.sh to make-binary-wrapper.sh. Refactor to match style of other setup-hooks. Add compilation step with gcc. Embed the entire generated source code into the binary for troubleshooting. 2021-06-01 01:02:08 +02:00
Tobias Bergkvist
e8cedf3819 make-c-wrapper: Fix typo in generated documentation 2021-05-27 02:04:12 +02:00
Tobias Bergkvist
131ed20b2f make-c-wrapper: Remove trailing whitespace (editorconfig) 2021-05-27 01:56:23 +02:00
Tobias Bergkvist
eef4fa82c1 make-c-wrapper: Fix typo in generated code documentation 2021-05-27 01:47:40 +02:00
Tobias Bergkvist
de1f53b84d Add make-c-wrapper.sh for creating binary executable wrappers 2021-05-27 01:11:06 +02:00
Tobias Bergkvist
5edd17c4c2 Add bergkvist to maintainer list 2021-05-27 00:57:31 +02:00
austinbutler
2a6db4c056
stellar-core: 0.5.1 -> 17.0.0 (#123294) 2021-05-26 17:35:46 -04:00
Jörg Thalheim
7c0dacb0bd
Merge pull request #124546 from Mic92/containerd
containerd: fix checksum
2021-05-26 22:33:48 +01:00
Jörg Thalheim
a635c12d1f
containerd: fix checksum 2021-05-26 23:26:12 +02:00
Ryan Mulligan
83820adde4
Merge pull request #124532 from r-ryantm/auto-update/hitori
gnome.hitori: 3.38.1 -> 3.38.2
2021-05-26 13:40:53 -07:00
Fabian Affolter
40ab718862
Merge pull request #124201 from fabaff/tests-pyppeteer
python3Packages.pyppeteer: enable tests
2021-05-26 22:24:44 +02:00
Sandro
991825eea7
Merge pull request #124530 from Ma27/fix-openldap-mig-docs
nixos/release-notes: fix `slaptest` command for openldap section
2021-05-26 22:22:33 +02:00
Trolli Schmittlauch
84aa23742f
poppler: build with nss by default for signature support (#124294)
Since 21.01, poppler supports PDF signing. As applications like okular
start to make use of that feature, nss support for poppler is enabled by
default to avoid unnecessary package duplication.
When building a `minimal` version of poppler, nss is disabled as well.

closes #120928
2021-05-26 15:57:38 -04:00
Vladimír Čunát
ce2e9f9124
Merge #124110: luajit updates 2021-05-26 21:49:38 +02:00
Ryan Mulligan
6596f38b4b
Merge pull request #124473 from eyJhb/betterlockscreen-patch
betterlockscreen: readd patch for i3color
2021-05-26 12:40:19 -07:00
Sandro
ff5aa11827
Merge pull request #124456 from r-ryantm/auto-update/fly
fly: 7.2.0 -> 7.3.0
2021-05-26 21:23:43 +02:00
Cole Helbling
4c7cf79b36 terraform-providers.hydra: 0.1.1 -> 0.1.2 2021-05-26 12:21:09 -07:00
R. RyanTM
c962441021 gnome.hitori: 3.38.1 -> 3.38.2 2021-05-26 19:15:35 +00:00
Maximilian Bosch
b5a12b4b61
nixos/release-notes: fix slaptest command for openldap section
When running - as suggested - `slaptest -f slapd.conf $TMPDIR` I get the
following result:

    [root@ldap:/tmp/tmp.De46ABIbFf]# slaptest -f /nix/store/lks3ihydj40ff6yqvz0k33ycrc9vbyry-slapd.conf $TMPDIR
    usage: slaptest [-v] [-d debuglevel] [-f configfile] [-F configdir] [-o <name>[=<value>]] [-n databasenumber] [-u] [-Q]

    [root@ldap:/tmp/tmp.De46ABIbFf]# echo $?
    1

Adding a `-F` option fixes the issue.
2021-05-26 20:50:01 +02:00
Oleksii Filonenko
d4b7485fb6
Merge pull request #124514 from nshalman/packet-0.5.0
packet-cli: 0.3.0 -> 0.5.0
2021-05-26 20:41:56 +03:00
Ryan Mulligan
36d3d4575d
Merge pull request #124052 from r-ryantm/auto-update/hwinfo
hwinfo: 21.73 -> 21.74
2021-05-26 10:28:38 -07:00
Matthieu Coudron
bffd12a4c7
Merge pull request #120445 from teto/vim-plugins-dict
neovimUtils: pass plugin config with plugin
2021-05-26 18:35:36 +02:00
Gabriel Ebner
4aa2e32246
Merge pull request #124507 from collares/olean-cache-misses
lean: substitute release commit sha1 (so upstream oleans are compatible with nixpkgs lean)
2021-05-26 18:34:56 +02:00
Eric Bailey
d10825ede2 kubernetes-helmPlugins.helm-secrets: 3.6.1 -> 3.7.0 2021-05-26 18:30:47 +02:00
Michael Weiss
5b8cf45145
Merge pull request #124491 from primeos/signal-desktop
signal-desktop: 5.2.1 -> 5.3.0
2021-05-26 18:12:49 +02:00
Nahum Shalman
007d723c1e packet-cli: 0.3.0 -> 0.5.0 2021-05-26 16:00:20 +00:00
Ryan Mulligan
e83f3eca21
Merge pull request #124322 from r-ryantm/auto-update/argo
argo: 3.0.4 -> 3.0.6
2021-05-26 08:52:07 -07:00