Add flakes support

pull/2/head
Tadeo Kondrak 2021-02-21 18:42:22 -07:00
parent a6939762f1
commit 21c1400739
2 changed files with 50 additions and 0 deletions

27
flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1620901170,
"narHash": "sha256-hsJnA0fH6gGzj9KOoolUR+8mw+wNAJC/2SxjZsEq1AI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d1601a40c48426ae460eede1675fd1d6ee23e198",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

23
flake.nix Normal file
View File

@ -0,0 +1,23 @@
{
description = "vs-overlay";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
nixpkgsFor = forAllSystems (system:
import nixpkgs {
inherit system;
overlays = [ self.overlay ];
}
);
in
{
overlay = import ./default.nix;
packages = forAllSystems (system: {
inherit (nixpkgsFor.${system})
getnative
vapoursynthPlugins;
});
};
}