-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
37 lines (31 loc) · 802 Bytes
/
Copy pathdefault.nix
File metadata and controls
37 lines (31 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
pname = "anti-hangman";
version = "0.04";
src = ./.;
buildInputs = [
pkgs.bash
pkgs.curl
pkgs.coreutils
pkgs.crunch
pkgs.git
pkgs.gnugrep
pkgs.gawk
pkgs.findutils
];
buildPhase = ''
mkdir -p $out/bin
'';
installPhase = ''
mkdir -p $out/share/doc/anti-hangman
cp -f ./LICENSE $out/share/doc/anti-hangman/LICENSE
cp -f ./README.md $out/share/doc/anti-hangman/README.md
cp -f ./index.html $out/bin/anti-hangman
chmod +x $out/bin/anti-hangman
'';
meta = with pkgs.lib; {
description = "Anti-hangman like hangman games but it's difference, Using permutations method written in Bash script.";
license = licenses.gpl3;
maintainers = with maintainers; [ luisadha ];
};
}