Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions pkgs/by-name/ni/nixfmt/generated-package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
base,
bytestring,
cmdargs,
containers,
directory,
fetchzip,
file-embed,
Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion pkgs/by-name/ni/nixfmt/update.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/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.
Expand All @@ -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."
Loading