1
0
Fork 0

Merge pull request #36 from divanorama/nixpkgs_fmt

[RFC] Run nixpkgs-fmt .
main
Jörg Thalheim 2020-12-28 06:26:03 +00:00 committed by GitHub
commit 435192e36f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 23 deletions

3
ci.nix
View File

@ -12,9 +12,7 @@
{ pkgs ? import <nixpkgs> { } }:
with builtins;
let
isReserved = n: n == "lib" || n == "overlays" || n == "modules";
isDerivation = p: isAttrs p && p ? type && p.type == "derivation";
isBuildable = p: !(p.meta.broken or false) && p.meta.license.free or true;
@ -46,7 +44,6 @@ let
(attrNames nurAttrs))));
in
rec {
buildPkgs = filter isBuildable nurPkgs;
cachePkgs = filter isCacheable buildPkgs;

View File

@ -18,4 +18,3 @@
# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
# ...
}

View File

@ -5,4 +5,3 @@ with pkgs.lib; {
#
# hexint = x: hexvals.${toLower x};
}

View File

@ -3,4 +3,3 @@
#
# my-module = ./my-module;
}

View File

@ -3,15 +3,12 @@
# configuration.
self: super:
let
isReserved = n: n == "lib" || n == "overlays" || n == "modules";
nameValuePair = n: v: { name = n; value = v; };
nurAttrs = import ./default.nix { pkgs = super; };
in
builtins.listToAttrs
(map (n: nameValuePair n nurAttrs.${n})
(builtins.filter (n: !isReserved n)

View File

@ -3,4 +3,3 @@
#
# my-overlay = import ./my-overlay;
}

View File

@ -7,4 +7,3 @@ stdenv.mkDerivation rec {
buildPhase = "echo echo Hello World > example";
installPhase = "install -Dm755 example $out";
}