diff options
author | John Rinehart <john.rinehart@ardanlabs.com> | 2021-05-12 16:08:08 +0300 |
---|---|---|
committer | John Rinehart <john.rinehart@ardanlabs.com> | 2021-05-12 16:08:08 +0300 |
commit | 85f455f2457822948ff1631664c81b0964874a24 (patch) | |
tree | d47d802e6fa25d334b0fe459ecf8d8f229120dee | |
parent | 993bcc052b630802d021dd9a54dd099eb5cd46e0 (diff) |
chore: nixpkgs-fmt
-rw-r--r-- | default.nix | 6 | ||||
-rw-r--r-- | flake.nix | 30 |
2 files changed, 18 insertions, 18 deletions
diff --git a/default.nix b/default.nix index 3cf4137..a76bcc2 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,4 @@ -{ pkgs ? (import <nixpkgs> {}), lib ? (import <nixpkgs/lib>), system ? builtins.currentSystem }: +{ pkgs ? (import <nixpkgs> { }), lib ? (import <nixpkgs/lib>), system ? builtins.currentSystem }: assert lib.versionAtLeast pkgs.go.version "1.14"; @@ -11,7 +11,7 @@ pkgs.buildGoModule rec { vendorSha256 = "HffgkuKmaOjTYi+jQ6vBlC50JqqbYiikURT6TCqL7e0="; subPackages = [ "." ]; - + buildInputs = with pkgs; [ libusb1 ]; nativeBuildInputs = with pkgs; [ pkg-config ]; @@ -22,4 +22,4 @@ pkgs.buildGoModule rec { maintainers = [ johnrichardrinehart ]; platforms = platforms.linux ++ platforms.darwin; }; -}
\ No newline at end of file +} @@ -1,25 +1,25 @@ { - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/release-20.09"; - flake-utils.url = "github:numtide/flake-utils"; - }; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/release-20.09"; + flake-utils.url = "github:numtide/flake-utils"; + }; - outputs = inputs: - let - inherit (inputs.flake-utils.lib) eachDefaultSystem flattenTree mkApp; - in - eachDefaultSystem (system: + outputs = inputs: + let + inherit (inputs.flake-utils.lib) eachDefaultSystem flattenTree mkApp; + in + eachDefaultSystem (system: let - pkgs = inputs.nixpkgs.legacyPackages.${system}; - lib = inputs.nixpkgs.lib; - in + pkgs = inputs.nixpkgs.legacyPackages.${system}; + lib = inputs.nixpkgs.lib; + in rec { defaultPackage = (import ./default.nix) { - inherit pkgs lib system; - }; + inherit pkgs lib system; + }; - defaultApp = defaultPackage; + defaultApp = defaultPackage; } ); } |