From bdf08c7314654d37005d54d48d4579c9dc5ac697 Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Tue, 25 Aug 2020 09:33:28 -0500 Subject: [PATCH] git ignore stuff in sources for local builds --- default.nix | 3 ++- nix/sources.json | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 0af3289..c9e8eac 100644 --- a/default.nix +++ b/default.nix @@ -2,10 +2,11 @@ let sources = import nix/sources.nix; nixpkgs = import sources.nixpkgs { }; + gitignore = import sources.gitignore { }; in with nixpkgs; stdenv.mkDerivation { name = "elo-anything"; - src = ./.; + src = gitignore.gitignoreSource ./.; buildInputs = [ elmPackages.elm ]; buildPhase = '' diff --git a/nix/sources.json b/nix/sources.json index f6c4bc5..6eaea86 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -1,4 +1,16 @@ { + "gitignore": { + "branch": "master", + "description": "Nix function for filtering local git sources", + "homepage": "", + "owner": "hercules-ci", + "repo": "gitignore", + "rev": "c4662e662462e7bf3c2a968483478a665d00e717", + "sha256": "1npnx0h6bd0d7ql93ka7azhj40zgjp815fw2r6smg8ch9p7mzdlx", + "type": "tarball", + "url": "https://github.com/hercules-ci/gitignore/archive/c4662e662462e7bf3c2a968483478a665d00e717.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, "niv": { "branch": "master", "description": "Easy dependency management for Nix projects",