shell uses the flake

rohan
Sep 27, 2021, 6:40 AM
RNNJ4ORVNBL22XE466VC4ABGINIGS6ODPWGUHXTX7SVNIRY3KSDAC

Dependencies

  • [2] FRO3FIIV nix: Add libiconv as build input On some mac devises one cannot depend on libiconv being resolved by the linker and thus compilation of Pijul fails. This change simply adds the dependency to the list of build inputs and as such allows the project to compile again.
  • [3] YN63NUZO Sanakirja 1.0
  • [4] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [5] G734WNM6 flake.nix: use crate2nix
  • [6] NX6DDK7R Removing xxHash from the Nix dependencies
  • [7] X243Z3Y5 Recording only the required metadata (can even be changed later!)

Change contents

  • replacement in shell.nix at line 1
    [3.12][3.0:96](),[3.107][3.107:156](),[3.156][2.0:13](),[2.13][3.156:562](),[3.156][3.156:562]()
    with import <nixpkgs> {};
    stdenv.mkDerivation {
    name = "Pijul";
    buildInputs = with pkgs; [
    zstd
    libsodium
    openssl
    pkgconfig
    libiconv
    ] ++ lib.optionals stdenv.isDarwin
    (with darwin.apple_sdk.frameworks; [
    CoreServices
    Security
    SystemConfiguration
    ]);
    }
    # (import
    # (fetchTarball {
    # url = "https://github.com/edolstra/flake-compat/archive/c71d063a2fce96001c7ef99b301dfbd0c29ebde1.tar.gz";
    # sha256 = "0vnbhqf0lc4mf2zmzqbfv6kqj9raijxz8xfaimxihz3c6s5gma2x";
    # })
    # { src = ./.; }).shellNix.default
    [3.12]
    (import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
    src = ./.;
    }).shellNix.default