Skip to content

Commit

Permalink
fix(nix): a flake must be an attribute set
Browse files Browse the repository at this point in the history
  • Loading branch information
louib committed Sep 18, 2023
1 parent 7d36306 commit 7a0ddd0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
let
authorName = "louib";
authorEmail = "code@louib.net";
projectName = "nix2sbom";
rec {
description = "`nix2sbom` extracts the SBOM (Software Bill of Materials) from a Nix derivation";
in {
inherit description;

inputs = {
nixpkgs = {
Expand All @@ -23,6 +18,11 @@ in {
flake-utils.lib.eachDefaultSystem (
system: (
let
authorName = "louib";
mainBranch = "main";
authorEmail = "code@louib.net";
projectName = "nix2sbom";

pkgs = import nixpkgs {
inherit system;
};
Expand All @@ -44,7 +44,7 @@ in {
packages = {
default = pkgs.rustPlatform.buildRustPackage rec {
pname = projectName;
version = "main";
version = mainBranch;

src = ./.;

Expand Down

0 comments on commit 7a0ddd0

Please sign in to comment.