duckstation: Fix build on aarch64-linux (#373182)
[NixPkgs.git] / pkgs / by-name / nc / ncompress / package.nix
blob4baac00754eeb191bb157b9df3706a027d806204
2   lib,
3   stdenv,
4   fetchFromGitHub,
5 }:
7 stdenv.mkDerivation rec {
8   pname = "ncompress";
9   version = "5.0";
11   src = fetchFromGitHub {
12     owner = "vapier";
13     repo = "ncompress";
14     rev = "v${version}";
15     sha256 = "sha256-Yhs3C5/kR7Ve56E84usYJprxIMAIwXVahLi1N9TIfj0=";
16   };
18   makeFlags = [ "PREFIX=$(out)" ];
19   installTargets = "install_core";
21   postInstall = ''
22     mv $out/bin/uncompress $out/bin/uncompress-ncompress
23   '';
25   meta = with lib; {
26     homepage = "http://ncompress.sourceforge.net/";
27     license = licenses.publicDomain;
28     description = "Fast, simple LZW file compressor";
29     platforms = platforms.unix;
30   };