Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
chore: nixpkgs-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
John Rinehart committed May 12, 2021
1 parent 993bcc0 commit 85f455f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -11,7 +11,7 @@ pkgs.buildGoModule rec {
vendorSha256 = "HffgkuKmaOjTYi+jQ6vBlC50JqqbYiikURT6TCqL7e0=";

subPackages = [ "." ];

buildInputs = with pkgs; [ libusb1 ];
nativeBuildInputs = with pkgs; [ pkg-config ];

Expand All @@ -22,4 +22,4 @@ pkgs.buildGoModule rec {
maintainers = [ johnrichardrinehart ];
platforms = platforms.linux ++ platforms.darwin;
};
}
}
30 changes: 15 additions & 15 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -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;
}
);
}

0 comments on commit 85f455f

Please sign in to comment.