Skip to content

Commit 68400ae

Browse files
authored
chore: update nix (#576)
* flake: change pkg source to unstable * flake.lock: update * default.nix: update vendorhash and add ldflags
1 parent 2b0a4c0 commit 68400ae

File tree

3 files changed

+35
-12
lines changed

3 files changed

+35
-12
lines changed

default.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{ pkgs }:
22

3-
pkgs.buildGoModule {
4-
name = "gum";
3+
pkgs.buildGoModule rec {
4+
pname = "gum";
5+
version = "0.14.0";
6+
57
src = ./.;
6-
vendorSha256 = "sha256-rOBwhPXo4sTSI3j3rn3c5qWGnGFgkpeFUKgtzKBltbg=";
8+
9+
vendorHash = "sha256-gDDaKrwlrJyyDzgyGf9iP/XPnOAwpkvIyzCXobXrlF4=";
10+
11+
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
712
}

flake.lock

Lines changed: 25 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
description = "A tool for glamorous shell scripts";
33

44
inputs = {
5-
nixpkgs.url = github:nixos/nixpkgs/nixos-22.05;
6-
flake-utils.url = github:numtide/flake-utils;
5+
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
77
};
88

99
outputs = { self, nixpkgs, flake-utils }:

0 commit comments

Comments
 (0)