diff --git a/default.nix b/default.nix index 29c8f15..3ef547e 100644 --- a/default.nix +++ b/default.nix @@ -4,7 +4,7 @@ buildGoModule rec { name = "gosmee-${version}"; src = packageSrc; - vendorSha256 = null; + vendorHash = null; postUnpack = '' printf ${version} > $sourceRoot/gosmee/templates/version @@ -19,7 +19,8 @@ buildGoModule rec { ''; meta = { - description = "Command line server and client for webhooks deliveries (and https://smee.io)"; + description = + "Command line server and client for webhooks deliveries (and https://smee.io)"; homepage = "https://github.com/chmouel/gosmee"; license = lib.licenses.asl20; }; diff --git a/flake.lock b/flake.lock index 101f102..b6c6ad2 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1699973119, - "narHash": "sha256-Jg80rekrOZh/sG0DQWZ24k9lAHNyrbs7oBKD4ys6nb0=", + "lastModified": 1727341424, + "narHash": "sha256-OUCZN5crHZlmcDPrQLECQgQwjFh+lwnytlP0zVgRHhs=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "a2b6873f0b7f1468fa4a3e759c426b28dae8908d", + "rev": "da4a432d7f4477d40d26fc8391d4d3cefb8241ca", "type": "github" }, "original": { @@ -41,11 +41,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1694529238, - "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "lastModified": 1726560853, + "narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", "owner": "numtide", "repo": "flake-utils", - "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 2864ac0..3691cf9 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,6 @@ { - description = "gosmee — command line server and client for webhooks deliveries (and https://smee.io)"; + description = + "gosmee — command line server and client for webhooks deliveries (and https://smee.io)"; inputs.utils.url = "github:numtide/flake-utils"; inputs.nixpkgs.url = "github:NixOS/nixpkgs"; @@ -8,41 +9,41 @@ let # Generate a user-friendly version number. version = self.rev or (builtins.substring 0 8 self.lastModifiedDate); - in - utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system: + in utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system: let pkgs = nixpkgs.legacyPackages.${system}; gosmee = pkgs.callPackage ./default.nix { packageSrc = self; - buildGoModule = pkgs.buildGo121Module; + buildGoModule = pkgs.buildGo122Module; version = version; }; - in - { + in { packages = { gosmee = gosmee; default = self.packages.${system}.gosmee; }; apps = { - gosmee = utils.lib.mkApp { drv = self.packages.${system}.gosmee; name = "gosmee"; }; + gosmee = utils.lib.mkApp { + drv = self.packages.${system}.gosmee; + name = "gosmee"; + }; default = self.apps.${system}.gosmee; }; # FIXME: fix the overlay and nix flake check # overlays = { # default = final: prev: { gosmee = gosmee; }; # }; - devShell = pkgs.mkShell - { - nativeBuildInputs = [ - pkgs.go_1_22 - pkgs.gnumake - pkgs.pre-commit # needed for pre-commit install - pkgs.git # needed for pre-commit install - pkgs.yamllint # needed for pre-commit install - ]; - shellHook = '' - pre-commit install - ''; - }; + devShell = pkgs.mkShell { + nativeBuildInputs = [ + pkgs.go_1_22 + pkgs.gnumake + pkgs.pre-commit # needed for pre-commit install + pkgs.git # needed for pre-commit install + pkgs.yamllint # needed for pre-commit install + ]; + shellHook = '' + pre-commit install + ''; + }; }); }