From 68400ae7b3e6793608f7e002766d02e80d15aaac Mon Sep 17 00:00:00 2001 From: Mikael Fangel <34864484+MikaelFangel@users.noreply.github.com> Date: Sat, 25 May 2024 18:42:08 +0000 Subject: [PATCH] chore: update nix (#576) * flake: change pkg source to unstable * flake.lock: update * default.nix: update vendorhash and add ldflags --- default.nix | 11 ++++++++--- flake.lock | 32 +++++++++++++++++++++++++------- flake.nix | 4 ++-- 3 files changed, 35 insertions(+), 12 deletions(-) diff --git a/default.nix b/default.nix index d85bc60..b0cdedf 100644 --- a/default.nix +++ b/default.nix @@ -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}" ]; } diff --git a/flake.lock b/flake.lock index 87e92c1..7ceb95c 100644 --- a/flake.lock +++ b/flake.lock @@ -1,12 +1,15 @@ { "nodes": { "flake-utils": { + "inputs": { + "systems": "systems" + }, "locked": { - "lastModified": 1659877975, - "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "type": "github" }, "original": { @@ -17,16 +20,16 @@ }, "nixpkgs": { "locked": { - "lastModified": 1664107978, - "narHash": "sha256-31I9XnIjXkUa62BM1Zr/ylKMf9eVO5PtoX2mGpmB7/U=", + "lastModified": 1715447595, + "narHash": "sha256-VsVAUQOj/cS1LCOmMjAGeRksXIAdPnFIjCQ0XLkCsT0=", "owner": "nixos", "repo": "nixpkgs", - "rev": "72783a2d0dbbf030bff1537873dd5b85b3fb332f", + "rev": "062ca2a9370a27a35c524dc82d540e6e9824b652", "type": "github" }, "original": { "owner": "nixos", - "ref": "nixos-22.05", + "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } @@ -36,6 +39,21 @@ "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index bc60b2e..b735eea 100644 --- a/flake.nix +++ b/flake.nix @@ -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 }: