1
0
Fork 0
git-sv/flake.nix

37 lines
875 B
Nix

{
description = "Nix flake to build git-sv";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
defaultPackage = pkgs.buildGoModule rec {
name = "git-sv";
src = builtins.path {
path = ./.;
name = "git-sv";
};
vendorHash = "sha256-b6Ex3B3arhZCetjYBuC3aDN7pwrhMEi2Q61el3hepvM=";
};
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
bash
go
git
yq
fswatch
];
};
});
}