Skip to content

Commit

Permalink
remove gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Aug 24, 2021
1 parent ae09567 commit 170eca8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 31 deletions.
29 changes: 6 additions & 23 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions flake.nix
Expand Up @@ -3,24 +3,18 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=release-21.05";
gitignore = {
url = "github:hercules-ci/gitignore";
flake = false;
};
flake-utils.url = "github:numtide/flake-utils";
};

outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem (system:
let
pkgs = inputs.nixpkgs.legacyPackages.${system};
gitignore = pkgs.callPackage inputs.gitignore { };
let pkgs = inputs.nixpkgs.legacyPackages.${system};
in rec {
# `nix build`
packages.similar-sort = pkgs.stdenv.mkDerivation {
name = "similar-sort";
buildInputs = [ pkgs.go ];
src = gitignore.gitignoreSource ./.;
src = ./.;

buildPhase = ''
env HOME=$(pwd) GOPATH=$(pwd) go build similar-sort.go
Expand Down

0 comments on commit 170eca8

Please sign in to comment.