Commit Graph

29 Commits

Author SHA1 Message Date
Weijia Wang
4ef739adf1 scandir: fix build on aarch64-darwin 2022-10-04 13:41:56 +02:00
Travis A. Everett
ff44e1f9dd resholve: use originalSrc for nixpkgs-update bot
Effort to fix automatic nixpkgs-update updates for resholved
packages in 9f6310d did help the bot get further, but it
then failed to find the source outputHash (the outer
derivation's source is the inner derivation; bot looks for
outer.src.outputHash; ours is at outer.src.src.outputHash).

This change uses `originalSrc` to indicate the source of the
inner derivation. Along with ryantm/nixpkgs-update#324, this
enables the bot to fall back on an attr that Nix/nixpkgs are
not directly depending on, supporting automatic updates for
packages built with `resholve.mkDerivation`.
2022-09-17 15:16:05 -05:00
Travis A. Everett
9f6310d611 resholve: fix mangled pname/meta integrations
Two items in resholve's mkDerivation are causing trouble for
some ecosystem tools:

1. I didn't pass through the original package's meta, which breaks the
   ability of at least nixos package search and r-ryantm to find the
   right source file (in the latter case breaking auto updates).

2. I was prepending "resholved-" to the pname, which at least nixos
   package search picks up as the package's name. Repology also tries
   to do this, but their current nix updater will prefer to get this
   data from the name. For now, this means changing to name will not
   stop repology from picking up the `resholved-<package>` names.

   Repology's code makes it clear that they *want* to use the pname/
   version, so I was inclined to settle with what I've got for now,
   but thiagokokada clarified that we aren't just waiting for nixpkgs
   fixes, but because Nix itself isn't exporting the pname/version in
   its JSON. See also:

   - https://github.com/repology/repology-updater/issues/854
   - https://github.com/repology/repology-updater/commit/9313110121df5

   For now, at least, I'll switch to appending "-unresholved" to the
   inner derivation's pname.
2022-09-13 09:20:21 -05:00
Travis A. Everett
700f2bc99f resholve: 0.8.0 -> 0.8.1; update readme 2022-08-02 07:36:20 +02:00
Artturin
b3caa2f1fe treewide: extraPostFetch -> postFetch 2022-05-23 17:18:50 +03: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
bd1fbc0a6f resholve: 0.6.8 -> 0.6.9 2022-01-24 08:39:54 +01:00
Travis A. Everett
3b83eeb903 resholve: 0.6.6 -> 0.6.8 2021-11-12 00:24:36 -06:00
Travis A. Everett
a9454f539b resholve: actually import resholveScript* 2021-09-30 18:54:09 -05:00
Travis A. Everett
1dd78cbd74 resholve: 0.6.5 -> 0.6.6, respect buildInputs 2021-09-27 16:01:09 +09:00
Travis A. Everett
407ff07598 resholve: 0.6.4 -> 0.6.5 2021-09-27 16:01:09 +09:00
Travis A. Everett
8b2cd3a79a resholve: 0.6.3 -> 0.6.4 2021-09-27 16:01:09 +09:00
Travis A. Everett
679b29d33d resholve: 0.6.2 -> 0.6.3, fix readme 2021-09-27 16:01:09 +09:00
Travis A. Everett
6568f18ea3 resholve: 0.6.1 -> 0.6.2 2021-09-27 16:01:09 +09:00
Travis A. Everett
b5833091d4 resholve: 0.6.0 -> 0.6.1, add resholveScript* fns 2021-09-27 16:01:09 +09:00
Travis A. Everett
67ec4fa479 resholve: fix review nits from #138080 2021-09-27 16:01:09 +09:00
Travis A. Everett
a649cbca09 resholvePackage: extract util functions
Extract argument-handling utility functions to prepare for adding
resholveScript* functions.

This tracks upstream work, but I broke it up a little more semantically here
in case it aids review. See:
6aab748205
2021-09-27 16:01:09 +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
Ben Siraphob
2f78ee7e81 pkgs/development: stdenv.lib -> lib 2021-01-24 00:16:29 +07:00
Sandro
1a083843d9
Merge pull request #109594 from abathur/doc/resholve
resholve: update README
2021-01-18 20:54:32 +01:00
Travis A. Everett
a14aa84dd7 resholve: update README 2021-01-16 19:26:46 -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