Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Tissevert | 14dcb9aed6 | |
Tissevert | d139d0ab78 | |
Tissevert | b5126f56bb |
18
README.md
18
README.md
|
@ -4,28 +4,34 @@ This Nix derivation provides an attribute set with each package referenced by it
|
|||
|
||||
## Quick try
|
||||
|
||||
To quickly try a package `${PACKAGE_NAME}` from this repository, you can issue on the command line :
|
||||
To quickly try a package `${PACKAGE_NAME}` from the latest version of this repository, you can issue on the command line :
|
||||
|
||||
```bash
|
||||
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.0.tar.gz' -i ${PACKAGE_NAME}
|
||||
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz' -i ${PACKAGE_NAME}
|
||||
```
|
||||
|
||||
It's easy to pin a precise version by replacing `main` by the tag your interested in like so :
|
||||
|
||||
```bash
|
||||
nix-env -f 'https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.2.tar.gz' -i ${PACKAGE_NAME}
|
||||
```
|
||||
|
||||
## Declarative setup
|
||||
|
||||
To use this repository in a more reproducible and less imperative way, you can include the following snippet it in your `/etc/nixos/configuration.nix` or anywhere else you please :
|
||||
To use this repository declaratively from within a nix expression (say, in your `/etc/nixos/configuration.nix`) instead of from the command line, you can include the following snippet :
|
||||
|
||||
```nix
|
||||
let
|
||||
tissevertpkgs = import (
|
||||
fetchTarball https://git.marvid.fr/Tissevert/mynixpkgs/archive/0.1.0.tar.gz
|
||||
fetchTarball https://git.marvid.fr/Tissevert/mynixpkgs/archive/main.tar.gz
|
||||
) {};
|
||||
in
|
||||
```
|
||||
|
||||
Then, anywhere where you select packages like for instance in `environment.systemPackages` or in your `users.users.<name>.packages` my packages are available within the attribute set `tissevertpkgs` like this for instance :
|
||||
Then, anywhere where you select packages, for instance in `environment.systemPackages` or in your `users.users.<name>.packages`, my packages are available within the attribute set `tissevertpkgs` like this for instance :
|
||||
|
||||
```nix
|
||||
packages = [ pkgs.git pkgs.vim tissevertpkgs.SJW ]
|
||||
packages = [ tissevertpkgs.SJW ]
|
||||
```
|
||||
|
||||
## Current package selection
|
||||
|
|
18
default.nix
18
default.nix
|
@ -3,15 +3,15 @@ builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
|
|||
overrides = self: super: {
|
||||
hablo = self.callPackage (
|
||||
{ mkDerivation, aeson, base, bytestring, Cabal, containers
|
||||
, directory, filepath, lucid, mtl, optparse-applicative, parsec
|
||||
, SJW, stdenv, template, text, time, unix
|
||||
, directory, filepath, lib, lucid, mtl, optparse-applicative
|
||||
, parsec, SJW, template, text, time, unix
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "hablo";
|
||||
version = "1.1.0.0";
|
||||
version = "1.1.0.1";
|
||||
src = builtins.fetchGit {
|
||||
url = "https://git.marvid.fr/Tissevert/hablo.git";
|
||||
ref = "v1.1.0.0";
|
||||
ref = "v1.1.0.1";
|
||||
};
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
|
@ -26,20 +26,20 @@ builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
|
|||
];
|
||||
homepage = "https://git.marvid.fr/Tissevert/hablo";
|
||||
description = "A minimalist static blog generator";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
license = lib.licenses.bsd3;
|
||||
}
|
||||
) {};
|
||||
SJW = self.callPackage (
|
||||
{ mkDerivation, attoparsec, base, Cabal, containers, directory
|
||||
, filepath, mtl, optparse-applicative, random, stdenv, text, time
|
||||
, filepath, lib, mtl, optparse-applicative, random, text, time
|
||||
, unix
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "SJW";
|
||||
version = "0.1.2.2";
|
||||
version = "0.1.2.3";
|
||||
src = builtins.fetchGit {
|
||||
url = "https://git.marvid.fr/Tissevert/SJW.git";
|
||||
ref = "v0.1.2.2";
|
||||
ref = "v0.1.2.3";
|
||||
};
|
||||
isLibrary = true;
|
||||
isExecutable = true;
|
||||
|
@ -54,7 +54,7 @@ builtins.intersectAttrs {hablo = 1; SJW = 1;} (pkgs.haskellPackages.override {
|
|||
benchmarkHaskellDepends = [ base directory filepath random time ];
|
||||
homepage = "https://git.marvid.fr/Tissevert/SJW";
|
||||
description = "The Simple Javascript Wrench is a very simple tool to pack several JS «modules» into a single script";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
license = lib.licenses.bsd3;
|
||||
}
|
||||
) {};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue