cleanup and fixes of binary installation
This commit is contained in:
parent
e3f9693cf6
commit
7754b2c91c
@ -18,4 +18,8 @@ buildGoApplication {
|
|||||||
pwd = ./.;
|
pwd = ./.;
|
||||||
src = ./.;
|
src = ./.;
|
||||||
modules = ./gomod2nix.toml;
|
modules = ./gomod2nix.toml;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/cmd $out/bin/whspbrd
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
16
flake.nix
16
flake.nix
@ -1,11 +1,17 @@
|
|||||||
{
|
{
|
||||||
description = "A basic gomod2nix flake";
|
description = "A basic gomod2nix flake";
|
||||||
|
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
inputs = {
|
||||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
inputs.gomod2nix.url = "github:nix-community/gomod2nix";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
inputs.gomod2nix.inputs.nixpkgs.follows = "nixpkgs";
|
gomod2nix = {
|
||||||
inputs.gomod2nix.inputs.flake-utils.follows = "flake-utils";
|
url = "github:nix-community/gomod2nix";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
flake-utils.follows = "flake-utils";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, gomod2nix }:
|
outputs = { self, nixpkgs, flake-utils, gomod2nix }:
|
||||||
(flake-utils.lib.eachDefaultSystem
|
(flake-utils.lib.eachDefaultSystem
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user