From 85e3b9b87141669801f8feac18b0e7e308619cce Mon Sep 17 00:00:00 2001 From: vigress8 Date: Mon, 22 Jul 2024 21:09:58 +0400 Subject: De-vendor nixfmt Change-Id: I1a051be495318a507d07f6d0a6b157616e26774c --- nix-support/nixfmt.nix | 65 -------------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 nix-support/nixfmt.nix (limited to 'nix-support') diff --git a/nix-support/nixfmt.nix b/nix-support/nixfmt.nix deleted file mode 100644 index b51e26295..000000000 --- a/nix-support/nixfmt.nix +++ /dev/null @@ -1,65 +0,0 @@ -# Copy of `nixfmt-rfc-style` vendored from `nixpkgs` master: -# https://github.com/NixOS/nixpkgs/blob/ab6071eb54cc9b66dda436111d4f569e4e56cbf4/pkgs/by-name/ni/nixfmt-rfc-style/package.nix -{ - haskell, - haskellPackages, - fetchFromGitHub, -}: -let - inherit (haskell.lib.compose) justStaticExecutables; - raw-pkg = haskellPackages.callPackage ( - { - mkDerivation, - base, - cmdargs, - directory, - fetchzip, - filepath, - lib, - megaparsec, - mtl, - parser-combinators, - safe-exceptions, - scientific, - text, - transformers, - unix, - }: - mkDerivation { - pname = "nixfmt"; - version = "0.6.0-unstable-2024-03-14"; - src = fetchFromGitHub { - owner = "serokell"; - repo = "nixfmt"; - rev = "8d13b593fa8d8d6e5075f541f3231222a08e84df"; - hash = "sha256-HtXvzmfN4wk45qiKZ7V+/5WBV7jnTHfd7iBwF4XGl64="; - }; - isLibrary = true; - isExecutable = true; - libraryHaskellDepends = [ - base - megaparsec - mtl - parser-combinators - scientific - text - transformers - ]; - executableHaskellDepends = [ - base - cmdargs - directory - filepath - safe-exceptions - text - unix - ]; - jailbreak = true; - homepage = "https://github.com/serokell/nixfmt"; - description = "An opinionated formatter for Nix"; - license = lib.licenses.mpl20; - mainProgram = "nixfmt"; - } - ) { }; -in -justStaticExecutables raw-pkg -- cgit v1.2.3