Skip to content

Instantly share code, notes, and snippets.

@matthew-piziak
Created August 1, 2019 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthew-piziak/7c3925e232d05b245856ed9c7a6c3e8a to your computer and use it in GitHub Desktop.
Save matthew-piziak/7c3925e232d05b245856ed9c7a6c3e8a to your computer and use it in GitHub Desktop.
nix-repl> pkgs = import <nixpkgs>
pkgs = import <nixpkgs>
nix-repl> nixfmt = import (pkgs.fetchFromGitHub {
owner = "serokell";
repo = "nixfmt";
rev = "af09262aa7d08d2b0905b11d2e8958889aadcf46"; # v0.2.0
sha256 = "0njgjv6syv3sk97v8kq0cb4mhgrb7nag2shsj7rphs6h5b7k9nbx";
})
nixfmt = import (pkgs.fetchFromGitHub {
owner = "serokell";
repo = "nixfmt";
rev = "af09262aa7d08d2b0905b11d2e8958889aadcf46"; # v0.2.0
sha256 = "0njgjv6syv3sk97v8kq0cb4mhgrb7nag2shsj7rphs6h5b7k9nbx";
})
nix-repl> nixfmt
nixfmt
error: value is a function while a set was expected, at (string):1:10
nix-repl> nixfmt {}
nixfmt {}
error: value is a function while a set was expected, at (string):1:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment