Skip to content

Commit

Permalink
Migrate build to buildGoModule
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vdp committed Oct 28, 2024
1 parent 8e32908 commit 9b4ab73
Show file tree
Hide file tree
Showing 1,406 changed files with 15 additions and 441,466 deletions.
31 changes: 15 additions & 16 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
{ system ? builtins.currentSystem
, inputs ? import ./flake.lock.nix { }
, nixpkgs ? import inputs.nixpkgs {
{
system ? builtins.currentSystem,
inputs ? import ./flake.lock.nix { },
nixpkgs ? import inputs.nixpkgs {
inherit system;
# Makes the config pure as well. See <nixpkgs>/top-level/impure.nix:
config = { };
overlays = [ ];
}
, buildGoPackage ? nixpkgs.buildGoPackage
},
buildGoModule ? nixpkgs.buildGoModule,
}:
let
versionFile = builtins.readFile ./version.go;
versionMatch = builtins.match ".*\"([0-9]+\\.[0-9]+\\.[0-9]+)\".*" versionFile;
version = builtins.head versionMatch;
github-deploy = buildGoPackage
rec {
name = "github-deploy-${version}";
goPackagePath = "github.com/zimbatm/github-deploy";
src = nixpkgs.lib.cleanSource ./.;
# FIXME: for some reason the go reference rewrites are failing
allowGoReference = true;
};
inherit (nixpkgs) lib;
versionFile = lib.readFile ./version.go;
versionMatch = lib.match ".*\"([0-9]+\\.[0-9]+\\.[0-9]+)\".*" versionFile;
version = lib.head versionMatch;
github-deploy = buildGoModule {
name = "github-deploy-${version}";
src = nixpkgs.lib.cleanSource ./.;
vendorHash = "sha256-vcm3UhqwiUCdope9TpfO/CQQsxM0eh8nhvOCv4bGCng=";
};
in
{
inherit github-deploy;
Expand Down
12 changes: 0 additions & 12 deletions vendor/dario.cat/mergo/.deepsource.toml

This file was deleted.

33 changes: 0 additions & 33 deletions vendor/dario.cat/mergo/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions vendor/dario.cat/mergo/.travis.yml

This file was deleted.

46 changes: 0 additions & 46 deletions vendor/dario.cat/mergo/CODE_OF_CONDUCT.md

This file was deleted.

112 changes: 0 additions & 112 deletions vendor/dario.cat/mergo/CONTRIBUTING.md

This file was deleted.

28 changes: 0 additions & 28 deletions vendor/dario.cat/mergo/LICENSE

This file was deleted.

Loading

0 comments on commit 9b4ab73

Please sign in to comment.