Skip to content

Commit

Permalink
Format nix code with alejandra
Browse files Browse the repository at this point in the history
  • Loading branch information
antifuchs committed Mar 15, 2024
1 parent 2701f3b commit 68ece42
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
{
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
inputs.generate-go-sri.flakeModules.default
];
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { config, pkgs, lib, ... }: {
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
perSystem = {
config,
pkgs,
lib,
...
}: {
formatter = pkgs.alejandra;
go-sri-hashes.default = {};

packages = {
default = config.packages.hoopsnake;
hoopsnake = pkgs.buildGo122Module rec {
pname = "hoopsnake";
version = "0.0.0";
vendorHash = (builtins.readFile ./default.sri);
vendorHash = builtins.readFile ./default.sri;
subPackages = ["cmd/hoopsnake"];
src = lib.sourceFilesBySuffices (lib.sources.cleanSource ./.) [".go" ".mod" ".sum"];
meta.mainProgram = "hoopsnake";
Expand All @@ -27,5 +33,5 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
devshell.url = "github:numtide/devshell";
generate-go-sri.url = "github:antifuchs/generate-go-sri";
};
};
}

0 comments on commit 68ece42

Please sign in to comment.