Merge pull request #55 from jD91mZM2/flake

Basic flake.nix
This commit is contained in:
Nicolas Mattia 2020-01-20 18:03:49 +01:00 committed by GitHub
commit b54750c073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
docparse/target
/flake.lock

12
flake.nix Normal file
View file

@ -0,0 +1,12 @@
{
description = "Build rust crates in Nix. No configuration, no code generation. IFD and sandbox friendly.";
edition = 201909;
outputs = { self, nixpkgs }: let
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" "x86_64-darwin" "i686-linux" "aarch64-linux" ];
in {
# Naersk is not a package, not an app, not a module... It's just a Library
lib = forAllSystems (system: nixpkgs.legacyPackages."${system}".callPackage ./default.nix {});
};
}