Skip to content

Commit

Permalink
Minor improvements in flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jan 15, 2024
1 parent 2c1c756 commit 482b103
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@
in {
default = self.packages.${system}.twenty-twenty-twenty;
twenty-twenty-twenty = pkgs.callPackage ./twenty-twenty-twenty.nix { inherit version; };
twenty-twenty-twenty-static = (pkgs.callPackage ./twenty-twenty-twenty.nix rec {
inherit version;
twenty-twenty-twenty-static = self.packages.${system}.twenty-twenty-twenty.override rec {
inherit (pkgs.pkgsStatic) alsa-lib stdenv;
buildGoModule = pkgs.buildGoModule.override { inherit stdenv; };
extraLdflags = [ "-linkmode external" ''-extldflags "-static"'' ];
});
};
# Also static build because CGO_ENABLED=0
twenty-twenty-twenty-no-sound = pkgs.callPackage ./twenty-twenty-twenty.nix {
twenty-twenty-twenty-no-sound = self.packages.${system}.twenty-twenty-twenty.override {
inherit version;
withSound = false;
};
Expand Down

0 comments on commit 482b103

Please sign in to comment.