Commit Graph

15 Commits

Author SHA1 Message Date
Thiago Kenji Okada
1d77a86904 resholve: fix CLI tests 2023-01-15 12:29:42 +00:00
Thiago Kenji Okada
c44e0571fc resholve: mark it as knownVulnerabilities, allow resholve-utils usage
We are marking `resholve` itself with `meta.knownVulnerabilities`, and
overriding `resholve-utils` functions's `resholve` with
`meta.knownVulnerabilities = [ ]`.

This way, we can still use `resholve` at build-time without triggering
security warnings, however we can't instantiate `resholve` itself. See:

```
$ nix-build -A resholve
error: Package ‘resholve-0.8.4’ in /.../nixpkgs/pkgs/development/misc/resholve/resholve.nix:48 is marked as insecure, refusing to evaluate.

$ nix-build -A ix
/nix/store/k8cvj1bfxkjj8zdg6kgm7r8942bbj7w7-ix-20190815
```

For debugging purposes, you can still bypass the security checks and
instantiate `resholve` by:

```
$ NIXPKGS_ALLOW_INSECURE=1 nix-build -A resholve
/nix/store/77s87hhqymc6x9wpclb04zg5jwm6fsij-resholve-0.8.4
```
2023-01-15 12:29:42 +00:00
Travis A. Everett
4fabafb699 resholve: fold in python package deps
Protects resholve and dependents from breakages as py27 support is
removed (or rots).
2022-12-09 17:11:59 -06:00
Travis A. Everett
02b7967806 resholve: selectively enable python27 2022-12-03 13:51:48 -06:00
Weijia Wang
4ef739adf1 scandir: fix build on aarch64-darwin 2022-10-04 13:41:56 +02:00
Travis A. Everett
09d441d21c resholve: 0.6.9 -> 0.8.0
Also track upstream .nix changes over same window.
2022-04-08 21:13:20 -04:00
Travis A. Everett
234b4a1534
resholve: work around nixpkgs aarch64-darwin issues (#155251)
- add an oil-dev patch to work around build failure documented in
  https://github.com/NixOS/nixpkgs/issues/154203
- override configargparse to disable tests and work around failure
  reported in https://github.com/NixOS/nixpkgs/issues/156807
2022-01-27 10:37:34 +09:00
Travis A. Everett
08b791a01b resholve: 0.5.1 -> 0.6.0, refactor, +binlore
A bit going on here.
- Updating resholve from 0.5.1 -> 0.6.0
  - adding a depdendency, `binlore`, to supply ~intel on executables
    that supports new functionality in resholve
  - adding a package, `yallback`, which provides rule-based callbacks
    for YARA rule matches (depdency of `binlore`).
  - automatically generating "lore" for each `input` to a solution in
    `resholvePackage`.
  - update README
- restructuring some nix components to better support
  my local dev and CI workflows.
  - moved package tests into passthru/tests.nix (cuts `bats` out of
    resholve's immediate dependencies, makes it possible to add my
    existing Nix API test).
  - move my oil-dev patches out of resholve into a separate repo (no
    oil rebuild every time resholve's source changes). Also moving
    oil-dev into its own Nix file here, to ~track the default.nix in
    its own repo.
2021-09-22 09:54:04 -05:00
Sandro Jäckel
b4099137b1
pythonPackages: deprecate ConfigArgParse alias 2021-07-21 13:32:54 +02:00
Travis A. Everett
9f801dc8a5 resholve: 0.5.0 -> 0.5.1 2021-03-04 10:50:39 -06:00
Travis A. Everett
7823d6a449 resholve: 0.4.2 -> 0.5.0 2021-02-27 15:05:28 -06:00
Travis A. Everett
ce1dcb5a50 resholve: 0.4.1 -> 0.4.2 2021-01-24 14:59:28 -06:00
Travis A. Everett
d7fa631412 resholve: don't propagate, 0.4.0 -> 0.4.1 2021-01-11 18:58:56 -06: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
Travis A. Everett
6fd9283bba
resholve: init at 0.4.0 (#85827)
resholve: init at 0.4.0

resholve attempts to resolve executables in shell scripts.
Includes Nix builder for resolving dependencies in Nix-built
shell projects.
2021-01-05 11:56:59 -05:00