Commit Graph

19 Commits

Author SHA1 Message Date
polyfloyd
2e2fd31065 various: Stop using shortenPerlShebang 2025-11-15 19:34:47 +01:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
SEKUN
62313ff35f sqitchSqlite: init at 1.5.0 2025-02-09 19:50:33 +08:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01: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
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
John Rinehart
afef307023 sqitch: add Algorithm::Backoff 2023-06-12 16:04:26 +01:00
John Rinehart
5952d4bc10 perlPackages.AppSqitch: add Template-Toolkit support 2023-02-07 12:21:41 +00:00
Naïm Favier
ae82656f09 sqitchMysql,sqitchPg: fix wrapper arguments escaping 2022-05-12 20:32:53 +02:00
Aaron Andersen
3557bb49b0 sqitch: package cleanup 2020-12-15 21:12:03 -05:00
Mario Rodas
f42f6df759 sqitchPg: fix build on darwin 2019-12-18 04:20:00 -05:00
Markus Kowalewski
7a2e6cf6a0 sqitch-pg: add license
Inherit from AppSqitch
2018-11-08 20:45:51 +01:00
Matthew Bauer
b5610ed3f0 sqitch: fix on Darwin
Fixes #30389.
2017-10-14 14:41:29 -05:00
Tuomas Tynkkynen
2258b21e4b treewide: Add lots of platforms to packages with no meta
Build-tested on x86_64 Linux and on Darwin.
2016-08-02 21:17:44 +03:00
Robin Gloster
9820cb1bf2 use dontBuild instead of hacks
changes:
 * buildPhase = "true"
 * buildPhase = ":"
2016-05-04 10:11:04 +00:00
Robin Bate Boerop
a3a98d7242 Improved builder for Sqitch 2015-03-18 10:32:46 -03:00
Robin Bate Boerop
566cd9ba19 Remove unnecessary propagatedBuildInputs line 2015-03-17 09:46:52 -03:00
Robin Bate Boerop
d73e5d6fbc Handle Sqitch manual 2015-03-15 11:06:01 -04:00
Robin Bate Boerop
d6e0169c6f Add Sqitch database management tool 2015-03-15 09:59:41 -04:00