mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
1bb22952ce
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/makeself/versions. These checks were done: - built on NixOS - ran ‘/nix/store/5j88qgnbbry87m8164s0a9agvz92z36q-makeself-2.4.0/bin/makeself -v’ and found version 2.4.0 - ran ‘/nix/store/5j88qgnbbry87m8164s0a9agvz92z36q-makeself-2.4.0/bin/makeself --version’ and found version 2.4.0 - found 2.4.0 with grep in /nix/store/5j88qgnbbry87m8164s0a9agvz92z36q-makeself-2.4.0 - directory tree listing: https://gist.github.com/5a4661783df3d9d6558c8f6670385b79
34 lines
897 B
Nix
34 lines
897 B
Nix
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.4.0";
|
|
name = "makeself-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "megastep";
|
|
repo = "makeself";
|
|
rev = "release-${version}";
|
|
sha256 = "1lw3gx1zpzp2wmzrw5v7k31vfsrdzadqha9ni309fp07g8inrr9n";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -e "s|^HEADER=.*|HEADER=$out/share/${name}/makeself-header.sh|" -i makeself.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/{bin,share/{${name},man/man1}}
|
|
cp makeself.lsm README.md $out/share/${name}
|
|
cp makeself.sh $out/bin/makeself
|
|
cp makeself.1 $out/share/man/man1/
|
|
cp makeself-header.sh $out/share/${name}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://megastep.org/makeself;
|
|
description = "Utility to create self-extracting packages";
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.wmertens ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|