Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
haskell: init
Browse files Browse the repository at this point in the history
  • Loading branch information
vlinkz committed May 14, 2024
1 parent 823445c commit 8148c3e
Show file tree
Hide file tree
Showing 124 changed files with 371,142 additions and 18 deletions.
11 changes: 11 additions & 0 deletions pkgs/by-name/al/all-cabal-hashes/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Hackage database snapshot, used by maintainers/scripts/regenerate-hackage-packages.sh
# and callHackage
{ lib, fetchurl }:
let
pin = lib.importJSON ./pin.json;
in
fetchurl {
inherit (pin) url sha256;
name = "all-cabal-hashes-${lib.substring 0 7 pin.commit}.tar.gz";
passthru.updateScript = ../../../../maintainers/scripts/haskell/update-hackage.sh;
}
6 changes: 6 additions & 0 deletions pkgs/by-name/al/all-cabal-hashes/pin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"commit": "4eb9a5fde06b5d7343665582243debaf1d77e0a9",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/4eb9a5fde06b5d7343665582243debaf1d77e0a9.tar.gz",
"sha256": "0dzyfr1gv79riy2vh840b5hqly8rs10zhj01zi9nfn7jd9pzql28",
"msg": "Update from Hackage at 2024-04-16T17:36:35Z"
}
25 changes: 25 additions & 0 deletions pkgs/by-name/ar/argp-standalone/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja }:

stdenv.mkDerivation rec {
pname = "argp-standalone";
version = "1.5.0";

src = fetchFromGitHub {
owner = "argp-standalone";
repo = "argp-standalone";
rev = version;
sha256 = "jWnoWVnUVDQlsC9ru7oB9PdtZuyCCNqGnMqF/f2m0ZY=";
};

nativeBuildInputs = [ meson ninja ];

doCheck = true;

meta = with lib; {
homepage = "https://github.com/argp-standalone/argp-standalone";
description = "Standalone version of arguments parsing functions from Glibc";
platforms = platforms.unix;
maintainers = with maintainers; [ amar1729 ];
license = licenses.lgpl21Plus;
};
}
37 changes: 37 additions & 0 deletions pkgs/by-name/dn/dns-root-data/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ stdenv, lib, fetchurl }:

let

rootHints = fetchurl {
# Original source https://www.internic.net/domain/named.root
# occasionally suffers from pointless hash changes,
# and having stable sources for older versions has advantages, too.
urls = map (prefix: prefix + "d9c96ae96f066a85d7/etc/root.hints") [
"https://gitlab.nic.cz/knot/knot-resolver/raw/"
"https://raw.githubusercontent.com/CZ-NIC/knot-resolver/"
];
hash = "sha256-4lG/uPnNHBNIZ/XIeDM1w3iukrpeW0JIjTnGSwkJ8U4=";
};

rootKey = ./root.key;
rootDs = ./root.ds;

in

stdenv.mkDerivation {
pname = "dns-root-data";
version = "2023-11-27";

buildCommand = ''
mkdir $out
cp ${rootHints} $out/root.hints
cp ${rootKey} $out/root.key
cp ${rootDs} $out/root.ds
'';

meta = with lib; {
description = "DNS root data including root zone and DNSSEC key";
maintainers = with maintainers; [ fpletz vcunat ];
license = licenses.gpl3Plus;
};
}
1 change: 1 addition & 0 deletions pkgs/by-name/dn/dns-root-data/root.ds
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
. IN DS 20326 8 2 E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D
1 change: 1 addition & 0 deletions pkgs/by-name/dn/dns-root-data/root.key
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
. 172800 IN DNSKEY 257 3 8 AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU= ;{id = 20326 (ksk), size = 2048b}
10 changes: 10 additions & 0 deletions pkgs/by-name/dn/dns-root-data/update-root-key.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p busybox unbound

TMP=`mktemp`
unbound-anchor -a "$TMP"
grep -Ev "^($$|;)" "$TMP" | sed -e 's/ ;;.*//' > root.key

unbound-anchor -F -a "$TMP"
sed '/^;/d' < "$TMP" > root.ds
rm $TMP
11 changes: 6 additions & 5 deletions pkgs/by-name/el/elfutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
, musl-obstack, m4, zlib, zstd, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs
, argp-standalone
, enableDebuginfod ? true, sqlite, curl, libmicrohttpd, libarchive
, gitUpdater
# for passthru.tests
# , gitUpdater
}:

# TODO: Look at the hardcoded paths to kernel, modules etc.
Expand Down Expand Up @@ -89,10 +90,10 @@ stdenv.mkDerivation rec {
doInstallCheck = !stdenv.hostPlatform.isMusl
&& (stdenv.hostPlatform == stdenv.buildPlatform);

passthru.updateScript = gitUpdater {
url = "https://sourceware.org/git/elfutils.git";
rev-prefix = "elfutils-";
};
# passthru.updateScript = gitUpdater {
# url = "https://sourceware.org/git/elfutils.git";
# rev-prefix = "elfutils-";
# };

meta = with lib; {
homepage = "https://sourceware.org/elfutils/";
Expand Down
Loading

0 comments on commit 8148c3e

Please sign in to comment.