Commit Graph

50 Commits

Author SHA1 Message Date
Emily
fdb820602b treewide: drop simple x86_64-darwin mentions
To reproduce:

    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: nix-x86_64-darwin
          language: nix
          rule:
            any:
              - pattern: "\"x86_64-darwin\""
                kind: list_expression > string_expression
              - pattern:
                  context: "{ \"x86_64-darwin\" = $EXPR; }"
                  selector: binding
              - pattern:
                  context: "{ x86_64-darwin = $EXPR; }"
                  selector: binding
          fix:
            template: ""
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-first-x86_64-darwin
          language: json
          rule:
            kind: object > pair:nth-child(1)
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandEnd: { regex: "," }
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-x86_64-darwin
          language: json
          rule:
            kind: object > pair
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandStart: { regex: "," }
        ' pkgs
    $ git restore pkgs/by-name/om/omnix/package.nix
    $ git diff --name-only -z \
        | nix shell nixpkgs/3b32825de172d0bc85664f495edb096b10862524#gnused \
            -c xargs -0 sed -i '/^$/N; /^\n\? \+$/d'
    $ treefmt
2026-07-15 03:58:16 +01:00
Trent Baldwin
988d9da4bd ghidra-bin: 12.1 -> 12.1.2 2026-06-10 23:51:00 -04:00
Trent Baldwin
ec981cc156 ghidra-bin: 12.0.4 -> 12.1 2026-05-21 00:37:30 -04:00
Franco Biasin
ff7a738c48 ghidra-bin: 12.0.2 -> 12.0.4 2026-04-03 17:23:22 -03:00
Tim Schumacher
33cda2f10a ghidra: 12.0.1 -> 12.0.2 2026-01-31 15:40:39 +01:00
Tim Schumacher
c71235aa62 ghidra: 12.0 -> 12.0.1 2026-01-16 09:32:53 +01:00
Tim Schumacher
34826189f4 ghidra: 11.4.2 -> 12.0 2025-12-23 20:58:00 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Martino Fontana
cbd349107f ghidra, ghidra-bin: 11.3.2 -> 11.4.2 2025-08-30 12:57:31 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
John Chadwick
8b8d5d78d6 ghidra-bin: 11.3.1 -> 11.3.2 2025-04-15 17:48:44 -04:00
John Chadwick
ce5f4333e2 gihdra-bin: 11.3 -> 11.3.1 2025-02-19 16:02:16 -05:00
John Chadwick
e7fc893774 ghidra-bin: 11.2.1 -> 11.3 2025-02-07 09:24:06 -05:00
Jörg Thalheim
20b4d001cb ghidra-bin: 10.4 -> 11.2.1, add aarch64 (#354359) 2024-11-08 11:25:37 +01:00
John Chadwick
95faddaab7 ghidra-bin: add aarch64 platforms 2024-11-07 18:54:48 -05:00
John Chadwick
647cac40fb ghidra-bin: 10.4 -> 11.2.1 2024-11-07 18:28:48 -05:00
Reno Dakota
52bf1163fa treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
roblabla
be6aa219ed ghidra: Add ghidra-analyzeHeadless to PATH
This new binary is an alias to the support/analyzeHeadless script, which
is used to run ghidra scripts in a headless manner. This
ghidra-analyzeHeadless name is also the one used by the ArchLinux
package.
2024-08-11 23:21:37 +02:00
vringar
57a7c134de ghidra: chore run nixfmt-rfc-style on ghidra dir 2024-08-06 16:24:43 +10:00
xenia
a8476824ee ghidra{,-bin}: desktop file fixes
- add StartupWMClass to allow window manager to associate ghidra windows
  with the desktop file
- add `terminal = false` from ghidra into ghidra-bin
2024-07-01 23:17:40 -04:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Mikael Fangel
e49ae78acf ghidra-bin: 10.3.1 -> 10.4 2023-11-13 14:47:16 +01:00
Thomas Watson
bc954fa316 ghidra{,-bin}: 10.3 -> 10.3.1
The ghidra dependency hash has been verified and is unchanged.
2023-06-19 16:26:20 -05:00
Alexandre Iooss
4143506bbb ghidra-bin: 10.2.2 -> 10.3 2023-05-21 19:43:46 +02:00
Thomas Gerbet
e5a8b8db88 ghidra-bin: 10.2.2 -> 10.2.3
Fixes CVE-2023-22671.

This was missed in 2e4bc8230f.

https://htmlpreview.github.io/?https://github.com/NationalSecurityAgency/ghidra/blob/Ghidra_10.2.3_build/Ghidra/Configurations/Public_Release/src/global/docs/ChangeHistory.html
2023-05-18 18:24:28 +02:00
Hubert Jasudowicz
f1cc7dceaf ghidra-bin: 10.2.1 -> 10.2.2 2022-11-16 11:00:31 +01:00
Hubert Jasudowicz
fb56af45a0 ghidra-bin: 10.1.5 -> 10.2.1 2022-11-13 14:20:43 +01:00
Gauvain 'GovanifY' Roussel-Tarbouriech
ac540bf0f9 ghidra-bin: 10.1.4 -> 10.1.5 2022-08-27 21:55:23 +02:00
Robert Scott
3b6bc4b69c treewide: set sourceProvenance for packages containing downloaded jars
these are the easily identifiable cases and will not be comprehensive
2022-06-04 19:47:57 +01:00
sintemal
d079f3654d ghidra-bin: 10.1.1 -> 10.1.4 2022-05-25 14:02:48 +02:00
K900
cb2cfba6f7 treewide: switch all desktop file generators to new API
Notably:
- remove explicit arguments that match the defaults
- convert everything to the right Nix types
2022-02-25 13:40:38 -08:00
Jonathan Ringer
df1c411c2a ghidra: update homepage 2021-12-28 09:07:43 -08:00
Joerie de Gram
2654041a66 ghidra: 10.1 -> 10.1.1
Fixes CVE-2021-45105 (#150288)
2021-12-22 15:58:26 +01:00
Joerie de Gram
89206c507e ghidra: 10.0.4 -> 10.1
Fixes CVE-2021-44228 (Apache Log4j JNDI RCE). Closes #150153.
2021-12-11 00:15:28 +01:00
Benjamin Asbach
e0db47bd82 ghidra: 10.0 -> 10.0.4 2021-11-26 13:25:56 +01:00
ilkecan
3e85813580 ghidra-bin: wrap launcher instead of the binary 2021-10-01 23:51:50 +03:00
Gauvain 'GovanifY' Roussel-Tarbouriech
2d138ca420 ghidra: 9.2.3 -> 10.0 2021-06-26 03:13:40 +02:00
Jörg Thalheim
68891e6a5b ghidra: 9.2.2 -> 9.2.3 2021-04-23 17:43:05 +02:00
Andreas Rammhold
a9479e1fff ghidra-bin: 9.2.1 -> 9.2.2 2021-04-03 22:35:04 +02:00
Pavol Rusnak
688bf1f56c ghidra: 9.2 -> 9.2.1
+ enable on x86_64-darwin
2020-12-31 16:06:54 +01:00
Gauvain 'GovanifY' Roussel-Tarbouriech
80ceb60cb1 ghidra: 9.1.2 -> 9.2 2020-11-14 14:53:03 +01:00
Nils André-Chang
ec88246d1a ghidra: 9.1 -> 9.1.2
Move icoutils from buildInputs to nativeBuildInputs because it is a
compile time dependency.
2020-04-10 22:28:02 +01:00
Michael Reilly
84cf00f980 treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Latebricole
fdca231242 ghidra: 9.04 -> 9.1
* ghidra: 9.04 -> 9.1

Update Ghidra from 9.04 to 9.1

* ghidra: Added desktop file

Add a desktop file for Ghidra

Ghidra ships its icons as a .ico file, which isn't support by freedesktop. This means that to have icons, we need to extract the pngs from ghidra.ico, then copy them to the relevant folders.
This adds a requirement on a library to extract them, and also requires them to be copied over, which isn't ideal.
2019-12-07 19:46:14 +01:00
Nick Bathum
bad033aaa7 ghidra 9.0.2 -> 9.0.4 2019-08-01 12:07:47 -04:00
Rene de la Garza
f882547372 ghidra: 9.0 -> 9.0.2 (#65177) 2019-07-24 17:02:03 +01:00
Christian Kögler
2385d153ba ghidra: use autoPatchelfHook 2019-03-13 22:49:43 +01:00
Christian Kögler
631faad148 initial ghidra-9.0
I tested basic usage of tool CodeBrowser.
The tool VersionTracking raises an error.
2019-03-13 22:49:32 +01:00