Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5d2267
commit 48f4f4b
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ ... }: | ||
let | ||
sources = import ./nix/sources.nix; | ||
nixpkgs = import sources.nixpkgs { }; | ||
gitignore = import sources.gitignore { }; | ||
in with nixpkgs; | ||
stdenv.mkDerivation { | ||
name = "notes"; | ||
src = gitignore.gitignoreSource ./.; | ||
|
||
buildInputs = [ elmPackages.elm ninja nodePackages.uglify-js ]; | ||
buildPhase = '' | ||
./script/ninja.sh > build.ninja | ||
env ELM_HOME=.elm ninja | ||
''; | ||
|
||
installPhase = "cp -r dist/ $out/"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters