Skip to content

Commit

Permalink
chore: update nix (#576)
Browse files Browse the repository at this point in the history
* flake: change pkg source to unstable

* flake.lock: update

* default.nix: update vendorhash and add ldflags
  • Loading branch information
MikaelFangel authored May 25, 2024
1 parent 2b0a4c0 commit 68400ae
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 12 deletions.
11 changes: 8 additions & 3 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{ pkgs }:

pkgs.buildGoModule {
name = "gum";
pkgs.buildGoModule rec {
pname = "gum";
version = "0.14.0";

src = ./.;
vendorSha256 = "sha256-rOBwhPXo4sTSI3j3rn3c5qWGnGFgkpeFUKgtzKBltbg=";

vendorHash = "sha256-gDDaKrwlrJyyDzgyGf9iP/XPnOAwpkvIyzCXobXrlF4=";

ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
}
32 changes: 25 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
description = "A tool for glamorous shell scripts";

inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixos-22.05;
flake-utils.url = github:numtide/flake-utils;
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
Expand Down

0 comments on commit 68400ae

Please sign in to comment.