diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8d581193cdea69d8206f26affe7363410604780a..58e376753f38eb6139e9e3c78dd31d03d3472633 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -31,7 +31,7 @@ - name: Setup cachix
uses: cachix/cachix-action@v10
with:
name: ${{ matrix.cachixName }}
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Check evaluation
run: |
nix-env -f . -qa \* --meta --xml \
diff --git a/default.nix b/default.nix
index 852ab21962dcdd1eb1862806c73b336c28ea0ea6..4cc84db295c694db20406ca90019f9911ccd93df 100644
--- a/default.nix
+++ b/default.nix
@@ -7,7 +7,6 @@ # commands such as:
{ pkgs ? import args
-, sources ? import ./nix/sources.nix
, system ? builtins.currentSystem
, ...
}@args:
@@ -18,7 +17,7 @@ lib = import ./lib { inherit pkgs; }; # functions
modules = import ./modules; # NixOS modules
overlays = import ./overlays; # nixpkgs overlays
} // (pkgs.lib.optionalAttrs (builtins.tryEval pkgs).success (import ./pkgs {
}
)
)
diff --git a/flake.lock b/flake.lock
index f688aad3abc7b5ddfb77f54b869c4ed09a915290..20a79fe21b363cef17ece2283f9765a8ec455b41 100644
--- a/flake.lock
+++ b/flake.lock
@@ -2,11 +2,11 @@ {
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1628231879,
"narHash": "sha256-ySd1qDGPHBKfOLA6KrUTjvnYWUbUSd38lSS+hixrYcM=",
"lastModified": 1629169812,
"narHash": "sha256-krVVUNxRjSBJaFWKelNe0MWvxhklXSGKmisoJP4P5/Q=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "143fe598ba755c98959c3d586ee56595a8acf7c1",
"rev": "70dc433f2eb84cc7ed848a30feaa5aab5890d23c",
"type": "github"
},
"original": {
diff --git a/modules/home-manager/programs/aerc.nix b/modules/home-manager/programs/aerc.nix
index cc1f2dcf0ebd04d4ce978ab81d68fe5a2758d389..e9c0002deda458bb1ad6d45211991a4e9923cd7d 100644
--- a/modules/home-manager/programs/aerc.nix
+++ b/modules/home-manager/programs/aerc.nix
@@ -7,20 +7,21 @@ configDir = "${config.xdg.configHome}/aerc";
accountConfFile = with cfg;
generators.toINI
{ } {
Personal = {
source = "imaps://${gUsername}:${gPassword}@imap.gmail.com:993";
outgoing = "smtp+plain://${gUsername}:${gPassword}@smtp.gmail.com:587";
default = "INBOX";
smtp-starttls = "yes";
from =
if fullName != "" then
"${fullName} <${gUsername}@gmail.com>"
else
"${gUsername}@gmail.com";
copy-to = "Sent";
{ }
{
Personal = {
source = "imaps://${gUsername}:${gPassword}@imap.gmail.com:993";
outgoing = "smtp+plain://${gUsername}:${gPassword}@smtp.gmail.com:587";
default = "INBOX";
smtp-starttls = "yes";
from =
if fullName != "" then
"${fullName} <${gUsername}@gmail.com>"
else
"${gUsername}@gmail.com";
copy-to = "Sent";
};
};
activationScript = ''
$DRY_RUN_CMD install -Dm644 ${pkgs.aerc}/share/aerc/aerc.conf -t ${configDir}
diff --git a/nix/sources.json b/nix/sources.json
deleted file mode 100644
index 3db191946bcfbb8ca163c970e3c4080707f23b69..0000000000000000000000000000000000000000
--- a/nix/sources.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
"branch": "master",
"builtin": false,
"date": "2021-02-07T23:11:50Z",
"description": "Slazav mountains",
"homepage": "http://slazav.xyz/maps/",
"owner": "slazav",
"repo": "map_hr",
"rev": "f476649b5ff12fb6fa037e6fb023c1da19639b84",
"sha256": "0z2782smylf62ank8bpdhnvldqy46xai8ahg87yfyl203zcpp07h",
"type": "tarball",
"url": "https://github.com/slazav/map_hr/archive/f476649b5ff12fb6fa037e6fb023c1da19639b84.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
"branch": "master",
"builtin": false,
"date": "2021-01-09T15:19:59Z",
"description": "Карты Подмосковья в виде номенклатурных листов 1:100000 - исходники в формате mapsoft vmap",
"homepage": "http://slazav.xyz/maps/",
"owner": "slazav",
"repo": "map_podm",
"rev": "c95a381155986f9f621e5d26b21bda041ad8c24f",
"sha256": "0jsrjzmg23rp3ay5149llqrq6pnr66wf7siphwn7gisz5g60pgpf",
"type": "tarball",
"url": "https://github.com/slazav/map_podm/archive/c95a381155986f9f621e5d26b21bda041ad8c24f.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
-}
diff --git a/nix/sources.nix b/nix/sources.nix
deleted file mode 100644
index 1938409dddb0b57d9f298046cf51875060283df2..0000000000000000000000000000000000000000
--- a/nix/sources.nix
+++ /dev/null
@@ -1,174 +0,0 @@
-# This file has been generated by Niv.
-let
name' = sanitizeName name + "-src";
if spec.builtin or true then
builtins_fetchurl { inherit (spec) url sha256; name = name'; }
else
pkgs.fetchurl { inherit (spec) url sha256; name = name'; };
name' = sanitizeName name + "-src";
if spec.builtin or true then
builtins_fetchTarball { name = name'; inherit (spec) url sha256; }
else
pkgs.fetchzip { name = name'; inherit (spec) url sha256; };
ref =
if spec ? ref then spec.ref else
if spec ? branch then "refs/heads/${spec.branch}" else
if spec ? tag then "refs/tags/${spec.tag}" else
abort "In git source '${name}': Please specify `ref`, `tag` or `branch`!";
builtins.fetchGit { url = spec.repo; inherit (spec) rev; inherit ref; };
builtin = true
. $ niv modify ${name} -a type=tarball -a builtin=true'';
builtin = true
. $ niv modify ${name} -a type=file -a builtin=true'';
concatMapStrings (s: if builtins.isList s then "-" else s)
(
builtins.split "[^[:alnum:]+._?=-]+"
((x: builtins.elemAt (builtins.match "\\.*(.*)" x) 0) name)
)
sourcesNixpkgs =
import (builtins_fetchTarball { inherit (sources.nixpkgs) url sha256; }) { inherit system; };
hasNixpkgsPath = builtins.any (x: x.prefix == "nixpkgs") builtins.nixPath;
hasThisAsNixpkgsPath = <nixpkgs> == ./.;
if builtins.hasAttr "nixpkgs" sources
then sourcesNixpkgs
else if hasNixpkgsPath && ! hasThisAsNixpkgsPath then
import <nixpkgs> {}
else
abort
''
Please specify either <nixpkgs> (through -I or NIX_PATH=nixpkgs=...) or
add a package called "nixpkgs" to your sources.json.
'';
abort "ERROR: niv spec ${name} does not have a 'type' attribute"
abort "ERROR: niv spec ${name} has unknown type ${builtins.toJSON spec.type}";
saneName = stringAsChars (c: if isNull (builtins.match "[a-zA-Z0-9]" c) then "_" else c) name;
ersatz = builtins.getEnv "NIV_OVERRIDE_${saneName}";
if ersatz == "" then drv else
# this turns the string into an actual Nix path (for both absolute and
# relative paths)
if builtins.substring 0 1 ersatz == "/" then /. + ersatz else /. + builtins.getEnv "PWD" + "/${ersatz}";
inherit (builtins) lessThan nixVersion fetchTarball;
if lessThan nixVersion "1.12" then
fetchTarball ({ inherit url; } // (optionalAttrs (!isNull name) { inherit name; }))
else
fetchTarball attrs;
inherit (builtins) lessThan nixVersion fetchurl;
if lessThan nixVersion "1.12" then
fetchurl ({ inherit url; } // (optionalAttrs (!isNull name) { inherit name; }))
else
fetchurl attrs;
name: spec:
if builtins.hasAttr "outPath" spec
then abort
"The values in sources.json should not have an 'outPath' attribute"
else
spec // { outPath = replace name (fetch config.pkgs name spec); }
# The sources, i.e. the attribute set of spec name to spec
inherit sources;
# The "pkgs" (evaluated nixpkgs) to use for e.g. non-builtin fetchers
inherit pkgs;
-in
-mkSources (mkConfig {}) // { __functor = _: settings: mkSources (mkConfig settings); }
diff --git a/pkgs/data/dicts/tatoeba/default.nix b/pkgs/data/dicts/tatoeba/default.nix
index f174599cbdef8099174312ca39e8f0e6609771f8..922d0f002cd56b45246b8a1d18bf8939ad344f14 100644
--- a/pkgs/data/dicts/tatoeba/default.nix
+++ b/pkgs/data/dicts/tatoeba/default.nix
@@ -24,7 +24,7 @@ tatoeba = builtins.fromJSON (builtins.readFile ./tatoeba.json);
in
stdenvNoCC.mkDerivation rec {
pname = "tatoeba";
srcs = lib.mapAttrsToList (name: spec: fetchurl spec) tatoeba;
diff --git a/pkgs/data/dicts/tatoeba/tatoeba.json b/pkgs/data/dicts/tatoeba/tatoeba.json
index f4c62566f7d36981d3c0eeb68dfa78cf398905da..a9e35f2fba4f924e88d76a595c8b27a79ef4de39 100644
--- a/pkgs/data/dicts/tatoeba/tatoeba.json
+++ b/pkgs/data/dicts/tatoeba/tatoeba.json
@@ -1,98 +1,98 @@
{
"deu_sentences_detailed": {
"url": "https://downloads.tatoeba.org/exports/per_language/deu/deu_sentences_detailed.tsv.bz2",
},
"eng_sentences_detailed": {
"url": "https://downloads.tatoeba.org/exports/per_language/eng/eng_sentences_detailed.tsv.bz2",
},
"epo_sentences_detailed": {
"url": "https://downloads.tatoeba.org/exports/per_language/epo/epo_sentences_detailed.tsv.bz2",
},
"fin_sentences_detailed": {
"url": "https://downloads.tatoeba.org/exports/per_language/fin/fin_sentences_detailed.tsv.bz2",
},
"rus_sentences_detailed": {
"url": "https://downloads.tatoeba.org/exports/per_language/rus/rus_sentences_detailed.tsv.bz2",
},
"ukr_sentences_detailed": {
"url": "https://downloads.tatoeba.org/exports/per_language/ukr/ukr_sentences_detailed.tsv.bz2",
},
"deu-eng_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/deu/deu-eng_links.tsv.bz2",
},
"deu-rus_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/deu/deu-rus_links.tsv.bz2",
},
"eng-epo_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/eng/eng-epo_links.tsv.bz2",
},
"eng-deu_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/eng/eng-deu_links.tsv.bz2",
},
"eng-fin_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/eng/eng-fin_links.tsv.bz2",
},
"eng-rus_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/eng/eng-rus_links.tsv.bz2",
},
"eng-ukr_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/eng/eng-ukr_links.tsv.bz2",
},
"epo-eng_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/epo/epo-eng_links.tsv.bz2",
},
"epo-rus_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/epo/epo-rus_links.tsv.bz2",
},
"fin-eng_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/fin/fin-eng_links.tsv.bz2",
},
"fin-rus_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/fin/fin-rus_links.tsv.bz2",
},
"rus-deu_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/rus/rus-deu_links.tsv.bz2",
},
"rus-eng_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/rus/rus-eng_links.tsv.bz2",
},
"rus-epo_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/rus/rus-epo_links.tsv.bz2",
},
"rus-fin_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/rus/rus-fin_links.tsv.bz2",
},
"rus-ukr_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/rus/rus-ukr_links.tsv.bz2",
},
"ukr-eng_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/ukr/ukr-eng_links.tsv.bz2",
},
"ukr-rus_links": {
"url": "https://downloads.tatoeba.org/exports/per_language/ukr/ukr-rus_links.tsv.bz2",
}
}
diff --git a/pkgs/data/maps/maptourist/default.nix b/pkgs/data/maps/maptourist/default.nix
index db721c760ed038b99609b7661e502bcb39bf2749..86744f987bead5fee64fd80b47275ec37666126a 100644
--- a/pkgs/data/maps/maptourist/default.nix
+++ b/pkgs/data/maps/maptourist/default.nix
@@ -2,11 +2,11 @@ { lib, stdenvNoCC, fetchurl, unzip }:
stdenvNoCC.mkDerivation rec {
pname = "maptourist";
src = fetchurl {
url = "https://maptourist.org/osm-garmin/archive/OSM-MapTourist-szfo-RU_${version}.zip";
};
sourceRoot = ".";
diff --git a/pkgs/data/maps/mtk-suomi/default.nix b/pkgs/data/maps/mtk-suomi/default.nix
index c9564717c69a99544f683923517385551d7fae90..ca6e5876f831528005134edd13c3c0bcf8fe2ab9 100644
--- a/pkgs/data/maps/mtk-suomi/default.nix
+++ b/pkgs/data/maps/mtk-suomi/default.nix
@@ -2,11 +2,11 @@ { lib, stdenvNoCC, fetchurl }:
stdenvNoCC.mkDerivation rec {
pname = "mtk-suomi";
src = fetchurl {
url = "https://kartat-dl.hylly.org/${version}/mtk_suomi.img";
};
preferLocalBuild = true;
diff --git a/pkgs/data/maps/slazav/hr.nix b/pkgs/data/maps/slazav/hr.nix
index f2034aab927540bdc5091f027a33f37d30a74a20..1467e1653c2842e78fe9121f42d1623e90b65fdf 100644
--- a/pkgs/data/maps/slazav/hr.nix
+++ b/pkgs/data/maps/slazav/hr.nix
@@ -1,10 +1,15 @@
-{ lib, stdenv, bc, cgpsmapper, gmaptool, mapsoft2, sources }:
+{ lib, stdenv, fetchFromGitHub, bc, cgpsmapper, gmaptool, mapsoft2 }:
stdenv.mkDerivation {
pname = "slazav-hr";
nativeBuildInputs = [ bc cgpsmapper gmaptool mapsoft2 ];
@@ -13,7 +18,8 @@
installPhase = "install -Dm644 OUT/all_*.img -t $out";
meta = with lib; {
license = licenses.free;
maintainers = [ maintainers.sikmir ];
platforms = platforms.all;
diff --git a/pkgs/data/maps/slazav/podm.nix b/pkgs/data/maps/slazav/podm.nix
index 4057edc3009ca1540098bd85041dd66084dfbfec..f6d3b2a7adba67471d90f54fb11fbf43727ca778 100644
--- a/pkgs/data/maps/slazav/podm.nix
+++ b/pkgs/data/maps/slazav/podm.nix
@@ -1,10 +1,15 @@
-{ lib, stdenv, bc, cgpsmapper, gmaptool, mapsoft2, sources }:
+{ lib, stdenv, fetchFromGitHub, bc, cgpsmapper, gmaptool, mapsoft2 }:
stdenv.mkDerivation {
pname = "slazav-podm";
nativeBuildInputs = [ bc cgpsmapper gmaptool mapsoft2 ];
@@ -13,7 +18,8 @@
installPhase = "install -Dm644 OUT/all_*.img -t $out";
meta = with lib; {
license = licenses.free;
maintainers = [ maintainers.sikmir ];
platforms = platforms.all;
diff --git a/pkgs/data/misc/osm-extracts/default.nix b/pkgs/data/misc/osm-extracts/default.nix
index 8f8359d2a9a95eec888e2502da8b219a4d70c988..99de5710d2f4a68b941379a2514a381e7cc7cd0c 100644
--- a/pkgs/data/misc/osm-extracts/default.nix
+++ b/pkgs/data/misc/osm-extracts/default.nix
@@ -17,11 +17,11 @@ in
{
admin-boundaries = stdenv.mkDerivation rec {
pname = "osm-admin-boundaries";
src = fetchurl {
url = "https://download.geofabrik.de/russia/northwestern-fed-district-${version}.osm.pbf";
hash = "sha256-jsBxHOyTmUJtkzWC8UxbaxoPISRmCMel8Uwg9IuWrsU=";
hash = "sha256-quHCVQomVPvqskC5YEClJU5Zno9oLiYx6omW1SMmRWk=";
};
dontUnpack = true;
diff --git a/pkgs/data/misc/routinodb/default.nix b/pkgs/data/misc/routinodb/default.nix
index 55ee0ce51d0ad82bce83d8937612a3cb83fc4cda..404ebb4eea7ed3c7c3ea39d0bb4e3a7ba3731bdd 100644
--- a/pkgs/data/misc/routinodb/default.nix
+++ b/pkgs/data/misc/routinodb/default.nix
@@ -2,20 +2,20 @@ { lib, stdenv, fetchurl, routino }:
stdenv.mkDerivation rec {
pname = "routinodb";
srcs = [
(fetchurl {
url = "https://download.geofabrik.de/europe/finland-${version}.osm.pbf";
hash = "sha256-rQ3gvDV0xmUuAcd0vUtG+AtDtYuU2RMQD5zDXu2iGQ0=";
hash = "sha256-9nfhxci9Y/XE9I+sRF8Hju6Yg8dLa7epOIwsZVjwazA=";
})
(fetchurl {
url = "https://download.geofabrik.de/europe/estonia-${version}.osm.pbf";
hash = "sha256-jz7o6YE5rMp1pfdUOnGUbeUBTbR+OhKCosfvaaNzYVw=";
hash = "sha256-9LSE/vkGKFVtp8InXcXOqzactoUZsunC45iK+Ta18oI=";
})
(fetchurl {
url = "https://download.geofabrik.de/russia/northwestern-fed-district-${version}.osm.pbf";
hash = "sha256-jsBxHOyTmUJtkzWC8UxbaxoPISRmCMel8Uwg9IuWrsU=";
hash = "sha256-quHCVQomVPvqskC5YEClJU5Zno9oLiYx6omW1SMmRWk=";
})
];
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 0e47587aeaa4fed0651431f1e5a8064477a46069..4198d4d11fc80a2afaecc36802bfc0f4e070a827 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -1,10 +1,9 @@
-{ pkgs, sources }:
+{ pkgs }:
let
inherit (pkgs) lib newScope recurseIntoAttrs libsForQt5 darwin;
in
lib.makeScope newScope (
self: with self; {
### APPLICATIONS
diff --git a/pkgs/gis/mapsoft/2.nix b/pkgs/gis/mapsoft/2.nix
index 88ae686b90f276532bf25d9970dfff0f915c679e..f33a8ab304a663271ab8aaa4230648321ff86518 100644
--- a/pkgs/gis/mapsoft/2.nix
+++ b/pkgs/gis/mapsoft/2.nix
@@ -45,8 +45,17 @@ postPatch = ''
substituteInPlace modules/get_deps \
--replace "/usr/bin/perl" "${perlPackages.perl}/bin/perl"
substituteInPlace modules/mapview/mapview.cpp \
--replace "/usr/share" "$(out)/share"
--replace "/usr/share" "$out/share"
patchShebangs .
'';
nativeBuildInputs = [
diff --git a/update-commit-dates.sh b/update-commit-dates.sh
deleted file mode 100755
index 6fd55dd3f0fbcb2bacacaddb73fb8ce16480a317..0000000000000000000000000000000000000000
--- a/update-commit-dates.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/env nix-shell
-#! nix-shell -i bash -p curl jq moreutils
-# heredoc variables
-typeset \
-IFS='' read -r -d '' commit_dates_query <<'EOF' # vim:ft=jq
-def repoField($alias):
-def build_query:
-"fragment go on GitObject { ... on Commit { committedDate } }
-query CommitDates {
repoField($alias | gsub("-"; "_"))
-}";
-{ query: to_entries | build_query }
-EOF
-IFS='' read -r -d '' commit_dates_filter <<'EOF' # vim:ft=jq
-.data | with_entries(
-) as $overrides | $sources[] * $overrides
-EOF
-set -o errexit -o errtrace -o nounset -o pipefail
-shopt -s inherit_errexit
-curl 'https://api.github.com/graphql' \
-# vim:et:ft=sh:sw=2:tw=78
application/octet-stream
This content has been proxied by September (3851b).