nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 1f878c06deeb74b871cea37fcd2d2e4810bde08e
parent f52b47eaa0176513b13fb1249f4361d44186f93b
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Fri, 18 Jun 2021 11:07:47 +0300

Make it a flake

Diffstat:
Aflake.lock | 27+++++++++++++++++++++++++++
Aflake.nix | 15+++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/flake.lock b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1623862044, + "narHash": "sha256-mY7nldu9Wl/Yb0qMPihZrWw0bRWXNsk6iyYztw/6F6Y=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0747387223edf1aa5beaedf48983471315d95e16", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix @@ -0,0 +1,15 @@ +{ + description = "My personal NUR repository"; + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + outputs = { self, nixpkgs }: let + systems = [ + "x86_64-linux" + "x86_64-darwin" + ]; + forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); + in { + packages = forAllSystems (system: import ./default.nix { + pkgs = import nixpkgs { inherit system; }; + }); + }; +}