pkgs: use relative stockholm.lib
This commit is contained in:
parent
780a04e991
commit
77c3aab5b8
@ -1,5 +1,4 @@
|
|||||||
with import <stockholm/lib>;
|
with import ../../lib;
|
||||||
|
|
||||||
self: super:
|
self: super:
|
||||||
|
|
||||||
# Import files and subdirectories like they are overlays.
|
# Import files and subdirectories like they are overlays.
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
with import <stockholm/lib>;
|
{ mkDerivation, base, fetchgit, hspec, QuickCheck, stdenv, stockholm, text }:
|
||||||
{ mkDerivation, base, fetchgit, hspec, QuickCheck, stdenv, text }: let
|
with stockholm.lib;
|
||||||
|
|
||||||
|
let
|
||||||
cfg = {
|
cfg = {
|
||||||
"18.03" = {
|
"18.03" = {
|
||||||
version = "1.1.0";
|
version = "1.1.0";
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
with import <stockholm/lib>;
|
self: super:
|
||||||
|
with self.stockholm.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
overrides = self: super: mapNixDir (path: self.callPackage path {}) ./.;
|
overrides = self: super: mapNixDir (path: self.callPackage path {}) ./.;
|
||||||
in
|
in
|
||||||
self: super:
|
|
||||||
{
|
{
|
||||||
haskell = super.haskell // {
|
haskell = super.haskell // {
|
||||||
packages = mapAttrs (name: value:
|
packages = mapAttrs (name: value:
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
with import <stockholm/lib>;
|
|
||||||
{ mkDerivation, attoparsec, base, base64-bytestring, bytestring
|
{ mkDerivation, attoparsec, base, base64-bytestring, bytestring
|
||||||
, case-insensitive, containers, exceptions, fetchgit, QuickCheck
|
, case-insensitive, containers, exceptions, fetchgit, QuickCheck
|
||||||
, stdenv, tasty, tasty-quickcheck, text, text-icu, time
|
, stdenv, stockholm, tasty, tasty-quickcheck, text, text-icu, time
|
||||||
}: let
|
}:
|
||||||
|
with stockholm.lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
cfg = {
|
cfg = {
|
||||||
"18.03" = {
|
"18.03" = {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
with import <stockholm/lib>;
|
|
||||||
self: super: {
|
self: super: {
|
||||||
|
|
||||||
bitlbee-facebook = super.bitlbee-facebook.overrideAttrs (old: {
|
bitlbee-facebook = super.bitlbee-facebook.overrideAttrs (old: {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{ imagemagick, runCommand, ... }:
|
{ imagemagick, runCommand, stockholm, ... }:
|
||||||
|
with stockholm.lib;
|
||||||
with import <stockholm/lib>;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
krebs-v2 = [
|
krebs-v2 = [
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
with import <stockholm/lib>;
|
{ cache-root ? "/tmp/cgit", findutils, stockholm, writeDashBin }:
|
||||||
|
|
||||||
{ cache-root ? "/tmp/cgit", findutils, writeDashBin }:
|
|
||||||
|
|
||||||
writeDashBin "cgit-clear-cache" ''
|
writeDashBin "cgit-clear-cache" ''
|
||||||
set -efu
|
set -efu
|
||||||
${findutils}/bin/find ${shell.escape cache-root} -type f -delete
|
${findutils}/bin/find ${stockholm.lib.shell.escape cache-root} -type f -delete
|
||||||
''
|
''
|
||||||
|
@ -1,18 +1,17 @@
|
|||||||
with import <stockholm/lib>;
|
|
||||||
|
|
||||||
self: super:
|
self: super:
|
||||||
|
|
||||||
let
|
let
|
||||||
# This callPackage will try to detect obsolete overrides.
|
# This callPackage will try to detect obsolete overrides.
|
||||||
|
lib = import ../../../lib;
|
||||||
callPackage = path: args: let
|
callPackage = path: args: let
|
||||||
override = self.callPackage path args;
|
override = self.callPackage path args;
|
||||||
upstream = optionalAttrs (override ? "name")
|
upstream = lib.optionalAttrs (override ? "name")
|
||||||
(super.${(parseDrvName override.name).name} or {});
|
(super.${(lib.parseDrvName override.name).name} or {});
|
||||||
in if upstream ? "name" &&
|
in if upstream ? "name" &&
|
||||||
override ? "name" &&
|
override ? "name" &&
|
||||||
compareVersions upstream.name override.name != -1
|
lib.compareVersions upstream.name override.name != -1
|
||||||
then trace "Upstream `${upstream.name}' gets overridden by `${override.name}'." override
|
then lib.trace "Upstream `${upstream.name}' gets overridden by `${override.name}'." override
|
||||||
else override;
|
else override;
|
||||||
in
|
in
|
||||||
|
{ stockholm.lib = lib; } //
|
||||||
mapNixDir (path: callPackage path {}) ./.
|
lib.mapNixDir (path: callPackage path {}) ./.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ jq, systemd, writeDashBin }:
|
{ jq, stockholm, systemd, writeDashBin }:
|
||||||
|
|
||||||
let
|
let
|
||||||
lib = import <stockholm/lib>;
|
lib = stockholm.lib;
|
||||||
user = "exim"; # TODO make this configurable
|
user = "exim"; # TODO make this configurable
|
||||||
in
|
in
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
with import <stockholm/lib>;
|
{ pkgs, stockholm, ... }@args:
|
||||||
{ pkgs, ... }@args:
|
with stockholm.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
# config cannot be declared in the input attribute set because that would
|
# config cannot be declared in the input attribute set because that would
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
with import <stockholm/lib>;
|
|
||||||
{ config, pkgs }:
|
{ config, pkgs }:
|
||||||
|
with pkgs.stockholm.lib;
|
||||||
let
|
let
|
||||||
|
|
||||||
# Refs https://github.com/lupoDharkael/flameshot/blob/master/src/widgets/capture/capturebutton.h
|
# Refs https://github.com/lupoDharkael/flameshot/blob/master/src/widgets/capture/capturebutton.h
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
with import <stockholm/lib>;
|
{ pkgs, stockholm, ... }@args:
|
||||||
{ pkgs, ... }@args:
|
with stockholm.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
# config cannot be declared in the input attribute set because that would
|
# config cannot be declared in the input attribute set because that would
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, stockholm, ... }:
|
||||||
|
|
||||||
with import <stockholm/lib>;
|
with stockholm.lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
# TODO irc-announce should return a derivation
|
# TODO irc-announce should return a derivation
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
with import <stockholm/lib>;
|
{ pkgs, stockholm, stdenv }:
|
||||||
{ pkgs, stdenv }:
|
with stockholm.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "htgen-cyberlocker";
|
pname = "htgen-cyberlocker";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
with import <stockholm/lib>;
|
{ attr, coreutils, exiv2, findutils, gnugrep, jq, nix, stockholm, utillinux, stdenv }:
|
||||||
{ attr, coreutils, exiv2, findutils, gnugrep, jq, nix, utillinux, stdenv }:
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "htgen-imgur";
|
pname = "htgen-imgur";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
@ -9,7 +8,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
(
|
(
|
||||||
exec > htgen-imgur
|
exec > htgen-imgur
|
||||||
echo PATH=${makeBinPath [
|
echo PATH=${stockholm.lib.makeBinPath [
|
||||||
attr
|
attr
|
||||||
coreutils
|
coreutils
|
||||||
exiv2
|
exiv2
|
||||||
@ -18,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
jq
|
jq
|
||||||
nix utillinux
|
nix utillinux
|
||||||
]}
|
]}
|
||||||
echo STATEDIR=${shell.escape "\${STATEDIR-$HOME}"}
|
echo STATEDIR=${stockholm.lib.shell.escape "\${STATEDIR-$HOME}"}
|
||||||
cat $src/htgen-imgur
|
cat $src/htgen-imgur
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
with import <stockholm/lib>;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
default-host-colors = pkgs.writeJSON "logf.default-host-colors.json" {
|
default-host-colors = pkgs.writeJSON "logf.default-host-colors.json" {
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{ coreutils, curl, fetchgit, gawk, gnugrep, gnused, jq, stdenv, w3m, ... }:
|
{ coreutils, curl, fetchgit, gawk, gnugrep, gnused, jq, stdenv, stockholm, w3m, ... }:
|
||||||
with import <stockholm/lib>;
|
with stockholm.lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
readJSON = path: fromJSON (readFile path);
|
readJSON = path: fromJSON (readFile path);
|
||||||
sed.escape = replaceChars ["/"] ["\\/"]; # close enough
|
sed.escape = replaceChars ["/"] ["\\/"]; # close enough
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
with import <stockholm/lib>;
|
{ lib, pkgs, stockholm, ... }:
|
||||||
{ lib, pkgs, ... }:
|
with stockholm.lib;
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
generators = {
|
generators = {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
let lib = import <stockholm/lib>; in
|
{ pkgs, stockholm }:
|
||||||
{ pkgs }:
|
|
||||||
|
|
||||||
# urix - URI eXtractor
|
# urix - URI eXtractor
|
||||||
# Extract all the URIs from standard input and write them to standard output!
|
# Extract all the URIs from standard input and write them to standard output!
|
||||||
@ -10,6 +9,6 @@ pkgs.execBin "urix" {
|
|||||||
argv = [
|
argv = [
|
||||||
"urix"
|
"urix"
|
||||||
"-Eo"
|
"-Eo"
|
||||||
"\\b${lib.uri.posix-extended-regex}\\b"
|
"\\b${stockholm.lib.uri.posix-extended-regex}\\b"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
with import <stockholm/lib>;
|
{ coreutils, quote, stockholm, utillinux, writeDash }:
|
||||||
{ coreutils, quote, utillinux, writeDash }:
|
with stockholm.lib;
|
||||||
|
|
||||||
opt-spec: cmd-spec: let
|
opt-spec: cmd-spec: let
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
with import <stockholm/lib>;
|
|
||||||
|
|
||||||
self: super:
|
self: super:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user