cleaned up inputs and outputs

This commit is contained in:
Thorn Avery 2020-10-05 12:23:30 +13:00
parent 688d9374d5
commit 55384804b1

View File

@ -3,7 +3,7 @@
inputs.nixpkgs.url = github:Nixos/nixpkgs/nixos-20.03; inputs.nixpkgs.url = github:Nixos/nixpkgs/nixos-20.03;
outputs = { self, nix, nixpkgs }: outputs = { self, nixpkgs }:
let let
supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ]; supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
forAllSystems = forAllSystems =
@ -11,7 +11,7 @@
version = "1.0.0"; version = "1.0.0";
in { in {
overlay = final: prev: { overlay = final: prev: {
swatch = with final; let nix = final.nix; in stdenv.mkDerivation { swatch = with final; in stdenv.mkDerivation {
name = "swatch-${version}"; name = "swatch-${version}";
buildInputs = [ gawk utillinux ]; buildInputs = [ gawk utillinux ];
src = self; src = self;
@ -36,7 +36,7 @@
defaultPackage = defaultPackage =
forAllSystems (system: (import nixpkgs { forAllSystems (system: (import nixpkgs {
inherit system; inherit system;
overlays = [ self.overlay nix.overlay ]; overlays = [ self.overlay ];
}).swatch); }).swatch);
}; };
} }