Unverified Commit 43c123c2 authored by Matt Sturgeon's avatar Matt Sturgeon Committed by GitHub
Browse files

nixfmt: 1.1.0 → 1.2.0 (#478361)

parents 53563b07 9739a232
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  base,
  bytestring,
  cmdargs,
  containers,
  directory,
  fetchzip,
  file-embed,
@@ -23,15 +24,16 @@
}:
mkDerivation {
  pname = "nixfmt";
  version = "1.1.0";
  version = "1.2.0";
  src = fetchzip {
    url = "https://github.com/nixos/nixfmt/archive/v1.1.0.tar.gz";
    sha256 = "19sydkdw1579qmvzx0zq06s23bm6m6l9wp1kvsfhxawk8pkz2pc2";
    url = "https://github.com/nixos/nixfmt/archive/v1.2.0.tar.gz";
    sha256 = "1qvj1sddh7bgggqnj7cnhvfh4iz1pwzc9a9awc1g7y349yvpwad3";
  };
  isLibrary = true;
  isExecutable = true;
  libraryHaskellDepends = [
    base
    containers
    megaparsec
    mtl
    parser-combinators
+4 −1
Original line number Diff line number Diff line
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p cabal2nix curl jq
#!nix-shell --pure -i bash -p cabal2nix curl cacert jq nix
#
# This script will update the nixfmt derivation to the latest version using
# cabal2nix.
@@ -24,4 +24,7 @@ cabal2nix --jailbreak \
  "https://github.com/nixos/nixfmt/archive/${release_tag}.tar.gz" \
  >> "$derivation_file"

nix-shell "$script_dir/../../../../" \
  --run "treefmt --no-cache $derivation_file"

echo "Finished."