Unverified Commit 5544b278 authored by Silvan Mosberger's avatar Silvan Mosberger Committed by GitHub
Browse files

Merge pull request #333192 from helsinki-systems/upd/nixfmt-rfc-style

nixfmt-rfc-style: 2024-07-12 -> 2024-08-08
parents 82200459 4b30e1a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
2024-07-12
2024-08-08
+8 −6
Original line number Diff line number Diff line
# This file has been autogenerate with cabal2nix.
# Update via ./update.sh
{ mkDerivation, base, cmdargs, directory, fetchzip, filepath, lib
, megaparsec, mtl, parser-combinators, pretty-simple
, safe-exceptions, scientific, text, transformers, unix
{ mkDerivation, base, bytestring, cmdargs, directory, fetchzip
, file-embed, filepath, lib, megaparsec, mtl, parser-combinators
, pretty-simple, safe-exceptions, scientific, text, transformers
, unix
}:
mkDerivation {
  pname = "nixfmt";
  version = "0.6.0";
  src = fetchzip {
    url = "https://github.com/nixos/nixfmt/archive/83de1eceaae8a891ae52a3a2b82226540207309e.tar.gz";
    sha256 = "0lnl9vlbyrfplmq3hpmpjlmhjdwwbgk900wgi25ib27v0mlgpnxp";
    url = "https://github.com/nixos/nixfmt/archive/a707c70ab6fed71032ac55bb1029306a50a80d34.tar.gz";
    sha256 = "1v5hch8j1w1bvn2r4xz4ym60ykgsc074y28vpin9qraagv06x8sm";
  };
  isLibrary = true;
  isExecutable = true;
@@ -18,7 +19,8 @@ mkDerivation {
    text transformers
  ];
  executableHaskellDepends = [
    base cmdargs directory filepath safe-exceptions text unix
    base bytestring cmdargs directory file-embed filepath
    safe-exceptions text unix
  ];
  jailbreak = true;
  homepage = "https://github.com/NixOS/nixfmt";
+5 −1
Original line number Diff line number Diff line
@@ -8,13 +8,17 @@
let
  inherit (haskell.lib.compose) overrideCabal justStaticExecutables;

  overrides = {
  overrides = rec {
    version = "unstable-${lib.fileContents ./date.txt}";

    passthru.updateScript = ./update.sh;

    maintainers = lib.teams.formatter.members;

    preBuild = ''
      echo -n 'nixpkgs-${version}' > .version
    '';

    # These tests can be run with the following command.
    #
    # $ nix-build -A nixfmt-rfc-style.tests