4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
30 lines
792 B
Nix
30 lines
792 B
Nix
{ lib, stdenv, fetchFromGitHub, buildDotnetPackage }:
|
|
|
|
buildDotnetPackage {
|
|
baseName = "pash";
|
|
version = "git-2016-07-06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Pash-Project";
|
|
repo = "Pash";
|
|
rev = "8d6a48f5ed70d64f9b49e6849b3ee35b887dc254";
|
|
sha256 = "0c4wa8qi1zs01p9ck171jkw0n1rsymsrhpsb42gl7warwhpmv59f";
|
|
};
|
|
|
|
preConfigure = "rm -rvf $src/Source/PashConsole/bin/*";
|
|
|
|
outputFiles = [ "Source/PashConsole/bin/Release/*" ];
|
|
|
|
meta = with lib; {
|
|
description = "An open source implementation of Windows PowerShell";
|
|
homepage = "https://github.com/Pash-Project/Pash";
|
|
maintainers = [ maintainers.fornever maintainers.vrthra ];
|
|
platforms = platforms.all;
|
|
license = with licenses; [ bsd3 gpl3 ];
|
|
};
|
|
|
|
passthru = {
|
|
shellPath = "/bin/pash";
|
|
};
|
|
}
|