diff options
author | EuAndreh <eu@euandre.org> | 2019-11-15 09:03:22 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-11-15 09:03:22 -0300 |
commit | 2e8dbcbd2041f3389e4917961bfcd2c13f9baa49 (patch) | |
tree | 5a32e80575e69303462b3d5c5cc1b88b39c6ec30 | |
parent | TODOs.org (diff) | |
download | server-2e8dbcbd2041f3389e4917961bfcd2c13f9baa49.tar.gz server-2e8dbcbd2041f3389e4917961bfcd2c13f9baa49.tar.xz |
utils.nix: Use nixfmt from nixpkgs
-rw-r--r-- | utils.nix | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -1,8 +1,4 @@ -{ pkgs, src, baseName }: -let - nixfmt = import (builtins.fetchTarball - "https://github.com/serokell/nixfmt/archive/master.tar.gz") { }; -in rec { +{ pkgs, src, baseName }: rec { baseTask = pkgs.stdenv.mkDerivation { name = "${baseName}-task"; src = src; @@ -26,7 +22,7 @@ in rec { }); formatNix = baseTask.overrideAttrs (baseAttrs: { name = "${baseAttrs.name}-nixfmt"; - buildInputs = baseAttrs.buildInputs ++ [ nixfmt ]; + buildInputs = baseAttrs.buildInputs ++ [ pkgs.nixfmt ]; buildPhase = '' format() { nix_file="$1" |