Skip to content

Instantly share code, notes, and snippets.

@l0b0
Last active April 5, 2024 11:37
Show Gist options
  • Select an option

  • Save l0b0/2d67a3758385756353119c511fedc4eb to your computer and use it in GitHub Desktop.

Select an option

Save l0b0/2d67a3758385756353119c511fedc4eb to your computer and use it in GitHub Desktop.

Revisions

  1. l0b0 revised this gist Apr 5, 2024. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions shell.nix
    Original file line number Diff line number Diff line change
    @@ -18,11 +18,6 @@ let
    hash = "sha256-6LOYLDLtVCHxNdHAWv3zhlCsljIpi//RJb9XVLGD5hM=";
    })
    ];
    postPatch =
    oldAttrs.postPatch
    + ''
    sed '2i echo Skipping usage vs getopt test && exit 77' -i ./tests/misc/usage_vs_getopt.sh
    '';
    });
    })
    ];
  2. l0b0 created this gist Apr 5, 2024.
    35 changes: 35 additions & 0 deletions shell.nix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    let
    pkgs =
    import (
    builtins.fetchTarball {
    url = "https://github.com/nixos/nixpkgs/archive/d934204a0f8d9198e1e4515dd6fec76a139c87f0.tar.gz";
    sha256 = "1zfby2jsfkag275aibp81bx1g1cc305qbcy94gqw0g6zki70k1lx";
    }
    ) {
    overlays = [
    (final: prev: {
    pony = prev.pony.overrideAttrs (oldAttrs: {
    patches =
    oldAttrs.patches
    or []
    ++ [
    (final.fetchpatch {
    url = "https://patch-diff.githubusercontent.com/raw/nixos/nixpkgs/pull/290383.patch";
    hash = "sha256-6LOYLDLtVCHxNdHAWv3zhlCsljIpi//RJb9XVLGD5hM=";
    })
    ];
    postPatch =
    oldAttrs.postPatch
    + ''
    sed '2i echo Skipping usage vs getopt test && exit 77' -i ./tests/misc/usage_vs_getopt.sh
    '';
    });
    })
    ];
    };
    in
    pkgs.mkShell {
    packages = [
    pkgs.mutmut
    ];
    }