!LemuOOvbWqRXodtSsw:nixos.org

NixOS Reproducible Builds

544 Members
Report: https://reproducible.nixos.org Project progress: https://github.com/orgs/NixOS/projects/30125 Servers

Load older messages


SenderMessageTime
24 Oct 2021
@baloo_:matrix.orgbaloo does not mean you can't put stuff in the postCheck hook in the $out or get an extraneous $test output or something 15:59:56
@artturin:matrix.orgArtturincan diffoscope follow symlinks?16:00:22
@baloo_:matrix.orgbaloojust that, by default, run generate the output16:00:29
@baloo_:matrix.orgbaloo * just that, by default, generate the output before the tests16:01:52
25 Oct 2021
@replaycoding_:matrix.orgReplayCoding joined the room.00:06:43
26 Oct 2021
@grahamc:nixos.org@grahamc:nixos.orgchanged room power levels.01:18:50
@mjolnir:nixos.orgNixOS Moderation Bot changed their display name from mjolnir to NixOS Moderation Bot.02:00:15
@mjolnir:nixos.orgNixOS Moderation Bot set a profile picture.02:00:32
@mjolnir:nixos.orgNixOS Moderation Bot changed their profile picture.02:23:47
@mjolnir:nixos.orgNixOS Moderation Bot changed their profile picture.02:33:16
@fabianhjr:matrix.orgFabián Heredia joined the room.14:39:26
@artturin:matrix.orgArtturin
In reply to @artturin:matrix.org
can diffoscope follow symlinks?
{
  inputs = {
    nixpkgs.url = "/home/artturin/nixgits/my-nixpkgs";
    nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = inputs@{ self, nixpkgs, flake-utils, nixpkgsUnstable }:
    flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
    let 
      pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
    in rec {
      packages = {
        diffscript = pkgs.diffscript;
        difffarm = pkgs.difffarm;
      };

    }) // {

      overlay = self: super: {
        difffarm = let
        in with self; linkFarmFromDrvs "difffarm" [
          bash
          coreutils
        ];
        crossdifffarm = let
          crosspkgs = import nixpkgs { inherit (self) system; crossSystem = nixpkgs.lib.systems.examples.aarch64-multiplatform; };
        in with crosspkgs; linkFarmFromDrvs "difffarm" [
          bash
          coreutils
        ];
        diffscript = let
        in with self; stdenvNoCC.mkDerivation rec {
          name = "diffscript";
          nativeBuildInputs = [ nixpkgsUnstable.legacyPackages.x86_64-linux.diffoscope ];
          installPhase = ''
            mkdir $out
            readlinkOrig=($(readlink ${difffarm}/*))
            readlinkCross=($(readlink ${crossdifffarm}/*))
            names=($(ls ${difffarm}))

            for ((i=0;i<=''${#readlinkOrig[@]};i++)); do
              diffoscope "''${readlinkOrig[i]}" "''${readlinkCross[i]}" > $out/''${names[i]} || true
            done

          '';
          dontUnpack = true;
          dontPatch = true;
          dontConfigure = true;
          dontBuild = true;
          dontFixup = true;
        };
      };
    };
}
16:19:59
@artturin:matrix.orgArtturin
In reply to @artturin:matrix.org
can diffoscope follow symlinks?
*
{
  inputs = {
    nixpkgs.url = "/home/artturin/nixgits/my-nixpkgs";
    nixpkgsUnstable.url = "github:NixOS/nixpkgs/nixos-unstable";
    flake-utils.url = "github:numtide/flake-utils";
  };

  outputs = inputs@{ self, nixpkgs, flake-utils, nixpkgsUnstable }:
    flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
    let 
      pkgs = import nixpkgs { inherit system; overlays = [ self.overlay ]; };
    in rec {
      packages = {
        diffscript = pkgs.diffscript;
        difffarm = pkgs.difffarm;
      };

    }) // {

      overlay = self: super: {
        difffarm = let
        in with self; linkFarmFromDrvs "difffarm" [
          bash
          coreutils
        ];
        crossdifffarm = let
          crosspkgs = import nixpkgs { inherit (self) system; crossSystem = nixpkgs.lib.systems.examples.aarch64-multiplatform; };
        in with crosspkgs; linkFarmFromDrvs "difffarm" [
          bash
          coreutils
        ];
        diffscript = let
        in with self; stdenvNoCC.mkDerivation rec {
          name = "diffscript";
          nativeBuildInputs = [ nixpkgsUnstable.legacyPackages.x86_64-linux.diffoscope ];
          installPhase = ''
            mkdir $out
            readlinkOrig=($(readlink ${difffarm}/*))
            readlinkCross=($(readlink ${crossdifffarm}/*))
            names=($(ls ${difffarm}))

            for ((i=0;i<=''${#readlinkOrig[@]};i++)); do
              diffoscope "''${readlinkOrig[i]}" "''${readlinkCross[i]}" > $out/''${names[i]} || true
            done

          '';
          dontUnpack = true;
          dontPatch = true;
          dontConfigure = true;
          dontBuild = true;
          dontFixup = true;
        };
      };
    };
}
16:20:04
27 Oct 2021
@j-k:matrix.orgj-k

* Symlinks and devices can now be properly compared. (Closes: #789003)
https://salsa.debian.org/search?utf8=%E2%9C%93&search=symlink&group_id=2392&project_id=26273&scope=&search_code=true&snippets=false&repository_ref=master&nav_source=navbar

I guess it can

08:24:17
@artturin:matrix.orgArtturinit doesn't follow symlinks10:47:41
29 Oct 2021
@timdeh:matrix.orgnrdxp left the room.03:48:19
@stigo:matrix.org@stigo:matrix.org joined the room.15:18:35
@sandro:supersandro.deSandro 🐧 joined the room.16:53:53
@lvkm:matrix.orglvkm joined the room.17:19:44
31 Oct 2021
@withoutwithin:matrix.orgXe changed their display name from Xe (xe/they) to Xe.12:48:33
@withoutwithin:matrix.orgXe changed their display name from Xe to lol.17:33:59
@withoutwithin:matrix.orgXe changed their display name from lol to ace.17:34:11
@withoutwithin:matrix.orgXe changed their display name from ace to Xe.17:34:22
@toonn:matrix.orgtoonn changed their profile picture.20:19:16
2 Nov 2021
@zarel_it:matrix.orgzarel left the room.13:51:45
3 Nov 2021
@bikal:matrix.orgBikal Lem joined the room.11:27:50
@srid:matrix.orgsrid (on hiatus) changed their display name from srid to Moved to @srid:one.ems.host.21:26:55
@srid:matrix.orgsrid (on hiatus) removed their profile picture.21:27:15
4 Nov 2021
@briman:matrix.orgBrian joined the room.09:31:56
6 Nov 2021
@test:boba.best@test:boba.best joined the room.09:17:03

Show newer messages


Back to Room ListRoom Version: 6